diff options
author | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-11-07 08:58:35 +0100 |
---|---|---|
committer | Gilles Roudiere <gilles.roudiere@laas.fr> | 2018-02-16 10:14:52 +0100 |
commit | 8dad41e395220404fb0fdafaa0cd4ed18179231f (patch) | |
tree | 37b9190b77fa989f9d9d369b80957c3890e4164f /scene/2d/sprite.h | |
parent | 68f277477b5a5f3003405e36c6b6853720cb91de (diff) | |
download | redot-engine-8dad41e395220404fb0fdafaa0cd4ed18179231f.tar.gz |
2D editor GUI input rework. Changes are:
- The input handling is done into several distinct functions, and the
code is more consistent.
- The actions' history is more precise ("Edited CanvasItem"
is now "Rotated CanvasItem","Moved CanvasItem",etc...)
- Fixed a little bug about input key events not forwarded correctly to plugins
- IK is followed by default when you move a bone node, the alt-key allow
you to move it normally
Diffstat (limited to 'scene/2d/sprite.h')
-rw-r--r-- | scene/2d/sprite.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/2d/sprite.h b/scene/2d/sprite.h index 261165bbf9..0422e0635f 100644 --- a/scene/2d/sprite.h +++ b/scene/2d/sprite.h @@ -65,6 +65,9 @@ protected: virtual void _validate_property(PropertyInfo &property) const; public: + virtual Dictionary _edit_get_state() const; + virtual void _edit_set_state(const Dictionary &p_state); + virtual void _edit_set_pivot(const Point2 &p_pivot); virtual Point2 _edit_get_pivot() const; virtual bool _edit_use_pivot() const; |