152 lines
4.5 KiB
Plaintext
152 lines
4.5 KiB
Plaintext
[gd_scene load_steps=3 format=3 uid="uid://biio8efqysivs"]
|
|
|
|
[ext_resource type="Script" uid="uid://ic8fg0o0p0i4" path="res://scripts/ui/admin_panel.gd" id="1"]
|
|
[ext_resource type="Theme" uid="uid://da337sh5qxi0s" path="res://assets/themes/ui_theme.tres" id="2"]
|
|
|
|
[node name="AdminPanel" type="PanelContainer"]
|
|
offset_right = 480.0
|
|
offset_bottom = 520.0
|
|
theme = ExtResource("2")
|
|
script = ExtResource("1")
|
|
|
|
[node name="VBox" type="VBoxContainer" parent="."]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 12
|
|
|
|
[node name="Header" type="HBoxContainer" parent="VBox"]
|
|
layout_mode = 2
|
|
|
|
[node name="Title" type="Label" parent="VBox/Header"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_colors/font_color = Color(0.647, 0.996, 0.224, 1)
|
|
theme_override_font_sizes/font_size = 22
|
|
text = "⚙ Admin Panel"
|
|
|
|
[node name="CloseButton" type="Button" parent="VBox/Header"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(36, 36)
|
|
layout_mode = 2
|
|
text = "✕"
|
|
|
|
[node name="TabContainer" type="TabContainer" parent="VBox"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
current_tab = 0
|
|
|
|
[node name="Players" type="VBoxContainer" parent="VBox/TabContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 10
|
|
metadata/_tab_index = 0
|
|
|
|
[node name="PlayerList" type="ItemList" parent="VBox/TabContainer/Players"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 180)
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="PlayerActions" type="HBoxContainer" parent="VBox/TabContainer/Players"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 10
|
|
|
|
[node name="KickBtn" type="Button" parent="VBox/TabContainer/Players/PlayerActions"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Kick"
|
|
|
|
[node name="BanBtn" type="Button" parent="VBox/TabContainer/Players/PlayerActions"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Ban"
|
|
|
|
[node name="MuteBtn" type="Button" parent="VBox/TabContainer/Players/PlayerActions"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Mute"
|
|
|
|
[node name="Server" type="VBoxContainer" parent="VBox/TabContainer"]
|
|
visible = false
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 10
|
|
metadata/_tab_index = 1
|
|
|
|
[node name="StatsGrid" type="GridContainer" parent="VBox/TabContainer/Server"]
|
|
layout_mode = 2
|
|
columns = 2
|
|
|
|
[node name="Label1" type="Label" parent="VBox/TabContainer/Server/StatsGrid"]
|
|
layout_mode = 2
|
|
text = "Connected Players:"
|
|
|
|
[node name="PlayerCount" type="Label" parent="VBox/TabContainer/Server/StatsGrid"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_colors/font_color = Color(0.647, 0.996, 0.224, 1)
|
|
text = "0"
|
|
|
|
[node name="Label2" type="Label" parent="VBox/TabContainer/Server/StatsGrid"]
|
|
layout_mode = 2
|
|
text = "Match ID:"
|
|
|
|
[node name="MatchIdLabel" type="Label" parent="VBox/TabContainer/Server/StatsGrid"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_colors/font_color = Color(0.992, 0.796, 0.047, 1)
|
|
text = "N/A"
|
|
|
|
[node name="Label3" type="Label" parent="VBox/TabContainer/Server/StatsGrid"]
|
|
layout_mode = 2
|
|
text = "Server Status:"
|
|
|
|
[node name="ServerStatus" type="Label" parent="VBox/TabContainer/Server/StatsGrid"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_colors/font_color = Color(0.647, 0.996, 0.224, 1)
|
|
text = "Running"
|
|
|
|
[node name="ServerActions" type="VBoxContainer" parent="VBox/TabContainer/Server"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="EndMatchBtn" type="Button" parent="VBox/TabContainer/Server/ServerActions"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
text = "End Match"
|
|
|
|
[node name="RestartMatchBtn" type="Button" parent="VBox/TabContainer/Server/ServerActions"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
text = "Restart Match"
|
|
|
|
[node name="Bans" type="VBoxContainer" parent="VBox/TabContainer"]
|
|
visible = false
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 10
|
|
metadata/_tab_index = 2
|
|
|
|
[node name="BanList" type="ItemList" parent="VBox/TabContainer/Bans"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 180)
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="UnbanBtn" type="Button" parent="VBox/TabContainer/Bans"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
text = "Unban Selected"
|
|
|
|
[node name="StatusLabel" type="Label" parent="VBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 12
|
|
horizontal_alignment = 1
|