Merge pull request #44189 from madmiraal/canvasitem-hidden-signal
Rename CanvasItem's hide signal to hidden
This commit is contained in:
commit
3846a3703a
4 changed files with 5 additions and 5 deletions
|
@ -608,7 +608,7 @@
|
|||
Emitted when the [CanvasItem] must redraw. This can only be connected realtime, as deferred will not allow drawing.
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="hide">
|
||||
<signal name="hidden">
|
||||
<description>
|
||||
Emitted when becoming hidden.
|
||||
</description>
|
||||
|
|
|
@ -364,7 +364,7 @@ void CanvasItem::_propagate_visibility_changed(bool p_visible) {
|
|||
if (p_visible) {
|
||||
update(); //todo optimize
|
||||
} else {
|
||||
emit_signal(SceneStringNames::get_singleton()->hide);
|
||||
emit_signal(SceneStringNames::get_singleton()->hidden);
|
||||
}
|
||||
_block();
|
||||
|
||||
|
@ -1227,7 +1227,7 @@ void CanvasItem::_bind_methods() {
|
|||
|
||||
ADD_SIGNAL(MethodInfo("draw"));
|
||||
ADD_SIGNAL(MethodInfo("visibility_changed"));
|
||||
ADD_SIGNAL(MethodInfo("hide"));
|
||||
ADD_SIGNAL(MethodInfo("hidden"));
|
||||
ADD_SIGNAL(MethodInfo("item_rect_changed"));
|
||||
|
||||
BIND_CONSTANT(NOTIFICATION_TRANSFORM_CHANGED);
|
||||
|
|
|
@ -41,7 +41,7 @@ SceneStringNames::SceneStringNames() {
|
|||
doubledot = StaticCString::create("..");
|
||||
draw = StaticCString::create("draw");
|
||||
_draw = StaticCString::create("_draw");
|
||||
hide = StaticCString::create("hide");
|
||||
hidden = StaticCString::create("hidden");
|
||||
visibility_changed = StaticCString::create("visibility_changed");
|
||||
input_event = StaticCString::create("input_event");
|
||||
shader = StaticCString::create("shader");
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
StringName dot;
|
||||
StringName doubledot;
|
||||
StringName draw;
|
||||
StringName hide;
|
||||
StringName hidden;
|
||||
StringName visibility_changed;
|
||||
StringName input_event;
|
||||
StringName _input_event;
|
||||
|
|
Loading…
Reference in a new issue