Commit Graph

7668 Commits

Author SHA1 Message Date
David Capello
bff884b4c8 Merge branch 'master' into beta 2020-10-22 12:18:30 -03:00
David Capello
ca013ff5d8 [lua] Check that some arguments are really strings in make/removeDir 2020-10-22 12:17:49 -03:00
David Capello
14893fbaf8 [lua] Add functions to make/remove directories with app.fs 2020-10-22 11:36:52 -03:00
David Capello
68c9203880 Add new dark theme contributed by Nicolas Desilets 2020-10-20 17:22:42 -03:00
David Capello
661f4897b2 Check that we're in the UI thread when modifying the widgets collection 2020-10-20 12:54:56 -03:00
David Capello
0993248189 Try to avoid modifying indexes of non-modified tiles in Auto mode 2020-10-19 22:21:31 -03:00
David Capello
423cec71e5 Improve Auto tileset mode: re-use the same tile index when it's possible 2020-10-19 21:54:16 -03:00
David Capello
108f2bc1a3 Fix minor typo 2020-10-19 16:56:41 -03:00
David Capello
50fd450e5e Fix remap of tiles when we delete a tile from the tileset 2020-10-19 16:30:15 -03:00
David Capello
38d1b8a8e2 Fix Flip command labels when assigning shortcuts (fix #2545) 2020-10-17 09:36:36 -03:00
David Capello
2089c1b7da Draw tile numbers correctly for tilemaps in the old tiled mode 2020-10-16 17:05:38 -03:00
David Capello
96dd05ba89 Move code to draw tile numbers to Editor::drawTileNumbers() 2020-10-16 16:54:14 -03:00
David Capello
cfdbe91b4a Fix drawing in tiled mode & tiles mode 2020-10-16 16:46:40 -03:00
David Capello
5ff7b6af0c Fix remap button of tiles 2020-10-16 16:19:29 -03:00
David Capello
a255213636 Now Edit > Clear on tilemaps can shrink/trim the tilemap 2020-10-15 16:04:55 -03:00
David Capello
0effbacd11 Fix cmd::TrimCel() for tilemaps when drawing tiles 2020-10-15 15:34:53 -03:00
David Capello
8b1f887720 Show tile numbers when moving tilemaps 2020-10-13 18:12:29 -03:00
David Capello
40a56a6281 Fix expanded bounds when painting pixels (non-tiles) 2020-10-13 15:59:14 -03:00
David Capello
2dadd1839c Fix the origin position of a newly created cel after a ToolLoop in pixels mode 2020-10-13 12:27:40 -03:00
David Capello
84dbb5557e [lua] Fix functions to set/get user data with cmd::SetUserData + DocEvent 2020-10-13 11:53:30 -03:00
Gaspar Capello
13addb4336 UI user data window integration 2020-10-13 11:07:10 -03:00
David Capello
6c4621a26a Fix copy & paste of images from GM2 2020-10-13 10:49:26 -03:00
David Capello
0bca1de5c1 Add support to fill with tiles 2020-10-09 17:22:57 -03:00
David Capello
0e84e8642e Fix Eraser tool (left/right click) in tiles mode 2020-10-06 10:40:08 -03:00
David Capello
8312db853e Fix issues creating the tilemap cels in Tiles mode
* Now old tiles don't appear (tiles painted in previously m_dstImage
  images)
* Fixed cel position: now the correct position (in canvas coordinate)
  is set
2020-10-05 18:21:22 -03:00
David Capello
ea75e22628 Switch to pixels mode when we change the tileset mode (which makes sense only in Pixels tilemap mode) 2020-10-05 14:45:20 -03:00
David Capello
120fb4dca4 Add support to copy/cut/paste/transform tilemaps 2020-10-02 19:03:53 -03:00
David Capello
51b038ac02 Fix "H" character in mini font (to avoid confusion with "W") 2020-09-29 15:42:55 -03:00
David Capello
edebb57f66 Refactor clipboard code
* Moved all clipboard:: functions inside app::Clipboard class
* Convert app:📋:ClipboardFormat enum to
  app::ClipboardFormat enum class
* Added app::Context::clipboard()
2020-09-25 11:14:52 -03:00
David Capello
44f65ad305 Minor change: use more "auto" before dynamic_cast() 2020-09-25 09:48:56 -03:00
David Capello
d843866746 Fix skew transformation from north/south handles when the bounds are flipped 2020-09-24 16:32:43 -03:00
David Capello
fe85d9d492 Fix comment in skew cases
In the initial impl of skew transformation the ABCD points were named
PQRS.
2020-09-24 16:31:46 -03:00
David Capello
6889c3e0d4 Remove unused var 2020-09-24 15:18:38 -03:00
David Capello
e2db76492b Avoid div by zero or extreme angles for skew transformation 2020-09-23 19:43:35 -03:00
David Capello
70a884d8ee Replace fixmath::fixed with double floating point in some cases 2020-09-22 18:34:35 -03:00
David Capello
8c916bf211 Minor fix to the angle used on each handle for mouse cursors 2020-09-22 17:12:22 -03:00
David Capello
732503eb30 Reword and fix some typos in CODING_STYLE guide 2020-09-20 13:16:14 -03:00
David Capello
3fbdd40f24 Add skew transformation (fix #71)
This is the first version of the feature, it still needs some
fixes (e.g. avoid skew transform when the pivot is in the same side of
the skew handle which can calculate a division by zero).
2020-09-18 19:29:43 -03:00
David Capello
98d06c31e3 Refactor KeyContext <-> string conversions 2020-09-02 18:09:19 -03:00
David Capello
676c582ede Minor change in gui.xml comments 2020-09-02 18:03:07 -03:00
David Capello
90dd05d57c Update visible region when editor scroll/zoom change 2020-09-01 13:02:25 -03:00
David Capello
c19ac7a45c Move the cancel flag from ToolLoop to ToolLoopManager 2020-09-01 12:13:24 -03:00
David Capello
5f45271779 Move some UI related things to ToolLoopBase() ctor to avoid querying the UI from the ToolLoopManager
There are plans to move the ToolLoopManager to a background thread, so
we cannot access the UI from that thread.
2020-09-01 10:28:21 -03:00
David Capello
291ebc6a38 Minor refactor from ui::MouseMessage -> tools::Pointer 2020-08-31 23:17:15 -03:00
David Capello
b1c0d80356 Add support to clear/fill/stroke selections in tiles mode 2020-08-27 20:32:22 -03:00
David Capello
4eeaad5a69 Fix preview with selection tools in tiles mode 2020-08-26 12:30:48 -03:00
David Capello
e5bfccbcd2 Simplify grid origin adjustment on ExpandCelCanvas::ExpandCelCanvas() 2020-08-25 16:09:32 -03:00
David Capello
580fe1b030 Minor change in ToolLoopImpl getInk() -> m_ink 2020-08-25 16:08:59 -03:00
David Capello
48d9e4c289 Fix compilation error in shrink_benchmark.cpp 2020-08-25 15:33:11 -03:00
David Capello
a4ba4c92fd Disable changing to TilemapMode::Tiles when we aren't in a tilemap 2020-08-25 15:04:39 -03:00