145 lines
5.4 KiB
Plaintext
145 lines
5.4 KiB
Plaintext
[gd_scene load_steps=12 format=3 uid="uid://c0b5w48jk67qd"]
|
|
|
|
[ext_resource type="Script" uid="uid://c0uvlwmkm3r8o" path="res://scripts/game/game_screen.gd" id="1_dthvl"]
|
|
[ext_resource type="Script" uid="uid://dcqqr8b42tn0x" path="res://scripts/game/CommandProcessor.gd" id="2_r01d7"]
|
|
[ext_resource type="Script" uid="uid://b63jt1uexm120" path="res://scripts/game/maps/MapContainer.gd" id="3_vnpv3"]
|
|
[ext_resource type="Script" uid="uid://bjic7g285omo8" path="res://scripts/ui/UI.gd" id="4_4m8lb"]
|
|
[ext_resource type="Texture2D" uid="uid://ccxs3ctob15es" path="res://gfx/ui/main_frame.png" id="5_mjl5p"]
|
|
[ext_resource type="FontFile" uid="uid://1u28cjgctsn7" path="res://fonts/alagard_by_pix3m-d6awiwp.ttf" id="6_2yu03"]
|
|
[ext_resource type="Script" uid="uid://dv3fd112uj8o1" path="res://scripts/ui/Message Console.gd" id="7_5vo8s"]
|
|
[ext_resource type="Script" uid="uid://ba05sgen1geyk" path="res://scripts/ui/LoadingPanel.gd" id="8_4m8lb"]
|
|
[ext_resource type="Theme" uid="uid://dnxny0n7ti7eq" path="res://themes/default_theme.tres" id="9_mjl5p"]
|
|
[ext_resource type="PackedScene" uid="uid://bpsrg5d3gncnd" path="res://scenes/game/maps/entities/player.tscn" id="10_2yu03"]
|
|
|
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_5vo8s"]
|
|
|
|
[node name="Game" type="Node" node_paths=PackedStringArray("map")]
|
|
script = ExtResource("1_dthvl")
|
|
map = NodePath("UI/Map View/SubViewport/MapContainer")
|
|
|
|
[node name="Command Processor" type="Timer" parent="."]
|
|
wait_time = 3.0
|
|
autostart = true
|
|
script = ExtResource("2_r01d7")
|
|
|
|
[node name="UI" type="Control" parent="."]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("4_4m8lb")
|
|
|
|
[node name="Background Frame" type="TextureRect" parent="UI"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
texture = ExtResource("5_mjl5p")
|
|
|
|
[node name="Left Display" type="MarginContainer" parent="UI"]
|
|
layout_mode = 0
|
|
offset_left = 13.0
|
|
offset_top = 15.0
|
|
offset_right = 118.0
|
|
offset_bottom = 250.0
|
|
|
|
[node name="Background" type="ColorRect" parent="UI/Left Display"]
|
|
layout_mode = 2
|
|
color = Color(0, 0, 0, 1)
|
|
|
|
[node name="Contents" type="VBoxContainer" parent="UI/Left Display"]
|
|
layout_mode = 2
|
|
|
|
[node name="Command Menu" type="VBoxContainer" parent="UI/Left Display/Contents"]
|
|
layout_mode = 2
|
|
|
|
[node name="Pass Button" type="Button" parent="UI/Left Display/Contents/Command Menu"]
|
|
layout_mode = 2
|
|
theme_override_fonts/font = ExtResource("6_2yu03")
|
|
text = "Pass"
|
|
|
|
[node name="Speak Buton" type="Button" parent="UI/Left Display/Contents/Command Menu"]
|
|
layout_mode = 2
|
|
theme_override_fonts/font = ExtResource("6_2yu03")
|
|
text = "Speak"
|
|
|
|
[node name="Message Console" type="MarginContainer" parent="UI" node_paths=PackedStringArray("scrollContainer", "messages")]
|
|
layout_mode = 0
|
|
offset_left = 13.0
|
|
offset_top = 265.0
|
|
offset_right = 627.0
|
|
offset_bottom = 345.0
|
|
script = ExtResource("7_5vo8s")
|
|
scrollContainer = NodePath("ScrollContainer")
|
|
messages = NodePath("ScrollContainer/Messages")
|
|
|
|
[node name="Background" type="ColorRect" parent="UI/Message Console"]
|
|
layout_mode = 2
|
|
color = Color(0, 0, 0, 1)
|
|
|
|
[node name="ScrollContainer" type="ScrollContainer" parent="UI/Message Console"]
|
|
layout_mode = 2
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="Messages" type="VBoxContainer" parent="UI/Message Console/ScrollContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="Map View" type="SubViewportContainer" parent="UI"]
|
|
layout_mode = 0
|
|
offset_left = 134.0
|
|
offset_top = 15.0
|
|
offset_right = 627.0
|
|
offset_bottom = 250.0
|
|
stretch = true
|
|
|
|
[node name="SubViewport" type="SubViewport" parent="UI/Map View"]
|
|
handle_input_locally = false
|
|
size = Vector2i(493, 235)
|
|
render_target_update_mode = 4
|
|
|
|
[node name="MapContainer" type="Node" parent="UI/Map View/SubViewport"]
|
|
script = ExtResource("3_vnpv3")
|
|
|
|
[node name="LoadingPanel" type="MarginContainer" parent="UI" node_paths=PackedStringArray("player")]
|
|
visible = false
|
|
layout_mode = 0
|
|
offset_left = 134.0
|
|
offset_top = 15.0
|
|
offset_right = 627.0
|
|
offset_bottom = 250.0
|
|
script = ExtResource("8_4m8lb")
|
|
player = NodePath("CenterContainer/VBoxContainer/PanelContainer/Player")
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="UI/LoadingPanel"]
|
|
layout_mode = 2
|
|
color = Color(0, 0, 0, 1)
|
|
|
|
[node name="CenterContainer" type="CenterContainer" parent="UI/LoadingPanel"]
|
|
layout_mode = 2
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="UI/LoadingPanel/CenterContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="UI/LoadingPanel/CenterContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme = ExtResource("9_mjl5p")
|
|
text = "Loading..."
|
|
|
|
[node name="PanelContainer" type="PanelContainer" parent="UI/LoadingPanel/CenterContainer/VBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 16)
|
|
layout_mode = 2
|
|
theme_override_styles/panel = SubResource("StyleBoxEmpty_5vo8s")
|
|
|
|
[node name="Player" parent="UI/LoadingPanel/CenterContainer/VBoxContainer/PanelContainer" instance=ExtResource("10_2yu03")]
|
|
position = Vector2(26, 0)
|
|
|
|
[connection signal="BROADCAST_COMMAND" from="Command Processor" to="UI/Message Console" method="_on_command"]
|
|
[connection signal="timeout" from="Command Processor" to="Command Processor" method="_on_timeout"]
|
|
[connection signal="pressed" from="UI/Left Display/Contents/Command Menu/Pass Button" to="UI" method="_on_pass_button_pressed"]
|
|
[connection signal="pressed" from="UI/Left Display/Contents/Command Menu/Speak Buton" to="UI" method="_on_speak_button_pressed"]
|