aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/Menu/LobbyMenu/LobbyPanelButton.gd
diff options
context:
space:
mode:
Diffstat (limited to 'game/src/Game/Menu/LobbyMenu/LobbyPanelButton.gd')
-rw-r--r--game/src/Game/Menu/LobbyMenu/LobbyPanelButton.gd10
1 files changed, 5 insertions, 5 deletions
diff --git a/game/src/Game/Menu/LobbyMenu/LobbyPanelButton.gd b/game/src/Game/Menu/LobbyMenu/LobbyPanelButton.gd
index 5f3ea46..646c694 100644
--- a/game/src/Game/Menu/LobbyMenu/LobbyPanelButton.gd
+++ b/game/src/Game/Menu/LobbyMenu/LobbyPanelButton.gd
@@ -73,7 +73,7 @@ func _get_draw_mode_style() -> StyleBox:
return background_button.get_theme_stylebox(_get_draw_mode_name(false))
return result
-func _notification(what) -> void:
+func _notification(what : int) -> void:
if what == NOTIFICATION_SORT_CHILDREN:
var _size := size
var offset := Vector2()
@@ -89,14 +89,14 @@ func _notification(what) -> void:
fit_child_in_rect(child, Rect2(offset, _size))
-func _on_background_button_button_down():
+func _on_background_button_button_down() -> void:
button_down.emit()
-func _on_background_button_button_up():
+func _on_background_button_button_up() -> void:
button_up.emit()
-func _on_background_button_pressed():
+func _on_background_button_pressed() -> void:
pressed.emit()
-func _on_background_button_toggled(button_pressed : bool):
+func _on_background_button_toggled(button_pressed : bool) -> void:
toggled.emit(button_pressed)