Cleanup hot seat pre-game settings
This commit is contained in:
parent
2343638749
commit
d5d4b8eed1
3 changed files with 14 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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