diff options
author | Spartan322 <Megacake1234@gmail.com> | 2023-12-23 05:01:51 +0100 |
---|---|---|
committer | George L. Albany <Megacake1234@gmail.com> | 2023-12-24 04:52:36 +0100 |
commit | b6413251a866c76538869b84ed1c9b9852f7c507 (patch) | |
tree | 1b99c935438692bb2ebadeac412b990c82089b65 /game/src/Game/Menu/LobbyMenu/LobbyPanelButton.gd | |
parent | 50b0b935b0bf0724f40b5140aca85d1830a8b1b3 (diff) |
Apply type hints to menu scripts
Diffstat (limited to 'game/src/Game/Menu/LobbyMenu/LobbyPanelButton.gd')
-rw-r--r-- | game/src/Game/Menu/LobbyMenu/LobbyPanelButton.gd | 10 |
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) |