Translations
This commit is contained in:
parent
4c3e35d1fc
commit
b79e87c7ca
30 changed files with 279 additions and 101 deletions
|
|
@ -13,7 +13,6 @@ func _ready() -> void:
|
|||
%InfiniteMoney.set_pressed_no_signal(LobbySettings.infinite_money)
|
||||
|
||||
var popup: PopupMenu = %MapsButton.get_popup()
|
||||
%MapsButton.text = LobbySettings.selected_map
|
||||
popup.index_pressed.connect(on_maps_index_pressed)
|
||||
for level in Registry.maps.keys():
|
||||
levels_by_index.append(level)
|
||||
|
|
@ -52,9 +51,12 @@ func _on_allow_team_switch_toggled(toggled_on: bool) -> void:
|
|||
LobbySettings.allow_team_switch = toggled_on
|
||||
|
||||
func on_maps_index_pressed(index: int):
|
||||
%MapsButton.text = levels_by_index[index]
|
||||
LobbySettings.selected_map = levels_by_index[index]
|
||||
|
||||
|
||||
func _on_infinite_money_toggled(toggled_on: bool) -> void:
|
||||
LobbySettings.infinite_money = toggled_on
|
||||
|
||||
|
||||
func _on_start_button_pressed() -> void:
|
||||
Lobby.start_game()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue