mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 20:23:53 +00:00
Bind NOTIFICATION_LOCAL_TRANFORM_CHANGED
This commit is contained in:
parent
5901d91458
commit
640099cce5
@ -439,14 +439,14 @@
|
||||
<return type="void" />
|
||||
<argument index="0" name="enable" type="bool" />
|
||||
<description>
|
||||
If [code]enable[/code] is [code]true[/code], children will be updated with local transform data.
|
||||
If [code]enable[/code] is [code]true[/code], this node will receive [constant NOTIFICATION_LOCAL_TRANSFORM_CHANGED] when its local transform changes.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_notify_transform">
|
||||
<return type="void" />
|
||||
<argument index="0" name="enable" type="bool" />
|
||||
<description>
|
||||
If [code]enable[/code] is [code]true[/code], children will be updated with global transform data.
|
||||
If [code]enable[/code] is [code]true[/code], this node will receive [constant NOTIFICATION_TRANSFORM_CHANGED] when its global transform changes.
|
||||
</description>
|
||||
</method>
|
||||
<method name="show">
|
||||
@ -524,7 +524,10 @@
|
||||
</signals>
|
||||
<constants>
|
||||
<constant name="NOTIFICATION_TRANSFORM_CHANGED" value="2000">
|
||||
The [CanvasItem]'s transform has changed. This notification is only received if enabled by [method set_notify_transform] or [method set_notify_local_transform].
|
||||
The [CanvasItem]'s global transform has changed. This notification is only received if enabled by [method set_notify_transform].
|
||||
</constant>
|
||||
<constant name="NOTIFICATION_LOCAL_TRANSFORM_CHANGED" value="35">
|
||||
The [CanvasItem]'s local transform has changed. This notification is only received if enabled by [method set_notify_local_transform].
|
||||
</constant>
|
||||
<constant name="NOTIFICATION_DRAW" value="30">
|
||||
The [CanvasItem] is requested to draw.
|
||||
|
@ -978,6 +978,7 @@ void CanvasItem::_bind_methods() {
|
||||
ADD_SIGNAL(MethodInfo("item_rect_changed"));
|
||||
|
||||
BIND_CONSTANT(NOTIFICATION_TRANSFORM_CHANGED);
|
||||
BIND_CONSTANT(NOTIFICATION_LOCAL_TRANSFORM_CHANGED);
|
||||
BIND_CONSTANT(NOTIFICATION_DRAW);
|
||||
BIND_CONSTANT(NOTIFICATION_VISIBILITY_CHANGED);
|
||||
BIND_CONSTANT(NOTIFICATION_ENTER_CANVAS);
|
||||
|
Loading…
Reference in New Issue
Block a user