Skip to content

Commit

Permalink
refactor: update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
joelgomes1994 committed May 16, 2024
1 parent 25559fa commit ec3db68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/simple-gui-transitions/singleton.gd
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func hide(id := "", function: Callable = _default_callable):
_for_each_layout("_hide", [id, _function])


## Returns if layout with the given id is visible.
## Returns if layout with the given id is currently visible.
func is_shown(id: String) -> bool:
if not _layouts.has(id):
push_error("Layout with given id does not exist: " + str(id))
Expand All @@ -51,7 +51,7 @@ func is_shown(id: String) -> bool:
return true


## Returns if layout with the given id is hidden.
## Returns if layout with the given id is currently hidden.
func is_hidden(id: String) -> bool:
if not _layouts.has(id):
push_error("Layout with given id does not exist: " + str(id))
Expand All @@ -64,7 +64,7 @@ func is_hidden(id: String) -> bool:
return true


## Returns if any layout or one with the given id is transitioning.
## Returns if any layout or one with the given id is currently transitioning.
func in_transition(id := "") -> bool:
var transition_states := [1, 2]

Expand Down

0 comments on commit ec3db68

Please sign in to comment.