diff options
author | Tomasz Chabora <kobewi4e@gmail.com> | 2019-04-24 14:19:13 +0200 |
---|---|---|
committer | Tomasz Chabora <kobewi4e@gmail.com> | 2019-06-01 12:33:24 +0200 |
commit | 662c8f95ec81c7f2021bc83a3fecd621020668a7 (patch) | |
tree | 5f5f770df357efcc8c883759bfa3ea7e0bc94b19 /scene/2d/position_2d.h | |
parent | e1d16e722ec9742c3f92d20dc433d540339c36e6 (diff) | |
download | redot-engine-662c8f95ec81c7f2021bc83a3fecd621020668a7.tar.gz |
Allow to change Position2D gizmo size
Diffstat (limited to 'scene/2d/position_2d.h')
-rw-r--r-- | scene/2d/position_2d.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/2d/position_2d.h b/scene/2d/position_2d.h index c95315fea3..dc9cc2df15 100644 --- a/scene/2d/position_2d.h +++ b/scene/2d/position_2d.h @@ -37,14 +37,21 @@ class Position2D : public Node2D { GDCLASS(Position2D, Node2D) + const float DEFAULT_GIZMO_EXTENTS = 10.0; + void _draw_cross(); protected: void _notification(int p_what); + static void _bind_methods(); public: virtual Rect2 _edit_get_rect() const; virtual bool _edit_use_rect() const; + + void set_gizmo_extents(float p_extents); + float get_gizmo_extents() const; + Position2D(); }; |