142 lines
4.7 KiB
Plaintext
142 lines
4.7 KiB
Plaintext
[gd_scene load_steps=3 format=3 uid="uid://vao0wv2oib2a"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/ui/ProductionLineItem.cs" id="1_1"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_1"]
|
|
bg_color = Color(0.15, 0.18, 0.22, 0.95)
|
|
border_width_left = 1
|
|
border_width_top = 1
|
|
border_width_right = 1
|
|
border_width_bottom = 1
|
|
border_color = Color(0.3, 0.4, 0.5, 0.8)
|
|
corner_radius_top_left = 8
|
|
corner_radius_top_right = 8
|
|
corner_radius_bottom_right = 8
|
|
corner_radius_bottom_left = 8
|
|
shadow_color = Color(0, 0, 0, 0.3)
|
|
shadow_size = 2
|
|
shadow_offset = Vector2(1, 1)
|
|
|
|
[node name="ProductionLineItem" type="Panel"]
|
|
custom_minimum_size = Vector2(240, 80)
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_1")
|
|
script = ExtResource("1_1")
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
|
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 = 8
|
|
theme_override_constants/margin_top = 6
|
|
theme_override_constants/margin_right = 8
|
|
theme_override_constants/margin_bottom = 6
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="TopRow" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="IconTexture" type="TextureRect" parent="MarginContainer/VBoxContainer/TopRow"]
|
|
custom_minimum_size = Vector2(32, 32)
|
|
layout_mode = 2
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
|
|
[node name="MiddleContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/TopRow"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 2
|
|
|
|
[node name="TopInfoRow" type="HBoxContainer" parent="MarginContainer/VBoxContainer/TopRow/MiddleContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="NameLabel" type="Label" parent="MarginContainer/VBoxContainer/TopRow/MiddleContainer/TopInfoRow"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "产线名称"
|
|
vertical_alignment = 1
|
|
|
|
[node name="ProductionLabel" type="Label" parent="MarginContainer/VBoxContainer/TopRow/MiddleContainer/TopInfoRow"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 10
|
|
text = "0/s"
|
|
horizontal_alignment = 2
|
|
|
|
[node name="InfoRow" type="HBoxContainer" parent="MarginContainer/VBoxContainer/TopRow/MiddleContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="TimeLabel" type="Label" parent="MarginContainer/VBoxContainer/TopRow/MiddleContainer/InfoRow"]
|
|
modulate = Color(0.8, 0.9, 1, 1)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 9
|
|
text = "2.0s"
|
|
|
|
[node name="PowerLabel" type="Label" parent="MarginContainer/VBoxContainer/TopRow/MiddleContainer/InfoRow"]
|
|
modulate = Color(1, 0.9, 0.7, 1)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 9
|
|
text = "10W"
|
|
|
|
[node name="BuildingLabel" type="Label" parent="MarginContainer/VBoxContainer/TopRow/MiddleContainer/InfoRow"]
|
|
modulate = Color(0.9, 0.8, 1, 1)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 9
|
|
text = "需要: 钻机"
|
|
|
|
[node name="RightContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/TopRow"]
|
|
layout_mode = 2
|
|
|
|
[node name="BuildingCountRow" type="HBoxContainer" parent="MarginContainer/VBoxContainer/TopRow/RightContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="DeviceLabel" type="Label" parent="MarginContainer/VBoxContainer/TopRow/RightContainer/BuildingCountRow"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 9
|
|
text = "设备: 0"
|
|
horizontal_alignment = 2
|
|
|
|
[node name="ButtonsRow" type="HBoxContainer" parent="MarginContainer/VBoxContainer/TopRow/RightContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 2
|
|
|
|
[node name="RemoveButton" type="Button" parent="MarginContainer/VBoxContainer/TopRow/RightContainer/ButtonsRow"]
|
|
custom_minimum_size = Vector2(20, 18)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 9
|
|
text = "-"
|
|
|
|
[node name="AddButton" type="Button" parent="MarginContainer/VBoxContainer/TopRow/RightContainer/ButtonsRow"]
|
|
custom_minimum_size = Vector2(20, 18)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 9
|
|
text = "+"
|
|
|
|
[node name="ProgressContainer" type="Control" parent="MarginContainer/VBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 6)
|
|
layout_mode = 2
|
|
|
|
[node name="ProgressBackground" type="ColorRect" parent="MarginContainer/VBoxContainer/ProgressContainer"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0.2, 0.2, 0.2, 1)
|
|
|
|
[node name="ProgressFill" type="ColorRect" parent="MarginContainer/VBoxContainer/ProgressContainer"]
|
|
layout_mode = 1
|
|
anchors_preset = 9
|
|
anchor_bottom = 1.0
|
|
grow_vertical = 2
|
|
color = Color(0.3, 0.7, 0.9, 1)
|