summaryrefslogtreecommitdiffstats
path: root/scene/2d/sprite.cpp
diff options
context:
space:
mode:
authorMarianoGNU <marianognu.easyrpg@gmail.com>2016-06-19 22:16:41 -0300
committerMarianoGNU <marianognu.easyrpg@gmail.com>2016-06-20 17:06:19 -0300
commit79c500bee1bb53164a78855419eca8543193f77f (patch)
tree76394a11b51fe1156ea80e94776c488e7b858f02 /scene/2d/sprite.cpp
parent38843a67a9fc1411feaa0106b83d499b511aa7c3 (diff)
downloadredot-engine-79c500bee1bb53164a78855419eca8543193f77f.tar.gz
Modify margins with mouse input
Diffstat (limited to 'scene/2d/sprite.cpp')
-rw-r--r--scene/2d/sprite.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/2d/sprite.cpp b/scene/2d/sprite.cpp
index 3e6384ea2c..27aa08ec5b 100644
--- a/scene/2d/sprite.cpp
+++ b/scene/2d/sprite.cpp
@@ -120,6 +120,7 @@ void Sprite::set_texture(const Ref<Texture>& p_texture) {
}
#endif
update();
+ emit_signal("texture_changed");
item_rect_changed();
}
@@ -323,6 +324,7 @@ void Sprite::_bind_methods() {
ObjectTypeDB::bind_method(_MD("get_modulate"),&Sprite::get_modulate);
ADD_SIGNAL(MethodInfo("frame_changed"));
+ ADD_SIGNAL(MethodInfo("texture_changed"));
ADD_PROPERTYNZ( PropertyInfo( Variant::OBJECT, "texture", PROPERTY_HINT_RESOURCE_TYPE,"Texture"), _SCS("set_texture"),_SCS("get_texture"));
ADD_PROPERTYNO( PropertyInfo( Variant::BOOL, "centered"), _SCS("set_centered"),_SCS("is_centered"));