Rename CanvasItem's hide signal to hidden

This commit is contained in:
Marcel Admiraal 2020-12-08 10:02:17 +00:00
parent d94de32579
commit 43302837eb
4 changed files with 5 additions and 5 deletions

View File

@ -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>

View File

@ -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);

View File

@ -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");

View File

@ -58,7 +58,7 @@ public:
StringName dot;
StringName doubledot;
StringName draw;
StringName hide;
StringName hidden;
StringName visibility_changed;
StringName input_event;
StringName _input_event;