Commit Graph

176 Commits

Author SHA1 Message Date
3a34acdf55 TileSet Simplify tile shape polygons 2022-12-19 11:42:40 +01:00
4d68e2b18a Move NavigationPolygon to dedicated resource file
Moves NavigationPolygon resource class from NavigationRegion2D file to a dedicated file in resource folder.
2022-12-17 19:52:40 +01:00
Zae
f6424e68ea [TileMap] Fix alternative tile issues. 2022-11-25 00:44:02 +08:00
3b14f0334c Remove redundant Variant-types initializations 2022-11-14 19:35:19 +01:00
072f6feaba Make some Image methods static 2022-10-14 14:34:15 +02:00
0103af1ddd Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4. 2022-10-07 11:32:33 +03:00
57ffc4d82c Merge pull request #66560 from MisterMX/fix/tileset-move-custom-data-layer
fix(tileset): Move custom data layer
2022-10-05 13:39:46 +02:00
e69b7083d4 Merge pull request #65903 from groud/improve_terrain_painting
Right-click to erase TileSet terrains and bugfixes
2022-09-30 17:44:48 +02:00
cfe518b90b fix(tileset): Move custom data layer
Fix crash when moving a custom data layer.

Signed-off-by: MisterMX <mbxd12@web.de>
2022-09-29 11:53:48 +02:00
7ab01450cf Fix MSVC warning C4702: unreachable code
Part of #66537.
2022-09-28 16:46:48 +02:00
68ffa9a2a1 Right-click to erase TileSet terrains and bugfixes 2022-09-16 15:22:55 +02:00
b7e2d45233 Replace Vector2(i) with Size2(i) for methods returning a size 2022-09-01 20:04:17 +02:00
b69f804c1a Fixes inherited scenes not working in TileSet scenes collection sources 2022-08-31 10:12:04 +02:00
1a24c9e14b Make _validate_property a multilevel method 2022-08-22 18:35:11 +03:00
6ba7dacf6b Merge pull request #63415 from ajreckof/expose_tilemap_custom_data_methods
Expose TileMap methods related to the name of custom data layers
2022-07-29 19:43:55 +02:00
8433ad5353 expose TileMap methods related to the name of custom data layers 2022-07-29 15:05:42 +02:00
8da2710911 Fix TileSet not loading correctly when embedded in a scene 2022-07-26 17:39:35 +02:00
84431bd782 Use integer types in Image and ImageTexture methods
- Image.blit_rect()
- Image.blit_rect_mask()
- Image.blend_rect()
- Image.blend_rect_mask()
- Image.fill_rect()
- Image.get_used_rect()
- Image.get_rect()
- ImageTexture.set_size_override()
2022-07-18 19:43:32 -05:00
2f777b9a1e Remove unused hints 2022-07-12 00:44:13 +02:00
d2900429e8 Add static methods for creating Image and ImageTexture 2022-07-08 13:40:47 +02:00
3a37053aac Make sure the tile data clears its terrain field when said terrain is removed from the tileset. 2022-07-02 15:01:07 +02:00
b3fe2732e3 Allow using CanvasItemMaterial in the TileSet editor
Previously, only ShaderMaterial overrides could be added.
2022-06-21 17:02:52 +02:00
62d2549e9e Add terrain center bit 2022-06-10 14:37:39 +02:00
77c8f271e7 use ERR_FAIL_INDEX when preferred 2022-05-25 13:36:45 -05:00
45af29da80 Add a new HashSet template
* Intended to replace RBSet in most cases.
* Optimized for iteration speed
2022-05-20 22:40:38 +02:00
5dc3bfb80e Use suffixes for units in nodes and resources 2022-05-19 14:34:27 -05:00
900c676b02 Use range iterators for RBSet in most cases 2022-05-19 12:09:16 +02:00
7b571ab8f7 Merge pull request #60986 from fire-forge/capitalism 2022-05-16 13:49:14 +02:00
746dddc067 Replace most uses of Map by HashMap
* Map is unnecessary and inefficient in almost every case.
* Replaced by the new HashMap.
* Renamed Map to RBMap and Set to RBSet for cases that still make sense
  (order matters) but use is discouraged.

There were very few cases where replacing by HashMap was undesired because
keeping the key order was intended.
I tried to keep those (as RBMap) as much as possible, but might have missed
some. Review appreciated!
2022-05-16 10:37:48 +02:00
40a1fc7a34 Reduce extra groups in TileSet 2022-05-12 17:31:58 -05:00
88a8038387 Capitalize/fix some property enum hints 2022-05-12 15:03:16 -05:00
88b09694e7 Fix inspector group name capitalization 2022-03-28 14:02:06 -05:00
257a71d29e Fix nullptr error in _update_padded_texture on texture with no image 2022-02-20 17:22:14 +00:00
a6c77c7c5a Use source image format when creating padded texture 2022-02-08 15:27:44 -05:00
1ce81dc5f2 Add missing SNAME macro optimization in some function calls 2022-02-06 15:54:04 +01:00
8a0a3accee simplify formatting scripts, add a clang-tidy script, and run clang-tidy 2022-01-29 04:41:03 -06:00
b8b33df178 TileSetAtlasSource: Make get_tile_data return TileData *
This is now possible thanks to `Variant` changes.

Also unbind some `_` prefixed methods which don't need to be exposed.
2022-01-28 14:27:12 +01:00
6c3a0460a8 Use List Initializations for Vectors. 2022-01-12 10:15:12 +05:45
fe52458154 Update copyright statements to 2022
Happy new year to the wonderful Godot community!
2022-01-03 21:27:34 +01:00
e078f970db Rename remove() to remove_at() when removing by index 2021-11-23 18:58:57 -07:00
1224d7a25c Implement texture padding in TileSetAtlasSources 2021-11-12 15:14:10 +01:00
57ae154e86 Merge pull request #53987 from groud/tile_data_inspector_plugin 2021-11-12 15:10:54 +01:00
3abb5a9035 Add missing argument names for bindings in GDExtension 2021-11-04 15:27:23 +01:00
c012fbc8b2 Rename PROPERTY_USAGE_NOEDITOR to PROPERTY_USAGE_NO_EDITOR
This is consistent with other constants that include `NO`,
such as `PROPERTY_HINT_COLOR_NO_ALPHA`.
2021-11-03 23:06:17 +01:00
c29d3d0b17 Fix crash in Tileset with get_collision_polygon_shape
Shape index was used instead of polygon index in this one case.
2021-11-02 17:06:19 -07:00
c609d39214 Implement missing TileMap brushes for terrains 2021-10-29 19:46:42 +02:00
756e76293f Implement runtime update of TileData object in TileMap 2021-10-27 18:32:52 +02:00
cec004adf0 Implement polygons editors in the tiles selection mode 2021-10-26 12:38:36 +02:00
d1aef45072 Allow updating TileMap cells using surrounding terrains 2021-10-21 16:57:28 +02:00
1a95f893c4 Implement TileMap patterns palette 2021-10-19 11:57:37 +02:00