Main menu host settings
This commit is contained in:
parent
004e47aba6
commit
2705959bfd
4 changed files with 146 additions and 21 deletions
28
scripts/multiplayer/host_menu.gd
Normal file
28
scripts/multiplayer/host_menu.gd
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
extends VBoxContainer
|
||||
|
||||
func _ready() -> void:
|
||||
%RoundTimeBox.set_value_no_signal(Lobby.round_time)
|
||||
%BombTimeBox.set_value_no_signal(Lobby.bomb_time)
|
||||
%BuyTimeBox.set_value_no_signal(Lobby.buy_time)
|
||||
%TeamSwitchBox.set_value_no_signal(Lobby.half_rounds)
|
||||
%RoundBox.set_value_no_signal(Lobby.win_score)
|
||||
|
||||
func _on_round_time_box_value_changed(value: float) -> void:
|
||||
Lobby.round_time = value
|
||||
|
||||
|
||||
func _on_bomb_time_box_value_changed(value: float) -> void:
|
||||
Lobby.bomb_time = value
|
||||
|
||||
|
||||
func _on_buy_time_box_value_changed(value: float) -> void:
|
||||
Lobby.buy_time = value
|
||||
|
||||
|
||||
func _on_round_box_value_changed(value: float) -> void:
|
||||
Lobby.win_score = int(value)
|
||||
%TeamSwitchBox.value = value-1
|
||||
|
||||
|
||||
func _on_team_switch_box_value_changed(value: float) -> void:
|
||||
Lobby.half_rounds = int(value)
|
||||
1
scripts/multiplayer/host_menu.gd.uid
Normal file
1
scripts/multiplayer/host_menu.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dh64rv15w8ecl
|
||||
Loading…
Add table
Add a link
Reference in a new issue