diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2016-11-30 14:33:39 +0100 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2016-11-30 14:33:39 +0100 |
commit | 86789c7071836b802e6edb0538ce6de2b7949c7b (patch) | |
tree | 262677a7c8ec1cf03ae897de6a235415fc7e3087 /scene/resources/tile_set.h | |
parent | c05ff0577fd9cc39a6968e65743f7d7da711bfe2 (diff) |
Add modulate (color) to TileSet tiles
Diffstat (limited to 'scene/resources/tile_set.h')
-rw-r--r-- | scene/resources/tile_set.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/resources/tile_set.h b/scene/resources/tile_set.h index fb0e832c1e..dabfdf9c4c 100644 --- a/scene/resources/tile_set.h +++ b/scene/resources/tile_set.h @@ -52,6 +52,10 @@ class TileSet : public Resource { Vector2 navigation_polygon_offset; Ref<NavigationPolygon> navigation_polygon; Ref<CanvasItemMaterial> material; + Color modulate; + + // Default modulate for back-compat + explicit Data() : modulate(1,1,1) {} }; Map<int,Data> tile_map; @@ -94,6 +98,9 @@ public: void tile_set_material(int p_id,const Ref<CanvasItemMaterial> &p_material); Ref<CanvasItemMaterial> tile_get_material(int p_id) const; + void tile_set_modulate(int p_id,const Color &p_color); + Color tile_get_modulate(int p_id) const; + void tile_set_occluder_offset(int p_id,const Vector2& p_offset); Vector2 tile_get_occluder_offset(int p_id) const; |