128 lines
4.2 KiB
Plaintext
128 lines
4.2 KiB
Plaintext
[gd_scene load_steps=3 format=3 uid="uid://cihq67dbb8q7m"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://x8myw44ubs8k" path="res://assets/textures/PixPin_2025-06-15_11-35-40.png" id="1_1w476"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_1"]
|
|
bg_color = Color(0.15, 0.15, 0.2, 0.95)
|
|
border_width_left = 1
|
|
border_width_top = 1
|
|
border_width_right = 1
|
|
border_width_bottom = 1
|
|
border_color = Color(0.3, 0.3, 0.4, 0.8)
|
|
corner_radius_top_left = 6
|
|
corner_radius_top_right = 6
|
|
corner_radius_bottom_right = 6
|
|
corner_radius_bottom_left = 6
|
|
shadow_color = Color(0, 0, 0, 0.3)
|
|
shadow_size = 2
|
|
shadow_offset = Vector2(1, 1)
|
|
|
|
[node name="ItemPanel" type="Panel"]
|
|
custom_minimum_size = Vector2(250, 64)
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_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 = 5
|
|
theme_override_constants/margin_top = 4
|
|
theme_override_constants/margin_right = 5
|
|
theme_override_constants/margin_bottom = 4
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="TopRow" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="IconTexture" type="TextureRect" parent="MarginContainer/VBoxContainer/TopRow"]
|
|
custom_minimum_size = Vector2(36, 36)
|
|
layout_mode = 2
|
|
texture = ExtResource("1_1w476")
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
|
|
[node name="MiddleContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/TopRow"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[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
|
|
theme_override_font_sizes/font_size = 11
|
|
text = "物品名称"
|
|
|
|
[node name="ProductionLabel" type="Label" parent="MarginContainer/VBoxContainer/TopRow/MiddleContainer/TopInfoRow"]
|
|
modulate = Color(0.8, 0.8, 0.8, 1)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 9
|
|
text = "50/s"
|
|
|
|
[node name="Spacer" type="Control" parent="MarginContainer/VBoxContainer/TopRow/MiddleContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="RightContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/TopRow"]
|
|
layout_mode = 2
|
|
|
|
[node name="PowerLabel" type="Label" parent="MarginContainer/VBoxContainer/TopRow/RightContainer"]
|
|
modulate = Color(1, 0.8, 0.8, 1)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 8
|
|
text = "-300W"
|
|
horizontal_alignment = 2
|
|
|
|
[node name="RightSpacer" type="Control" parent="MarginContainer/VBoxContainer/TopRow/RightContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="BottomDeviceRow" type="HBoxContainer" parent="MarginContainer/VBoxContainer/TopRow/RightContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="MinusButton" type="Button" parent="MarginContainer/VBoxContainer/TopRow/RightContainer/BottomDeviceRow"]
|
|
custom_minimum_size = Vector2(16, 16)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 10
|
|
text = "-"
|
|
|
|
[node name="DeviceLabel" type="Label" parent="MarginContainer/VBoxContainer/TopRow/RightContainer/BottomDeviceRow"]
|
|
modulate = Color(0.7, 0.7, 0.7, 1)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 8
|
|
text = "设备: 5"
|
|
|
|
[node name="PlusButton" type="Button" parent="MarginContainer/VBoxContainer/TopRow/RightContainer/BottomDeviceRow"]
|
|
custom_minimum_size = Vector2(16, 16)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 10
|
|
text = "+"
|
|
|
|
[node name="ProgressContainer" type="Control" parent="MarginContainer/VBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 5)
|
|
layout_mode = 2
|
|
size_flags_vertical = 0
|
|
|
|
[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 = -1
|
|
anchor_right = 0.65
|
|
anchor_bottom = 1.0
|
|
grow_vertical = 2
|
|
color = Color(0.3, 0.7, 0.3, 1)
|