Commit Graph

619 Commits

Author SHA1 Message Date
David Capello
b37886b052 Now the status-bar text is cleared when the mouse leave widgets like Editor and ToolBar. 2010-06-11 00:05:53 -03:00
David Capello
c78f467ee4 The color-bar does not show invalid colors in the status-bar anymore. 2010-06-10 23:59:12 -03:00
David Capello
b334706cce Added StatusBar::clearText() member function. 2010-06-10 23:58:48 -03:00
David Capello
ed14c4a31a Now selected colors to draw are checked in Editor::createToolLoopImpl(). 2010-06-10 23:51:22 -03:00
David Capello
07970e8116 Removed app_get_fg/bg_color() functions. 2010-06-10 23:50:10 -03:00
David Capello
c908af4b87 Modified the way invalid colors are drawn. 2010-06-10 23:49:33 -03:00
David Capello
a17a3de4d4 Fixed: now you cannot select invalid colors with the color-bar. 2010-06-01 22:42:20 -03:00
David Capello
2a2effa4ff Fixed color_to_formalstring() for invalid colors. 2010-06-01 22:41:44 -03:00
David Capello
9942cf953c Fixed draw_color() function to draw invalid colors (out of palette range). 2010-06-01 22:41:26 -03:00
David Capello
7e711119e0 Removed a lot of warnings from core/color.cpp 2010-06-01 22:24:24 -03:00
David Capello
4de7f0e7c0 Added BITMAP* parameter in draw_emptyset_symbol() function. 2010-06-01 22:24:07 -03:00
David Capello
c975930fc3 Added color_is_valid() function to know if a color is inside the valid range of palette indices. 2010-06-01 22:03:44 -03:00
David Capello
70240c9639 Minor modifications in the "New Sprite" dialog layout. 2010-06-01 22:02:26 -03:00
David Capello
0a5746bf3b Added the number of colors in "New Sprite" dialog for Indexed sprites. 2010-06-01 20:35:13 -03:00
David Capello
81bafa3595 Added some assertions to access current palette indexes through color_t type. 2010-05-30 10:55:13 -03:00
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