David Capello
462f1f395e
Add support to rotate the selection/moving pixels ( fix #161 )
2015-08-13 21:47:30 -03:00
David Capello
62c6647710
Fix cmd::FlipMaskedCel to flip irregular regions
2015-08-13 21:38:35 -03:00
David Capello
ec2ef30f20
Add some logging in debug mode for Cmd() members
2015-08-13 21:00:02 -03:00
David Capello
5b05c23722
Add LOG and DLOG macros
...
In the future, PRINTF() should be replace with LOG()
2015-08-13 20:58:36 -03:00
David Capello
f9069cb83f
Use PIxelMovement::updateDocumentMask() to update the mask after flip
2015-08-13 20:51:27 -03:00
David Capello
e0020d36f2
Fix bug undoing/redoing pixel movements with several mask movements
...
If we call updateDocumentMask() in this point, we'll leave a
sequence of cmds: SetMask(old mask, new mask) -> ClearMask(new mask)
And we need the opposite: ClearMask(old mask) -> SetMask(old mask, new mask)
This bug was introduced in 35229e99a6
2015-08-13 20:45:44 -03:00
David Capello
617284b518
Fix "sprite is locked" message when Ctrl+T is pressed (MaskContentCommand)
2015-08-13 20:12:31 -03:00
David Capello
8c6c1d29df
Minor changes in src/app/document_access.h
2015-08-13 17:25:54 -03:00
David Capello
40394d9695
Enable commands when we're in MovingPixelsState
...
Now ContextFlags enable some flags if it detects that the current editor
is in MovingPixelsState. In this way commands "think" that they are able
to lock the document for write access (finally they will be able, because
MovingPixelsState::onBeforeCommandExecution() unlocks the document
just before the command is executed).
Fix #275 , fix #690 , fix #750
2015-08-13 17:25:39 -03:00
David Capello
782aa72faf
Fix opacity value for custom brushes
2015-08-13 15:41:37 -03:00
David Capello
4984a48918
Remove TODO.md file ( close #289 )
2015-08-13 13:38:16 -03:00
David Capello
32bf3314e6
Add a new simple/default ink
...
This ink behaves as alpha compositing but doesn't use the opacity slider
(opacity is used from current color's alpha channel). Also, in case that
we pick the mask color, it behaves as the eraser tool.
2015-08-13 13:26:52 -03:00
David Capello
f4d82ad2c0
Add "Link Cels" command in Timeline popup
...
From a comment in issue #746
2015-08-13 09:59:44 -03:00
David Capello
8ca323492e
Don't show warning icon for Mask color
2015-08-12 19:12:10 -03:00
David Capello
72d6aebbda
Show transparent color in indexed transparent layers as the mask color
2015-08-12 19:11:59 -03:00
David Capello
b75b9a6f1b
Don't redraw brush preview area in other editors if they aren't in the current frame
2015-08-12 17:32:17 -03:00
David Capello
1b930d4d42
Draw document's extra cel (brush preview) in the current frame only
2015-08-12 17:24:48 -03:00
David Capello
436866c128
Fix ColorSliders preferred size when guiscale() > 1
2015-08-12 17:09:15 -03:00
David Capello
bb8c238423
Move scrollbar size to skin.xml
2015-08-12 16:56:19 -03:00
David Capello
d323b4affc
Remove public variable members from ui::Theme class
2015-08-12 16:48:40 -03:00
David Capello
77d8024026
Fix bug with save/load progress bar: cannot be edited now
...
The ui::Alert slider to show progress is read-only now.
2015-08-12 16:10:20 -03:00
David Capello
a24864b2c8
Fix bug clearing the first image in a new Indexed sprite
...
The color/index was being searched in the current palette (of the
unrelated current sprite) instead of the sprite default palette.
2015-08-12 15:40:44 -03:00
David Capello
4302d12cb4
Move "New Sprite" preferences from raw get/set_config_*() to pref.xml
2015-08-12 15:35:46 -03:00
David Capello
2eb757995d
Catch exception if we cannot change the selection transparent color
...
We have a memory crash dump where wasn't possible to change the
selection transparent color because the data recovery thread was creating
the sprite backup.
2015-08-12 15:26:49 -03:00
David Capello
847fc58a01
Fix UI problem navigating FileSelector using autocomplete and keyboard
...
With this fix, when the list of possible completions for a filename
is regenerated, we deselect the previously selected item. So the new
list appears without any item selected by default.
2015-08-12 15:17:53 -03:00
David Capello
c9ed7bf868
Fix brush boundaries glitches in extreme cases
...
We this commit we don't share saved pixels information between
different BrushPreview instances.
If we pressed E key to swich to the eraser tool, and kept it pressed,
moving the mouse cursor over different editors produced invalid restored
pixels.
2015-08-12 15:07:32 -03:00
David Capello
4c54c62644
Fix internal rows' focused style in a ButtonSet
2015-08-12 14:37:58 -03:00
David Capello
61879652cf
Use Allegro callbacks to generate key up/down events
2015-08-12 13:33:04 -03:00
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