生产线样式,添加图标测试
This commit is contained in:
89
scenes/ManualCollectionItem.tscn
Normal file
89
scenes/ManualCollectionItem.tscn
Normal file
@ -0,0 +1,89 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dai5u7qk43gp6"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/ManualCollectionItem.cs" id="1_x7y8z"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_1"]
|
||||
bg_color = Color(0.12, 0.15, 0.18, 0.95)
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(0.2, 0.5, 0.2, 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.2)
|
||||
shadow_size = 1
|
||||
shadow_offset = Vector2(1, 1)
|
||||
|
||||
[node name="ManualCollectionItem" type="Panel"]
|
||||
custom_minimum_size = Vector2(130, 43)
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_1")
|
||||
script = ExtResource("1_x7y8z")
|
||||
|
||||
[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
|
||||
theme_override_constants/separation = 3
|
||||
|
||||
[node name="TopRow" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 5
|
||||
|
||||
[node name="IconTexture" type="TextureRect" parent="MarginContainer/VBoxContainer/TopRow"]
|
||||
custom_minimum_size = Vector2(24, 24)
|
||||
layout_mode = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="InfoContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/TopRow"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="NameLabel" type="Label" parent="MarginContainer/VBoxContainer/TopRow/InfoContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.9, 1, 0.9, 1)
|
||||
theme_override_font_sizes/font_size = 10
|
||||
text = "物品名称"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="StatusLabel" type="Label" parent="MarginContainer/VBoxContainer/TopRow/InfoContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.7, 0.9, 0.7, 1)
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "点击采集"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="ProgressContainer" type="Control" parent="MarginContainer/VBoxContainer"]
|
||||
visible = false
|
||||
custom_minimum_size = Vector2(0, 4)
|
||||
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.15, 0.15, 0.15, 0.8)
|
||||
|
||||
[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.8, 0.3, 1)
|
||||
Reference in New Issue
Block a user