Cleanup hot seat pre-game settings
This commit is contained in:
parent
2343638749
commit
d5d4b8eed1
3 changed files with 14 additions and 1 deletions
|
|
@ -6,7 +6,13 @@ extends Control
|
|||
@onready var pillbug_checkbutton = $PanelContainer/VBoxContainer/HBoxContainer4/PillbugCheckbutton
|
||||
@onready var start_game_button = $PanelContainer/VBoxContainer/StartGameButton
|
||||
|
||||
@onready var h_box_container = $PanelContainer/VBoxContainer/HBoxContainer
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
if GameData.is_hot_seat:
|
||||
h_box_container.visible = false
|
||||
|
||||
if not multiplayer.is_server():
|
||||
host_color_option.disabled = true
|
||||
ladybug_checkbutton.disabled = true
|
||||
|
|
|
|||
5
UI/InputInfo.gd
Normal file
5
UI/InputInfo.gd
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
extends Control
|
||||
|
||||
func _input(event):
|
||||
if Input.is_action_just_pressed("toggle_controls"):
|
||||
visible = !visible
|
||||
Loading…
Add table
Add a link
Reference in a new issue