Commit Graph

604 Commits

Author SHA1 Message Date
David Capello
4174c895ae Show the number of colors in sprite properties dialog. 2010-05-30 10:53:22 -03:00
David Capello
399d613a76 Now the palette is created with the given number of colors. 2010-05-30 10:48:37 -03:00
David Capello
018aeffa47 Fixed bug in Palette::toAllegro(): Index out of range. 2010-05-30 10:48:17 -03:00
David Capello
69bad938de Removed unnecessary #include <allegro.h> 2010-05-30 10:47:16 -03:00
David Capello
4a9f6cf520 Now Editor::controlInfiniteScroll() is called when the editor's state is MOVING_PIXELS but even when the user is not dragging the pixels (just the mouse captured). 2010-05-06 23:34:30 -03:00
David Capello
e5c7bf34fa Added more methods to handle decorators (still WIP) in Editor class. 2010-05-06 23:33:26 -03:00
David Capello
bffd54bf79 Added Editor::editor_set_zoom_and_center_in_mouse to remove duplicated code. 2010-05-06 22:15:58 -03:00
David Capello
dfd0bb0c00 Added "Selection Tools" section. 2010-05-06 22:01:24 -03:00
David Capello
90a0c4aeff ase64.ico moved to docs/manuals/images directory. 2010-05-06 22:00:45 -03:00
David Capello
f9aaf0af99 Fixed cursors problem when the user is dragging pixels. 2010-05-06 22:00:22 -03:00
David Capello
8e985a3bd8 Renamed PixelsMovement::m_isCatched (which should be Caught) to m_isDragging. 2010-05-06 21:59:48 -03:00
David Capello
c5c1f45b96 Fixed clipping problems dragging selected pixels when other windows are opened. 2010-05-06 21:58:13 -03:00
David Capello
9902481f51 Improved pixel-movement: Added support for continuos movement even when we release the mouse button.
The mouse is captured by the editor until the user presses a key (e.g. to execute a command) or uses the selection tool to add/subtract chunks of mask. While the mouse is captured we are in the "pixels movement" loop.
2010-05-03 23:01:05 -03:00
David Capello
a98113a92e Fixed problems with cel position alignment in Undoable::clear_mask and paste_image members functions. 2010-05-03 22:55:06 -03:00
David Capello
8b4c4f6a5a Added jmessage_new_copy_without_dests() to copy messages without copying the list of recipients. 2010-05-03 22:40:01 -03:00
David Capello
ea56481314 Updated copyright to 2010. 2010-04-28 23:52:51 -03:00
David Capello
e1bdcb9899 Added buttons in Options dialog to change grid colors (normal grid and pixel grid). 2010-04-28 23:47:08 -03:00
David Capello
2af3160b3f Added an option in Tools Configuration dialog to show the pixel grid. 2010-04-28 23:46:17 -03:00
David Capello
30c6677cc1 The Editor can draw the pixel grid. 2010-04-28 23:44:32 -03:00
David Capello
4807de27b4 Added "pixel grid" in ISettings interface. 2010-04-28 23:44:10 -03:00
David Capello
b935f90cd3 Minor modification in tools_configuration window layout. 2010-04-25 23:39:46 -03:00
David Capello
8dd69cada9 Moved "Cursor Color" setting from "Tools Configuration" to "Options" dialog. 2010-04-25 23:35:05 -03:00
David Capello
1bc1cf2f5b Changed caption of the palette editor to "Palette". 2010-04-25 23:24:59 -03:00
David Capello
d4a0b4b9eb Modified color selector (tabs replaced with buttons).
Mask button now is just one button (you don't need to select tab and then the "mask button").
2010-04-25 23:24:26 -03:00
David Capello
475398eb4b Fixed colorbutton_draw(). 2010-04-25 23:22:48 -03:00
David Capello
74356cf8b7 The color selector in color-buttons appears only when they are clicked. 2010-04-25 23:21:10 -03:00
David Capello
5bea28659e PopupWindow have not yellow background anymore. 2010-04-25 23:17:37 -03:00
David Capello
475857ebcf Removed unused value in draw_color(). 2010-04-25 23:14:58 -03:00
David Capello
e12c99f61d Avoid to reserve caption space in popup windows that do not have a caption. 2010-04-25 23:14:13 -03:00
David Capello
3cd3839feb Minor fixes for short color format in color_to_formalstring() function. 2010-04-25 23:12:50 -03:00
David Capello
0260452e3e Color buttons for checked-bg have imgtype=IMAGE_RGB. 2010-04-25 23:12:07 -03:00
David Capello
8e62794da0 Added validation in "Grid Settings" dialog to avoid negative grid width/height. 2010-04-25 21:30:29 -03:00
David Capello
befd81c63b Added "checked background configuration".
Now you can configure size and color of the checked background
used in transparent sprites.
2010-04-25 21:29:50 -03:00
David Capello
9c63b4f1ba Added more width to default combobox size. 2010-04-25 19:33:08 -03:00
David Capello
3f6f1471fd Removed mouse speed option.
Removed _setup_mouse_speed() function and dialog/options.cpp file.
All the code is in cmd_options.cpp now.
2010-04-25 15:52:19 -03:00
David Capello
5665b7dd1a Added grid_settings command (feature #2874433). 2010-04-25 15:31:44 -03:00
David Capello
182ee290d0 Modified "Tools Configuration" window layout. 2010-04-25 15:02:58 -03:00
David Capello
b8e49466ad Added support for vertical separators:
- New PART_SEPARATOR_VERT in skin.
- New SkinneableTheme::draw_part_as_vline() function.
2010-04-25 15:02:28 -03:00
David Capello
162e3efd97 Modified default bounds of "palette editor" window. 2010-04-25 14:40:40 -03:00
David Capello
a5e02323f2 Sprite Properties window now uses a grid. 2010-04-25 14:35:10 -03:00
David Capello
ebf8515a30 Fixed possible dead-pointers deleting a widget. 2010-04-25 12:13:59 -03:00
David Capello
da072b79e9 Moved icons to data/icons/ directory. 2010-04-25 12:05:18 -03:00
David Capello
f0f5bafd78 Refactored all jwidget_has_focus/mouse/capture functions to member functions.
Added Widget::hasFocus/Mouse/Capture and Widget::hasMouseOver() members.
Removed JI_HARDCAPTURE flag (it was used only by button widget).
2010-04-25 12:03:25 -03:00
David Capello
314e59dae1 Now the user can move selected pixels (still WIP).
Details:
Added EDITOR_STATE_MOVING_PIXELS state to Editor.
Added PixelsMovement helper class.
Added Undoable::paste_image().
2010-04-24 21:23:40 -03:00
David Capello
c65de92e47 Added Editor::controlInfiniteScroll() member function. 2010-04-24 21:04:03 -03:00
David Capello
220df93c35 Fixed: You cannot change the frame or fg/bg color when you are drawing using the mouse wheel. 2010-04-24 16:55:39 -03:00
David Capello
c7f0b368f7 Added support to load .ico files (still WIP). 2010-04-24 16:11:48 -03:00
David Capello
a3799e4084 Fixed "minwidth" attribute of "brush_size" field. 2010-04-24 16:11:14 -03:00
David Capello
20c4ac5235 Added ToolInk::isCelMovement(). Now "Move" tool moves cel. 2010-04-24 16:10:48 -03:00
David Capello
bb6815524f Refactored 'extras' stuff in Sprite class.
Now it is called "ExtraCel" which is the union of a Cel and an Image.
2010-04-24 16:09:35 -03:00