Commit Graph

3703 Commits

Author SHA1 Message Date
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
David Capello fba9213c9c Fix bug saving invalid .gif files when we use an indexed image with more than 256 colors 2015-07-30 18:46:56 -03:00
David Capello 4a1356cf78 Fix crash when the gif decoder cannot create the sprite 2015-07-30 17:12:53 -03:00
David Capello 32b12d17da Fix visual artifacts on Windows when the window is resized
Now when the user resizes the OS window (a she::Display), it generates
a kDisplayResize she::Event, and this is processed by the UI layer to
redraw the entire ui::Manager.

With this change we remove the obscure "bool" return value in
she::Display::flip() member function.
2015-07-30 16:15:21 -03:00
David Capello f2d5242ff3 Redraw the entire ui::Manager after resizing
Regression introduced in dd94925cf7
2015-07-30 10:34:39 -03:00
David Capello dd94925cf7 Move display flip logic to ui library (ui::Manager class) 2015-07-29 18:12:35 -03:00
David Capello 46fa7e18cf Remove MovingPixelsState as an Editor observer when the editor is destroyed 2015-07-29 16:48:34 -03:00
David Capello 7cfdf76b0e Add rotation pivot options in context bar (fix #370)
With these options we can configure to show the pivot and the default
location when we select a sprite area.
2015-07-29 16:35:34 -03:00
David Capello 9ca83e2624 Add support to include any kind of widget inside a Menu 2015-07-29 12:32:01 -03:00
David Capello de3d408581 Unhighlight menu items when the mouse leaves them 2015-07-29 11:42:57 -03:00
David Capello 45b9df78d6 Fix compilation error on clang and gcc 2015-07-28 18:04:31 -03:00
David Capello 1b4ff37112 Simplify remap between old -> new palette
Now the remap is calculated from the old palette to the new palette when
the "Remap" button is pressed. In this way we can remap after loading
a new palette (fix #737), or after generating an optimized palette, or
changing colors (fix #563).
2015-07-28 17:16:32 -03:00
David Capello 056e365cc3 Use a PopupWindow instead of a TipWindow for SnapToGridWindow 2015-07-28 14:55:40 -03:00
David Capello 694b1c8da6 Rename blit_valid_rgn parameter to blitValidRegion 2015-07-28 14:48:19 -03:00
David Capello a7ea0f7ec5 Add "Snap to Grid" indicator when it's enabled (fix #122) 2015-07-28 13:05:59 -03:00
David Capello 9e5ccbcca9 Remove StatusBar color names in status_bar.cpp 2015-07-28 12:25:15 -03:00
David Capello 0898d685c2 Fix minor UI bug in the initial ContextBar::TransparentColorField state 2015-07-28 11:14:12 -03:00