Skip to content

Commit

Permalink
Rename CanvasItem's hide signal to hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
madmiraal committed Dec 8, 2020
1 parent d94de32 commit 4330283
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/classes/CanvasItem.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions scene/main/canvas_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion scene/scene_string_names.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion scene/scene_string_names.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class SceneStringNames {
StringName dot;
StringName doubledot;
StringName draw;
StringName hide;
StringName hidden;
StringName visibility_changed;
StringName input_event;
StringName _input_event;
Expand Down

0 comments on commit 4330283

Please sign in to comment.