kobewi
6b69ae8dd0
Reuse single erase pattern in tile editor
2024-04-17 20:43:00 +02:00
Rémi Verschelde
0473f291a7
Merge pull request #90709 from kleonc/tile-set-editor-atlas-with-separation-rect-drawing
...
Fix selection rect drawing in `TileSet` editor when create/remove tiles with separation
2024-04-17 10:58:49 +02:00
kleonc
2dfc4f4487
Fix TileSet editor create/remove tiles selection rect drawing
2024-04-15 19:03:19 +02:00
Gilles Roudière
bb6a1cb5a8
Fix heap-use-after-free error in TileMapLayerEditor
2024-04-12 17:56:28 +02:00
Rémi Verschelde
f6a78f83aa
Merge pull request #90207 from groud/fix_no_cached_rect
...
Fix "no cached rect" errors in TileMapLayer editor
2024-04-04 17:09:26 +02:00
Gilles Roudière
c928273c6c
Fixes "no cached rect" errors in TileMapLayer editor
2024-04-04 16:28:31 +02:00
Gilles Roudière
256a6713f2
Correctly update TileMapLayer highlighting when disabling it
2024-04-04 15:25:42 +02:00
Rémi Verschelde
1dacd6a527
Merge pull request #89179 from groud/expose_tile_map_layer
...
Expose TileMapLayer
2024-04-04 14:31:16 +02:00
Gilles Roudière
3cd4b2859c
Expose TileMapLayer
2024-04-03 11:02:34 +02:00
Haoyu Qiu
479b7afa8e
Add context support for editor property name i18n
2024-03-31 18:40:14 +08:00
A Thousand Ships
79ba22a73f
Use Vector*
component-wise min/max/clamp
functions where applicable
2024-03-20 13:47:42 +01:00
Rémi Verschelde
006f5bc11c
Merge pull request #89437 from jsjtxietian/help-label
...
Fix help label will be partly outside the view area at 150% editor scale
2024-03-13 18:41:50 +01:00
jsjtxietian
856e071762
Fix help label will be partly outside the view area at 150% editor scale
2024-03-13 17:50:02 +08:00
jsjtxietian
f59c147d1f
Fix center view button appears outside the GenericTilePolygonEditor
2024-03-13 12:46:14 +08:00
Hugo Locurcio
8221e7546b
Add editor shortcuts to toggle bottom panel visibility
...
Default shortcuts use the first or second letter of each word.
This also adds a new shortcut to toggle the last opened bottom panel.
On editor startup, this defaults to the first panel in the list
(which is the Output panel).
2024-03-05 15:53:15 +01:00
Rémi Verschelde
8f3e2a6113
Merge pull request #88912 from AThousandShips/tile_drag_fix
...
[TileSet] Fix crash when deleting dragged polygon point
2024-02-27 16:37:10 +01:00
A Thousand Ships
fe203d7003
Prevent threading problems in TileMap
2024-02-27 15:38:25 +01:00
A Thousand Ships
0ba7463803
[TileSet] Fix crash when deleting dragged polygon point
2024-02-27 15:16:27 +01:00
Muller-Castro
1638c1b28f
Add const lvalue ref to editor/* container parameters
2024-02-26 15:28:15 -03:00
Aaron Franke
1cb531ddb6
Move 2D-only resources to their own folder
2024-02-26 05:22:45 -06:00
kit
eb6ca91ba6
Extract BottomPanel from EditorNode
2024-02-20 15:09:07 -05:00
kobewi
a031911c82
Use check_changed_settings_in_group() everywhere
2024-02-19 21:34:45 +01:00
Rémi Verschelde
36b88cbb8a
Merge pull request #86694 from KoBeWi/deugly_the_text
...
Tweak tile atlas help label positions
2024-02-19 00:07:37 +01:00
Michael Alexsander
7b42c24550
Make auto translation inheritable
2024-02-15 16:51:19 -03:00
Hugo Locurcio
53dce9a84e
Tweak TileMap editor's missing source message to use "bottom panel" term
...
This term is used throughout the editor (including EditorPlugin)
as these bottom panels are technically not tabs.
2024-02-13 18:27:42 +01:00
Rémi Verschelde
391a8e5327
Merge pull request #85868 from KoBeWi/knowyourtiles
...
Add descriptions for tile properties
2024-02-13 11:24:42 +01:00
Gilles Roudière
5a999d67ec
Change TileMapEditor to TileMapLayerEditor
2024-02-12 10:11:45 +01:00
A Thousand Ships
684752e75b
Replace error checks against size
with is_empty
2024-02-09 12:50:15 +01:00
A Thousand Ships
dbcd82ba67
[Editor] Fix threading problems with TileMap
preview
2024-01-22 13:44:36 +01:00
Yuri Sizov
635b8a1474
Split theme generation logic into several subroutines
...
This change introduces a new theme configuration struct to be
passed to the aforementioned routines to better control reuse
of styles and definitions in the generator.
Everything not passed and not explicitly shared is scoped so it
is not automatically accessible throughout the routine. This
should ensure that the decision to share styles is a conscious one.
In the future we will try to reduce the number of unique definitions
and share most of it. This PR is a stepping stone on this path.
This also puts the effort into separating redefinitions of
default theme items vs custom types introduced only by the editor.
In a few cases where editor-specific definitions need to reference
default definitions we simply fetch them from the theme. It's not
ideal and hides the dependency a bit, but hopefully these cases
will be abstracted properly in due time.
2024-01-16 11:57:45 +01:00
Yuri Sizov
95b27fe8c7
Reorganize code related to editor theming
...
This change introduces a new EditorThemeManager class
to abstract theme generatio and its subroutines.
Logic related to EditorTheme, EditorColorMap, and editor
icons has been extracted into their respective files with
includes cleaned up.
All related files have been moved to a separate folder to
better scope them in the project. This includes relevant
generated files as well.
2024-01-16 11:57:45 +01:00
kleonc
baa5504700
Fix some TileMap debug drawing truncating to ints
2024-01-14 02:02:46 +01:00
kobewi
0e8f90f4c8
Update deferred calls to use Callables
2024-01-09 16:11:47 +01:00
Rémi Verschelde
dd487ebb0b
Merge pull request #86568 from jsjtxietian/fix-infinite-loop-tile
...
Fix potential infinite loop when calculating tile editor zoom level
2024-01-08 11:55:30 +01:00
jsjtxietian
42c672afd6
Fix infinite loop when calculating zoom level if tile_size * max_zoom < default
2024-01-06 16:11:26 +08:00
Muller-Castro
96a95cb974
Add const lvalue ref to container parameters
2024-01-05 14:49:57 -03:00
Rémi Verschelde
5eb22a317d
Merge pull request #83577 from DennisManaa/fix-translation-for-item-list
...
Add automatic translation of items to ItemList
2024-01-04 16:39:36 +01:00
Rémi Verschelde
6c390b620d
Merge pull request #84445 from Rubonnek/add-const-references-clang-tidy
...
Add const references detected by clang-tidy
2024-01-04 14:25:33 +01:00
kobewi
3058a4926f
Tweak tile atlas help label positions
2024-01-01 20:35:50 +01:00
jsjtxietian
1217d7d678
Fix UndoRedo history mismatch
when creating a new tile atlas
2023-12-21 17:25:21 +08:00
Yuri Sizov
1c0be67952
Merge pull request #85452 from BleedingXiko/tilemap-typo
...
Fix typo in TileMap editor tooltip
2023-12-19 13:01:54 +01:00
Wilson E. Alvarez
a3cb1b096f
Add const references detected by clang-tidy
2023-12-16 13:36:44 -05:00
Yuri Sizov
a6c0c90058
Merge pull request #86066 from Wiltof/tilemapPaint
...
Reset TileMap editor `drag_type` when the toolbar mode is not selected
2023-12-14 17:38:57 +01:00
Yuri Sizov
203c8c31d3
Merge pull request #85071 from Rubonnek/remove-unnecessary-assignments
...
Remove unnecessary assignments
2023-12-14 17:38:34 +01:00
wilto938
5a3de5bc30
Reset TileMap editor drag_type
by using the _stop_dragging() function when the toolbar mode is not selected
2023-12-14 11:58:36 +01:00
Gilles Roudière
18fe0bd025
Move tile transforms handling cache to TileData
2023-12-13 17:44:59 +01:00
Wilson E. Alvarez
80fb8db31f
Remove unnecessary assignments
...
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2023-12-13 11:06:26 -05:00
kobewi
6e31c413b6
Add descriptions for tile properties
2023-12-07 16:57:34 +01:00
Yuri Sizov
01888ae7ab
Fix theme application in various editor dialogs
...
99% of the time we shouldn't rely on the signal, we
should use the notification instead. I left some comments
in places where I couldn't quickly improve the code.
2023-12-04 13:18:48 +01:00
BleedingXiko
971b0a7bda
fix typo in tile_map_editor.cpp
2023-11-27 16:40:38 -08:00