Init
This commit is contained in:
129
scenes/CraftingItem.tscn
Normal file
129
scenes/CraftingItem.tscn
Normal file
@ -0,0 +1,129 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bod88mt8ewq2"]
|
||||
|
||||
[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.25, 0.35, 0.45, 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.4)
|
||||
shadow_size = 3
|
||||
shadow_offset = Vector2(1, 2)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2"]
|
||||
content_margin_left = 2.0
|
||||
content_margin_top = 2.0
|
||||
content_margin_right = 2.0
|
||||
content_margin_bottom = 2.0
|
||||
bg_color = Color(0.2, 0.2, 0.2, 1)
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(0.4, 0.4, 0.4, 1)
|
||||
corner_radius_top_left = 2
|
||||
corner_radius_top_right = 2
|
||||
corner_radius_bottom_right = 2
|
||||
corner_radius_bottom_left = 2
|
||||
|
||||
[node name="CraftingItem" type="Panel"]
|
||||
custom_minimum_size = Vector2(220, 52)
|
||||
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 = 6
|
||||
theme_override_constants/margin_top = 4
|
||||
theme_override_constants/margin_right = 6
|
||||
theme_override_constants/margin_bottom = 4
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="IconTexture" type="TextureRect" parent="MarginContainer/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(32, 32)
|
||||
layout_mode = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="MiddleContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_constants/separation = 2
|
||||
|
||||
[node name="NameLabel" type="Label" parent="MarginContainer/HBoxContainer/MiddleContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 12
|
||||
text = "物品名称"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="MaterialsLabel" type="Label" parent="MarginContainer/HBoxContainer/MiddleContainer"]
|
||||
modulate = Color(0.7, 0.7, 0.7, 1)
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "材料: 1x铁矿"
|
||||
|
||||
[node name="InfoRow" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MiddleContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="CraftTimeLabel" type="Label" parent="MarginContainer/HBoxContainer/MiddleContainer/InfoRow"]
|
||||
modulate = Color(0.8, 0.9, 1, 1)
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "1.0s"
|
||||
|
||||
[node name="MethodLabel" type="Label" parent="MarginContainer/HBoxContainer/MiddleContainer/InfoRow"]
|
||||
modulate = Color(1, 0.9, 0.7, 1)
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "手动"
|
||||
|
||||
[node name="RightContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="CraftButton" type="Button" parent="MarginContainer/HBoxContainer/RightContainer"]
|
||||
custom_minimum_size = Vector2(48, 20)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
theme_override_font_sizes/font_size = 9
|
||||
text = "合成"
|
||||
|
||||
[node name="QuantityContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/RightContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 1
|
||||
|
||||
[node name="MinusButton" type="Button" parent="MarginContainer/HBoxContainer/RightContainer/QuantityContainer"]
|
||||
custom_minimum_size = Vector2(18, 16)
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "-"
|
||||
|
||||
[node name="QuantityInput" type="LineEdit" parent="MarginContainer/HBoxContainer/RightContainer/QuantityContainer"]
|
||||
custom_minimum_size = Vector2(20, 16)
|
||||
layout_mode = 2
|
||||
theme_override_constants/minimum_character_width = 0
|
||||
theme_override_font_sizes/font_size = 8
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_2")
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_2")
|
||||
text = "1"
|
||||
placeholder_text = "1"
|
||||
alignment = 1
|
||||
context_menu_enabled = false
|
||||
|
||||
[node name="PlusButton" type="Button" parent="MarginContainer/HBoxContainer/RightContainer/QuantityContainer"]
|
||||
custom_minimum_size = Vector2(18, 16)
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "+"
|
||||
Reference in New Issue
Block a user