diff --git a/Game.tscn b/Game.tscn index 7cdbe54..b59ad49 100644 --- a/Game.tscn +++ b/Game.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=26 format=3 uid="uid://bx0bbrwdr0h40"] +[gd_scene load_steps=27 format=3 uid="uid://bx0bbrwdr0h40"] [ext_resource type="Script" path="res://Game.gd" id="1_dgt1j"] [ext_resource type="Script" path="res://CameraPivot.gd" id="2_71xp1"] @@ -12,6 +12,7 @@ [ext_resource type="Script" path="res://GameOverMenu.gd" id="11_ffmss"] [ext_resource type="Script" path="res://MenuButtons.gd" id="11_urihv"] [ext_resource type="Script" path="res://TurnTexture.gd" id="12_kjwp8"] +[ext_resource type="Script" path="res://UI/InputInfo.gd" id="13_6sp26"] [ext_resource type="Script" path="res://addons/awesome_input_icons/classes/InputIconTextureRect.gd" id="13_mbmni"] [ext_resource type="Texture2D" uid="uid://20wqrthwoqr0" path="res://addons/awesome_input_icons/assets/keyboard and mouse vector/mouse_move.svg" id="14_t8b21"] [ext_resource type="Script" path="res://UI/ActionMoveMenu.gd" id="15_gc6p8"] @@ -316,6 +317,7 @@ offset_bottom = 40.0 grow_horizontal = 0 size_flags_horizontal = 8 size_flags_vertical = 0 +script = ExtResource("13_6sp26") [node name="PanelContainer" type="PanelContainer" parent="InputInfo"] layout_mode = 1 diff --git a/UI/GameSettings.gd b/UI/GameSettings.gd index b8de471..0027027 100644 --- a/UI/GameSettings.gd +++ b/UI/GameSettings.gd @@ -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 diff --git a/UI/InputInfo.gd b/UI/InputInfo.gd new file mode 100644 index 0000000..6f43579 --- /dev/null +++ b/UI/InputInfo.gd @@ -0,0 +1,5 @@ +extends Control + +func _input(event): + if Input.is_action_just_pressed("toggle_controls"): + visible = !visible