diff options
author | George L. Albany <Megacake1234@gmail.com> | 2023-12-24 19:23:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-24 19:23:18 +0100 |
commit | d26c990d9a5596a3ef3b32ba1cb0f99950cd6d34 (patch) | |
tree | 1b99c935438692bb2ebadeac412b990c82089b65 /game/src/Game/Menu/LobbyMenu/LobbyPanelButton.gd | |
parent | 50b0b935b0bf0724f40b5140aca85d1830a8b1b3 (diff) | |
parent | b6413251a866c76538869b84ed1c9b9852f7c507 (diff) |
Merge pull request #178 from Spartan322/add-menu-type-hints
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) |