Commit graph

119 commits

Author SHA1 Message Date
Maganty Rushyendra
69dc9c9417 Fix tile placement preview for rotated, skewed or scaled TileMaps
Ensures that the editor preview when placing a tile on a TileMap takes
into account the transformation of the TileMap. Previously, only the
origin of the Tile was transformed, but not its orientation or
scaling.

(cherry picked from commit cf04aabef1)
2020-08-14 00:32:05 +02:00
Hugo Locurcio
6bbfed6400 Implement zooming using Ctrl + Mouse wheel in the TileMap editor
This was previously implemented in the GridMap editor. This makes
the same feature available in the TileMap editor.

(cherry picked from commit def2059d67)
2020-06-04 12:09:40 +02:00
Rémi Verschelde
fa0cf25e19 Add shortcut for Pan Mode (G)
And change TileMap Bucket Fill shortcut to (B).

Fixes #8582.

(cherry picked from commit 28b33718b0)
2020-06-04 12:09:39 +02:00
dankan1890
a5bbd13794 Fixed output prints " Signal 'node_removed' is already connected " when the editor settings window is closed.
Close #38012

(cherry picked from commit ef08e64afb)
2020-04-23 11:13:33 +02:00
Tomasz Chabora
472b0e0d34 Properly handle node remove via undo
(cherry picked from commit 37ffb40047)
2020-04-16 11:56:50 +02:00
Hugo Locurcio
e834e35ea8 Change the Pick Tile and Select default shortcuts in the TileMap editor
The new default keys were chosen to match common graphics editing
software. A modifier is no longer required to use the Select tool,
making it faster to use.

This closes #34170.

(cherry picked from commit 88213b54ba)
2020-02-14 16:04:39 +01:00
Haoyu Qiu
ca537dea76 Fixes invalid read when using fill tool in empty tilemap 2020-01-27 20:39:49 +08:00
Rémi Verschelde
a7f49ac9a1 Update copyright statements to 2020
Happy new year to the wonderful Godot community!

We're starting a new decade with a well-established, non-profit, free
and open source game engine, and tons of further improvements in the
pipeline from hundreds of contributors.

Godot will keep getting better, and we're looking forward to all the
games that the community will keep developing and releasing with it.
2020-01-01 11:16:22 +01:00
Hugo Locurcio
13f98f80b6
Use the CanvasItemEditor info overlay to display TileMap coordinates
This also removes the editor setting that toggles coordinate display,
as it no longer solves an existing bug.

This closes #28135.
2019-11-22 23:58:36 +01:00
Tomasz Chabora
f7476359e0 Make sure tile is selected when selecting TileMap 2019-11-13 14:26:37 +01:00
PouleyKetchoupp
13c88878c4 Fixed cases where labels with autowrap can overflow the editor ui
Fixes #33155
2019-11-04 10:12:36 +01:00
dankan1890
2bdde74d45 Changed the appearance of the rotation icons in the Tilemap.
Make them more intuitive.
2019-09-26 10:59:48 +02:00
Rémi Verschelde
cf540f853d
Merge pull request #31974 from YeldhamDev/tilegrid_map_fixes
Small fixes for the Tile/GridMap editors
2019-09-24 11:06:34 +02:00
Michael Alexsander Silva Dias
fd0dace4b5 Small fixes for the Tile/GridMap editors 2019-09-04 16:54:05 -03:00
Michael Alexsander Silva Dias
5f3a55acb7 Add informational messages to various editors 2019-09-04 12:37:11 -03:00
Tomasz Chabora
9520d9706a Edit TileMap only with TOOL_SELECT 2019-08-21 20:56:15 +02:00
Tomasz Chabora
7e075029c8 Fix various typos and style errors in text 2019-08-19 20:43:42 +02:00
rzllmr
653039151a Fix row-column-swap in TileMap palette
Due to the TileSet coordinates using x for columns and y for rows, the
columns are assigned to the rows in the TileMap palette and distort the
order. Thus the default sorting algorithm prioritizing x is replaced
with a custom one prioritizing y.

Fixes #24751
2019-08-03 21:32:13 +02:00
Tomasz Chabora
38d9434098 Add tilemap editor rotation hotkeys 2019-07-14 15:46:47 +02:00
qarmin
01cc7a996b Use reference to constant in functions 2019-07-10 11:54:12 +02:00
Ranoller
14e2a99129 Tilemap fix displaced textures and shapes and added center texture and compatibility mode
This commit fix #22989 #15249 #28206. Main problem is that tilemap displace textures in different tile origins in a strange way and doesn´t respect coincidence between texture and shapes in not uniform tiles. This issue is present in godot 3.0 and godot 3.1. To maintain compatibility are added a compatibility mode and a center texture option. Other related issues and pull request: #28896 #29487 #29519 #29961. Idications of #30204 are added
2019-07-02 17:12:58 +02:00
hbina085
9f0c6a6009 Many fallthrough switch cases now have the FALLTHROUGH macro to tell the compiler that this is intended. 2019-06-29 16:08:48 -04:00
qarmin
4e5310cc60 Some code changed with Clang-Tidy 2019-06-26 15:08:25 +02:00
Rémi Verschelde
94fbaf71a6
Merge pull request #29474 from YeldhamDev/pick_subtile_fix
Fix subtile picking in TileMap editor
2019-06-12 12:50:31 +02:00
Ranoller
f26e9daab5 Make tilemap texture origin point top-left.
Fix https://github.com/godotengine/godot/issues/29487. In this commit: https://github.com/godotengine/godot/pull/28896 bad offset of textures and shapes was fixed, but a center of texture was added too, and this seems not dessired by default because breaks too much compatibility with demos and user projects. A future Check box for center texture can be added
2019-06-05 23:23:36 +02:00
Rémi Verschelde
e22dde1b18
Merge pull request #29452 from YeldhamDev/remember_selected_subtile
Remember selected subtile when updating the TileMap editor
2019-06-04 17:16:03 +02:00
Rémi Verschelde
33163c0040
Merge pull request #29460 from YeldhamDev/tilemapeditor_atlas_copy_fix
Fix TileMap editor not correctly copying atlas tiles
2019-06-04 16:56:59 +02:00
Michael Alexsander Silva Dias
6be7fea798 Fix subtile picking in TileMap editor
Fixes #29445.
2019-06-04 11:36:05 -03:00
Michael Alexsander Silva Dias
412a0b73e9 Fix error spam when typing in the TileMap editor's search box while having no results 2019-06-04 01:44:38 -03:00
Michael Alexsander Silva Dias
6b7d8fd946 Fix TileMap editor not correctly copying atlas tiles
Fixes #29307.
2019-06-04 00:44:01 -03:00
Michael Alexsander Silva Dias
0a03ed7544 Remember selected subtile when updating the TileMap editor
Fixes #29444.
2019-06-03 21:20:38 -03:00
Rémi Verschelde
4b399034aa
Merge pull request #24560 from guilhermefelipecgs/fix_24549
Add EDITMODE_PRIORITY for ATLAS_TILE
2019-06-01 09:49:18 +02:00
Ranoller
7a8e4f64b8 Fix tilemap displaced textures and shapes with origin point BOTTOM_LEFT and CENTER and other casuistry
This commit fix https://github.com/godotengine/godot/issues/22989 fixing displaced textures and not coincident shapes in tilemap. Fix too: https://github.com/godotengine/godot/issues/15249, https://github.com/godotengine/godot/issues/28206, https://github.com/godotengine/godot/issues/28610 and probably others
2019-05-15 04:14:27 +02:00
Rémi Verschelde
ac0369e9ff
Merge pull request #27845 from samdze/master
Make TileMap overridable "set_cell" function called on undo/redo
2019-04-30 10:55:53 +02:00
Guilherme Felipe
99958c99da [TileMapEditor] Improve tool picking usability
When KEY_CONTROL is released, go back to the last tool.

Also add a tooltip for paint button with shortcuts for line draw and
rectangle paint.
2019-04-29 12:38:33 -03:00
Samuele Zolfanelli
e2dd0c101e Make TileMap overridable "set_cell" function called on undo/redo 2019-04-27 17:20:32 +02:00
Rémi Verschelde
5fe971145c
Merge pull request #28347 from homer666/tilemap-hide-menu
Hide "TileMap" menu properly in CanvasItem view
2019-04-25 13:32:04 +02:00
Guilherme Felipe
6fb19bebbb [Tilemap] Fix typo 2019-04-24 21:30:50 -03:00
homer666
1aaab30a2b Hide "Tilemap" menu properly in CanvasItem view 2019-04-24 04:31:53 +10:00
Hein-Pieter van Braam
696d9d20cf
Merge pull request #25510 from groud/tilemap_editor_enhancement
Move some tilemap options to the toolbar
2019-04-23 06:26:46 +03:00
Rémi Verschelde
de33c37196
Merge pull request #27565 from SpechtMagnus/tileset_autotile_ignore_flags
Added ignore flag / wildcard bit to tileset autotile
2019-04-08 10:04:30 +02:00
Magnus Specht
a3af9d5714 + Added ignore flags to autotile bitmask
+ Added ignore functionality to tileset editor
+ Updated tileset editor autotile tooltip
+ Autotile ignore bits are processed and rendered correctl
2019-04-08 00:41:05 +02:00
Mariano Javier Suligoy
bfc3ba5af0
Merge pull request #27365 from Byteron/tile_map_negative_offset
TileMap, negative Y and X Offset
2019-04-05 09:24:32 -03:00
Aaron Winter
63e0fd7675 added negative X and negative Y offset to TileMap
clang-format

added negative X and negative Y offset to TileMap
2019-04-05 10:37:35 +02:00
Samuele Zolfanelli
a6f5cf7de7 Allow TileMap to override set_cell behaviour while using TileMap editor 2019-04-01 13:03:35 +02:00
Magnus Specht
601acdf0e1 Fixed unfinished max_lines handling for crash avoidance. 2019-03-24 19:17:02 +01:00
Michael Alexsander Silva Dias
3ef8238c1c Make translatable some undo/redo operations in the editor 2019-02-21 16:41:01 -03:00
marxin
8d51618949 Add -Wshadow=local to warnings and fix reported issues.
Fixes #25316.
2019-02-20 19:44:12 +01:00
Gilles Roudiere
96f25c8b67 Move some tilemap options to the toolbar 2019-01-30 16:06:40 +01:00
Rémi Verschelde
b16c309f82 Update copyright statements to 2019
Happy new year to the wonderful Godot community!
2019-01-01 12:58:10 +01:00