优化项目架构
This commit is contained in:
91
SproutFarm-Frontend/CopyItems/crop_item.tscn
Normal file
91
SproutFarm-Frontend/CopyItems/crop_item.tscn
Normal file
@@ -0,0 +1,91 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://bkivlkirrx6u8"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bt1i2yhhlor5e" path="res://assets/地块/土块1.webp" id="1_bns1c"]
|
||||
[ext_resource type="Shader" path="res://Shader/PlantSwayShader.gdshader" id="2_s5pb0"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_v46ok"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_s5pb0"]
|
||||
shader = ExtResource("2_s5pb0")
|
||||
shader_parameter/sway_strength = 0.05
|
||||
shader_parameter/sway_speed = 1.5
|
||||
shader_parameter/wind_direction = 0.0
|
||||
shader_parameter/sway_variation = 0.5
|
||||
shader_parameter/sway_start_height = 0.5
|
||||
shader_parameter/height_curve = 2.0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_cyybs"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bns1c"]
|
||||
bg_color = Color(0.377919, 0.377919, 0.377919, 1)
|
||||
corner_radius_top_left = 15
|
||||
corner_radius_top_right = 15
|
||||
corner_radius_bottom_right = 15
|
||||
corner_radius_bottom_left = 15
|
||||
corner_detail = 15
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_s5pb0"]
|
||||
bg_color = Color(0.360784, 0.776471, 0.223529, 1)
|
||||
corner_radius_top_left = 15
|
||||
corner_radius_top_right = 15
|
||||
corner_radius_bottom_right = 15
|
||||
corner_radius_bottom_left = 15
|
||||
corner_detail = 15
|
||||
|
||||
[node name="CropItem" type="Button"]
|
||||
self_modulate = Color(1, 1, 1, 0)
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="ground_sprite" type="Sprite2D" parent="."]
|
||||
material = SubResource("ShaderMaterial_v46ok")
|
||||
position = Vector2(50, 63)
|
||||
scale = Vector2(0.135, 0.135)
|
||||
texture = ExtResource("1_bns1c")
|
||||
|
||||
[node name="crop_sprite" type="Sprite2D" parent="."]
|
||||
material = SubResource("ShaderMaterial_s5pb0")
|
||||
position = Vector2(51, 40)
|
||||
scale = Vector2(0.339844, 0.363281)
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="."]
|
||||
visible = false
|
||||
material = SubResource("ShaderMaterial_cyybs")
|
||||
layout_mode = 2
|
||||
offset_left = 18.0
|
||||
offset_top = -5.0
|
||||
offset_right = 348.0
|
||||
offset_bottom = 68.0
|
||||
scale = Vector2(0.2, 0.2)
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 10
|
||||
theme_override_font_sizes/font_size = 50
|
||||
theme_override_styles/background = SubResource("StyleBoxFlat_bns1c")
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_s5pb0")
|
||||
value = 80.0
|
||||
|
||||
[node name="crop_name" type="Label" parent="."]
|
||||
modulate = Color(2, 2, 2, 1)
|
||||
layout_mode = 2
|
||||
offset_top = 76.0
|
||||
offset_right = 250.0
|
||||
offset_bottom = 118.0
|
||||
scale = Vector2(0.4, 0.4)
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 30
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="status_label" type="Label" parent="."]
|
||||
modulate = Color(0.721569, 1, 1, 1)
|
||||
layout_mode = 2
|
||||
offset_top = 62.0
|
||||
offset_right = 500.0
|
||||
offset_bottom = 131.0
|
||||
scale = Vector2(0.2, 0.2)
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 50
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
Reference in New Issue
Block a user