Commit Graph

3719 Commits

Author SHA1 Message Date
David Capello
6b9c4c53ae Add icons in "New Sprite" dialog
Some changes needed to do this:
* Added support to show icon+text in ButtonSet items
* Added an extra parameter in Graphics::drawUIString() to avoid drawing
  the underscore
* Fixed expansion of ButtonSet items when the grid is resized
* Added support for Alt+mnemonic shortcuts in ButtonSet items
2015-08-12 12:38:07 -03:00
David Capello
48c6228df0 Generate thumbnails on RGB images 2015-08-12 10:18:34 -03:00
David Capello
72015c092a Add logic to displace points in PointByPointController
In this change we've added a new MoveOrirginCapability class to share
the Space bar logic to move all points in several controllers
(TwoPointsController, PointByPointController, and FourPointsController).

Related to #741
2015-08-12 10:15:39 -03:00
David Capello
045f11bf68 Add support to scroll points in FourPointsController with spacebar
Related to #741
2015-08-11 20:35:19 -03:00
David Capello
7342030555 Add support to move origin of TwoPointsController using spacebar (fix #741) 2015-08-11 20:29:13 -03:00
David Capello
f5f5975886 Show brush boundaries when alpha = 0 in pixel formats != Indexed 2015-08-11 20:02:11 -03:00
David Capello
45219abfec Fix brush preview in transparent layers
This bug was introduced bf54fd26d3
2015-08-11 19:58:39 -03:00
David Capello
5f159f14a7 Remove mini style from opacity slider in Cel Properties dialog 2015-08-11 13:57:59 -03:00
David Capello
6d532e56c5 Set RGBA has the default color mode for new sprites 2015-08-11 13:38:51 -03:00
David Capello
9d4c5aaea3 Add tooltips to AniControls 2015-08-11 13:23:48 -03:00
David Capello
74638cdc6d Fix "Stop at Grid" for floodfill like tools when grid origin is > (0,0) 2015-08-11 13:08:51 -03:00
David Capello
a4e5d47ed4 Make grid visible in SelectionAsGrid command 2015-08-11 12:49:42 -03:00
David Capello
0ec21a461a Fix asserts in Palette::makeGradient() 2015-08-11 12:43:29 -03:00
David Capello
8a3434586e Set default brush size for eraser/blur/jumble to 8px 2015-08-11 12:41:56 -03:00
David Capello
9d84089b0c Move "UI Elements Scaling" option from Experimental tab to General 2015-08-10 18:56:36 -03:00
David Capello
a34931db3d Remove ConfigureTools command
These options were replaced with commands in "View" menu.
2015-08-10 18:52:29 -03:00
David Capello
d796c88f6f Add TiledMode command and "View > Tiled Mode" submenu 2015-08-10 18:44:25 -03:00
David Capello
c159a3c4b5 Add SelectionAsGrid command 2015-08-10 18:27:53 -03:00
David Capello
3dff25246b Enable square aspect if Shift modifier is pressed when we start a TwoPointsController 2015-08-10 17:48:40 -03:00
David Capello
b9e362ac5c Add immediate feedback when Ctrl/Shift modifiers are pressed in TwoPointsController 2015-08-10 12:54:50 -03:00
David Capello
c0ce7e8cad Use the original colormap in gif decoder for files w/the same local colormap for every frame 2015-08-10 12:40:39 -03:00
David Capello
892d36f93c Add support to copy/paste cels in the same sprite 2015-08-07 18:27:48 -03:00
David Capello
a73d0cf846 Preserve linked cels between documents when Copy/Paste is used in the Timeline
Fix #734
2015-08-07 17:09:03 -03:00
David Capello
55477ce0d5 Add some asserts in DocumentApi::move/copy/swapCel() member functions 2015-08-07 16:25:57 -03:00
David Capello
e76d25283a Remove unused variable in ContextBar::BrushTypeField class 2015-08-06 17:37:16 -03:00
David Capello
14601dd94f Fix crash double-clicking a file on MacOS X Finder 2015-08-06 17:36:41 -03:00
David Capello
70db3da8be Include <climits> file to use INT_MAX
Note: As a future refactor, replace INT_MAX in all files
with std::numeric_limits<> template.
2015-08-06 13:14:19 -03:00
David Capello
b0a42ed4f1 Make color sliders style smaller 2015-08-06 11:23:39 -03:00
David Capello
da8eff0ec2 Add a basic RGB color wheel (related to #707) 2015-08-06 11:23:16 -03:00
David Capello
d9af752e9d Make pin icon bigger in PopupWindowPin 2015-08-05 12:37:04 -03:00
David Capello
05ed1b8950 Reduce waiting time in PixelsMovement to lock the sprite 2015-08-05 11:39:46 -03:00
David Capello
6a47100731 Fix target buttons in replace color command (fix #125) 2015-08-05 10:59:54 -03:00
David Capello
a86a5da38d Keep last used sprite sheet preferences for future documents (fix #736) 2015-08-05 10:20:28 -03:00
David Capello
721c8a0a4a Add support to copy cel in next frame for several layers (fix #735) 2015-08-05 09:40:11 -03:00
David Capello
299cbbd2f2 Merge branch 'master' 2015-08-04 19:39:30 -03:00
David Capello
53a925e86d Remove SkinParts enum
Now we generate the list of SkinTheme parts from the skin.xml file using
the gen utility.

Several refactors included in SkinTheme class to simplify code.
2015-08-04 19:38:52 -03:00
David Capello
d7ad5bb2c0 Avoid recompiling everything if we modify the code generator 2015-08-04 18:24:09 -03:00
David Capello
3103f54131 Change zoom scale to avoid similar zoom levels
- Renamed Editor::offset() with padding()
- Changed padding size (and added Editor::calcExtraPadding() function)
- Added Zoom::linearScale() and Zoom::fromLinearScale()
2015-08-04 12:26:58 -03:00
David Capello
43a3ee8bce Fix brush preview flicker 2015-07-31 16:18:53 -03:00
David Capello
1b217f257c Add missing src/render/onionskin_position.h file 2015-07-31 16:07:24 -03:00
David Capello
bf54fd26d3 Add option to put the onion skin behind the sprite
Fix #526 and fix #412
2015-07-31 15:55:06 -03:00
David Capello
80b47419fd Add an option to onionskin the current layer only (related to #526) 2015-07-31 14:30:11 -03:00
David Capello
cc90c3e6f4 Fix remapping decoded gif files to the global colormap when mask != 0 2015-07-31 13:32:23 -03:00
David Capello
3d70c0193d Don't duplicate global colormap as local colormap in GifEncoder 2015-07-31 12:49:04 -03:00
David Capello
40c0ef2d48 Don't use global colormap if the used sprite palette is bigger
This can happen when if an extra copy of the bg/transparent color was
added to the palette.
2015-07-31 12:27:57 -03:00
David Capello
a9097c3a1a Fix adding a copy of bg/transpart color for some special .gif files 2015-07-31 12:26:23 -03:00
David Capello
271750129c Fix new possible crash in GifDecoder::getFrameColormap() 2015-07-31 12:25:33 -03:00
David Capello
a6c24ac768 Create an optimized palette if GifDecoder generates a RGB image with more than 256 colors 2015-07-31 11:06:26 -03:00
David Capello
cd1ca4c68f Try to use the global colormap in GifDecoder when possible 2015-07-31 10:53:51 -03:00
David Capello
792502fc7b Remove invalid ASSERT() from PngFormat::onSave()
The assert can fail if we try to save an indexed image which contain
more than 256 colors.
2015-07-30 18:49:35 -03:00