221 lines
8.2 KiB
Plaintext
221 lines
8.2 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://bw51wdor6ucmk"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/core/GameScene.cs" id="1_2k4vx"]
|
|
[ext_resource type="Script" path="res://scripts/ui/DynamicTabManager.cs" id="2_3k5vy"]
|
|
[ext_resource type="Script" path="res://scripts/inventory/InventoryTableManager.cs" id="3_inventory_table"]
|
|
[ext_resource type="Script" path="res://scripts/production/CraftingQueueManager.cs" id="4_crafting_queue"]
|
|
|
|
[node name="GameScene" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_2k4vx")
|
|
|
|
[node name="Background" type="ColorRect" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0.670588, 0.756863, 1, 0.392157)
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="LeftPanel" type="Panel" parent="HBoxContainer"]
|
|
custom_minimum_size = Vector2(280, 0)
|
|
layout_mode = 2
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/LeftPanel"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="PowerInfo" type="Panel" parent="HBoxContainer/LeftPanel/VBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 100)
|
|
layout_mode = 2
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="HBoxContainer/LeftPanel/VBoxContainer/PowerInfo"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/margin_left = 10
|
|
theme_override_constants/margin_top = 10
|
|
theme_override_constants/margin_right = 10
|
|
theme_override_constants/margin_bottom = 10
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/LeftPanel/VBoxContainer/PowerInfo/MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="PowerTitle" type="Label" parent="HBoxContainer/LeftPanel/VBoxContainer/PowerInfo/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "电力系统"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="HSeparator" type="HSeparator" parent="HBoxContainer/LeftPanel/VBoxContainer/PowerInfo/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="PowerRow1" type="HBoxContainer" parent="HBoxContainer/LeftPanel/VBoxContainer/PowerInfo/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="PowerGeneration" type="Label" parent="HBoxContainer/LeftPanel/VBoxContainer/PowerInfo/MarginContainer/VBoxContainer/PowerRow1"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "发电: 0 KW"
|
|
|
|
[node name="PowerConsumption" type="Label" parent="HBoxContainer/LeftPanel/VBoxContainer/PowerInfo/MarginContainer/VBoxContainer/PowerRow1"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "耗电: 0 KW"
|
|
|
|
[node name="PowerRow2" type="HBoxContainer" parent="HBoxContainer/LeftPanel/VBoxContainer/PowerInfo/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="PowerStorage" type="Label" parent="HBoxContainer/LeftPanel/VBoxContainer/PowerInfo/MarginContainer/VBoxContainer/PowerRow2"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "蓄电: 0 KWh"
|
|
|
|
[node name="PowerDischarge" type="Label" parent="HBoxContainer/LeftPanel/VBoxContainer/PowerInfo/MarginContainer/VBoxContainer/PowerRow2"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "放电: 0 KW"
|
|
|
|
[node name="CraftingQueue" type="Panel" parent="HBoxContainer/LeftPanel/VBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 80)
|
|
layout_mode = 2
|
|
script = ExtResource("4_crafting_queue")
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="HBoxContainer/LeftPanel/VBoxContainer/CraftingQueue"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/margin_left = 10
|
|
theme_override_constants/margin_top = 8
|
|
theme_override_constants/margin_right = 10
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/LeftPanel/VBoxContainer/CraftingQueue/MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="TitleLabel" type="Label" parent="HBoxContainer/LeftPanel/VBoxContainer/CraftingQueue/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "合成队列"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="HSeparator" type="HSeparator" parent="HBoxContainer/LeftPanel/VBoxContainer/CraftingQueue/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="QueueContainer" type="HBoxContainer" parent="HBoxContainer/LeftPanel/VBoxContainer/CraftingQueue/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
theme_override_constants/separation = 2
|
|
|
|
[node name="Slot1" type="Panel" parent="HBoxContainer/LeftPanel/VBoxContainer/CraftingQueue/MarginContainer/VBoxContainer/QueueContainer"]
|
|
custom_minimum_size = Vector2(30, 30)
|
|
layout_mode = 2
|
|
|
|
[node name="Slot2" type="Panel" parent="HBoxContainer/LeftPanel/VBoxContainer/CraftingQueue/MarginContainer/VBoxContainer/QueueContainer"]
|
|
custom_minimum_size = Vector2(30, 30)
|
|
layout_mode = 2
|
|
|
|
[node name="Slot3" type="Panel" parent="HBoxContainer/LeftPanel/VBoxContainer/CraftingQueue/MarginContainer/VBoxContainer/QueueContainer"]
|
|
custom_minimum_size = Vector2(30, 30)
|
|
layout_mode = 2
|
|
|
|
[node name="Slot4" type="Panel" parent="HBoxContainer/LeftPanel/VBoxContainer/CraftingQueue/MarginContainer/VBoxContainer/QueueContainer"]
|
|
custom_minimum_size = Vector2(30, 30)
|
|
layout_mode = 2
|
|
|
|
[node name="Slot5" type="Panel" parent="HBoxContainer/LeftPanel/VBoxContainer/CraftingQueue/MarginContainer/VBoxContainer/QueueContainer"]
|
|
custom_minimum_size = Vector2(30, 30)
|
|
layout_mode = 2
|
|
|
|
[node name="Slot6" type="Panel" parent="HBoxContainer/LeftPanel/VBoxContainer/CraftingQueue/MarginContainer/VBoxContainer/QueueContainer"]
|
|
custom_minimum_size = Vector2(30, 30)
|
|
layout_mode = 2
|
|
|
|
[node name="Slot7" type="Panel" parent="HBoxContainer/LeftPanel/VBoxContainer/CraftingQueue/MarginContainer/VBoxContainer/QueueContainer"]
|
|
custom_minimum_size = Vector2(30, 30)
|
|
layout_mode = 2
|
|
|
|
[node name="Slot8" type="Panel" parent="HBoxContainer/LeftPanel/VBoxContainer/CraftingQueue/MarginContainer/VBoxContainer/QueueContainer"]
|
|
custom_minimum_size = Vector2(30, 30)
|
|
layout_mode = 2
|
|
|
|
[node name="InventoryPanel" type="Panel" parent="HBoxContainer/LeftPanel/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="HBoxContainer/LeftPanel/VBoxContainer/InventoryPanel"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/margin_left = 10
|
|
theme_override_constants/margin_top = 10
|
|
theme_override_constants/margin_right = 10
|
|
theme_override_constants/margin_bottom = 10
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/LeftPanel/VBoxContainer/InventoryPanel/MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="InventoryTitle" type="Label" parent="HBoxContainer/LeftPanel/VBoxContainer/InventoryPanel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "库存"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="HSeparator" type="HSeparator" parent="HBoxContainer/LeftPanel/VBoxContainer/InventoryPanel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="ScrollContainer" type="ScrollContainer" parent="HBoxContainer/LeftPanel/VBoxContainer/InventoryPanel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="InventoryTableManager" type="VBoxContainer" parent="HBoxContainer/LeftPanel/VBoxContainer/InventoryPanel/MarginContainer/VBoxContainer/ScrollContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
script = ExtResource("3_inventory_table")
|
|
|
|
[node name="RightPanel" type="Panel" parent="HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/RightPanel"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="CategoryTabs" type="TabContainer" parent="HBoxContainer/RightPanel/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
theme_override_font_sizes/font_size = 24
|
|
script = ExtResource("2_3k5vy")
|