优化项目架构
This commit is contained in:
157
SproutFarm-Frontend/Scene/SmallPanel/AccountSettingPanel.tscn
Normal file
157
SproutFarm-Frontend/Scene/SmallPanel/AccountSettingPanel.tscn
Normal file
@@ -0,0 +1,157 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://d3i0l6ysrde6o"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dinrduqwsf5k5" path="res://Script/SmallPanel/AccountSettingPanel.gd" id="1_xfiot"]
|
||||
[ext_resource type="Texture2D" uid="uid://dsln1w1aqgf1k" path="res://assets/游戏UI/玩家默认头像.webp" id="2_a2cah"]
|
||||
[ext_resource type="Script" uid="uid://0d2j5m6j2ema" path="res://Components/HTTPTextureRect.gd" id="3_wibl7"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_y1hsh"]
|
||||
border_color = Color(2.98411e-06, 0.95982, 0.386903, 1)
|
||||
border_blend = true
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
corner_detail = 20
|
||||
shadow_size = 20
|
||||
shadow_offset = Vector2(10, 10)
|
||||
anti_aliasing = false
|
||||
anti_aliasing_size = 5.0
|
||||
|
||||
[node name="AccountSettingPanel" type="Panel"]
|
||||
visible = false
|
||||
offset_left = 243.0
|
||||
offset_top = 42.0
|
||||
offset_right = 1154.0
|
||||
offset_bottom = 689.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_y1hsh")
|
||||
script = ExtResource("1_xfiot")
|
||||
|
||||
[node name="Title" type="RichTextLabel" parent="."]
|
||||
modulate = Color(1, 0.745098, 0.54902, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 2.0
|
||||
offset_right = 911.0
|
||||
offset_bottom = 56.0
|
||||
size_flags_vertical = 3
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 10
|
||||
theme_override_constants/shadow_offset_y = 3
|
||||
theme_override_constants/shadow_offset_x = 3
|
||||
theme_override_constants/shadow_outline_size = 10
|
||||
theme_override_font_sizes/normal_font_size = 40
|
||||
bbcode_enabled = true
|
||||
text = "玩家信息设置"
|
||||
horizontal_alignment = 1
|
||||
threaded = true
|
||||
|
||||
[node name="QuitButton" type="Button" parent="."]
|
||||
custom_minimum_size = Vector2(55, 55)
|
||||
layout_mode = 0
|
||||
offset_left = 854.0
|
||||
offset_right = 911.0
|
||||
offset_bottom = 57.0
|
||||
theme_override_font_sizes/font_size = 35
|
||||
text = "X"
|
||||
|
||||
[node name="RefreshButton" type="Button" parent="."]
|
||||
custom_minimum_size = Vector2(55, 55)
|
||||
layout_mode = 0
|
||||
offset_left = 2.0
|
||||
offset_right = 80.0
|
||||
offset_bottom = 57.0
|
||||
theme_override_font_sizes/font_size = 35
|
||||
text = "刷新"
|
||||
|
||||
[node name="VBox1" type="VBoxContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_top = 58.0
|
||||
offset_right = 911.0
|
||||
offset_bottom = 647.0
|
||||
|
||||
[node name="HBox1" type="HBoxContainer" parent="VBox1"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="HTTPTextureRect" type="TextureRect" parent="VBox1/HBox1"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("2_a2cah")
|
||||
script = ExtResource("3_wibl7")
|
||||
metadata/_custom_type_script = "uid://0d2j5m6j2ema"
|
||||
|
||||
[node name="Grid" type="GridContainer" parent="VBox1"]
|
||||
layout_mode = 2
|
||||
columns = 2
|
||||
|
||||
[node name="User_Name" type="Label" parent="VBox1/Grid"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "账户:"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="User_Name_Input" type="Label" parent="VBox1/Grid"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "74074091740"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="User_Password" type="Label" parent="VBox1/Grid"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "密码:"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="User_Password_Input" type="LineEdit" parent="VBox1/Grid"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 30
|
||||
placeholder_text = "请输入密码"
|
||||
|
||||
[node name="Player_Name" type="Label" parent="VBox1/Grid"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "玩家昵称:"
|
||||
|
||||
[node name="Player_Name_Input" type="LineEdit" parent="VBox1/Grid"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 30
|
||||
placeholder_text = "请输入玩家昵称"
|
||||
|
||||
[node name="Farm_Name" type="Label" parent="VBox1/Grid"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "农场名称:"
|
||||
|
||||
[node name="Farm_Name_Input" type="LineEdit" parent="VBox1/Grid"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 30
|
||||
placeholder_text = "请输入农场名称"
|
||||
|
||||
[node name="Personal_Profile" type="Label" parent="VBox1/Grid"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "个人简介:"
|
||||
|
||||
[node name="Personal_Profile_Input" type="LineEdit" parent="VBox1/Grid"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 30
|
||||
placeholder_text = "请输入个人简介"
|
||||
|
||||
[node name="HBox2" type="HBoxContainer" parent="VBox1"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Remove_Account_Btn" type="Button" parent="VBox1/HBox2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "删除账号"
|
||||
|
||||
[node name="Confirm_Btn" type="Button" parent="VBox1/HBox2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "确认修改"
|
||||
250
SproutFarm-Frontend/Scene/SmallPanel/LandPanel.tscn
Normal file
250
SproutFarm-Frontend/Scene/SmallPanel/LandPanel.tscn
Normal file
@@ -0,0 +1,250 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dckc8nrn7p425"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bljtkxil64h14" path="res://Script/SmallPanel/LandPanel.gd" id="1_nmy5p"]
|
||||
[ext_resource type="Texture2D" uid="uid://2sdfbvf1isif" path="res://icon.svg" id="2_07q41"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_03j44"]
|
||||
border_width_left = 10
|
||||
border_width_top = 10
|
||||
border_width_right = 10
|
||||
border_width_bottom = 10
|
||||
corner_detail = 20
|
||||
|
||||
[node name="LandPanel" type="Panel"]
|
||||
offset_left = 385.0
|
||||
offset_top = 69.0
|
||||
offset_right = 901.0
|
||||
offset_bottom = 540.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_03j44")
|
||||
script = ExtResource("1_nmy5p")
|
||||
|
||||
[node name="Quit_Button" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 466.0
|
||||
offset_top = 10.0
|
||||
offset_right = 506.0
|
||||
offset_bottom = 53.0
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "X"
|
||||
|
||||
[node name="Refresh_Button" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 9.0
|
||||
offset_top = 10.0
|
||||
offset_right = 67.0
|
||||
offset_bottom = 53.0
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "刷新"
|
||||
|
||||
[node name="Title" type="Label" parent="."]
|
||||
self_modulate = Color(0, 0.87451, 1, 1)
|
||||
layout_mode = 2
|
||||
offset_right = 516.0
|
||||
offset_bottom = 42.0
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/shadow_offset_x = 4
|
||||
theme_override_constants/shadow_offset_y = 4
|
||||
theme_override_constants/outline_size = 15
|
||||
theme_override_constants/shadow_outline_size = 15
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "土地面板"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="GroundFunctionGrid" type="HBoxContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 9.0
|
||||
offset_top = 84.0
|
||||
offset_right = 505.0
|
||||
offset_bottom = 184.0
|
||||
|
||||
[node name="Dig_Button" type="Button" parent="GroundFunctionGrid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_colors/font_disabled_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_hover_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_hover_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_color = Color(1, 0, 0, 1)
|
||||
theme_override_colors/font_focus_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "开垦"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="Plant_Button" type="Button" parent="GroundFunctionGrid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 4
|
||||
theme_override_colors/font_disabled_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_hover_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_hover_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_color = Color(0.760784, 0.533333, 0.160784, 1)
|
||||
theme_override_colors/font_focus_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "种植"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="Harvest_Button" type="Button" parent="GroundFunctionGrid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 4
|
||||
theme_override_colors/font_disabled_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_hover_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_hover_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_color = Color(0.188235, 0.839216, 0.243137, 1)
|
||||
theme_override_colors/font_focus_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "收获"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="Upgrade_Button" type="Button" parent="GroundFunctionGrid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 4
|
||||
theme_override_colors/font_color = Color(0.0705882, 0.411765, 0.87451, 1)
|
||||
theme_override_colors/font_focus_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "升级"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="CropImageVBox" type="VBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
offset_left = 9.0
|
||||
offset_top = 330.0
|
||||
offset_right = 503.0
|
||||
offset_bottom = 458.0
|
||||
alignment = 1
|
||||
|
||||
[node name="CropTextureRect" type="TextureRect" parent="CropImageVBox"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("2_07q41")
|
||||
expand_mode = 2
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="InformVBox" type="VBoxContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 9.0
|
||||
offset_top = 197.0
|
||||
offset_right = 1249.0
|
||||
offset_bottom = 479.0
|
||||
scale = Vector2(0.4, 0.4)
|
||||
|
||||
[node name="GroundInformVBox" type="HBoxContainer" parent="InformVBox"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="GroundLevel" type="Label" parent="InformVBox/GroundInformVBox"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "土地等级:"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="GroundFunction" type="Label" parent="InformVBox/GroundInformVBox"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "土地功能:"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="CropInformVBox" type="VBoxContainer" parent="InformVBox"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="InformVBox/CropInformVBox"]
|
||||
modulate = Color(0, 1, 0, 1)
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 30
|
||||
|
||||
[node name="HBox1" type="HBoxContainer" parent="InformVBox/CropInformVBox"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="cost" type="Label" parent="InformVBox/CropInformVBox/HBox1"]
|
||||
modulate = Color(1, 1, 0, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "花费:999"
|
||||
|
||||
[node name="earn" type="Label" parent="InformVBox/CropInformVBox/HBox1"]
|
||||
modulate = Color(1, 1, 0, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "收益:999"
|
||||
|
||||
[node name="growthtime" type="Label" parent="InformVBox/CropInformVBox/HBox1"]
|
||||
modulate = Color(1, 0.635294, 1, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "生长时间:999"
|
||||
|
||||
[node name="experience" type="Label" parent="InformVBox/CropInformVBox/HBox1"]
|
||||
modulate = Color(0.164706, 1, 0.341176, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "收获经验:999"
|
||||
|
||||
[node name="HBox2" type="HBoxContainer" parent="InformVBox/CropInformVBox"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="canbuy" type="Label" parent="InformVBox/CropInformVBox/HBox2"]
|
||||
modulate = Color(0.466667, 1, 1, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "能否购买:是"
|
||||
|
||||
[node name="quality" type="Label" parent="InformVBox/CropInformVBox/HBox2"]
|
||||
modulate = Color(1, 0.607843, 0.239216, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "品质:传奇"
|
||||
|
||||
[node name="weatherability" type="Label" parent="InformVBox/CropInformVBox/HBox2"]
|
||||
modulate = Color(0.784314, 0.647059, 0.498039, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "耐候性:999"
|
||||
|
||||
[node name="level" type="Label" parent="InformVBox/CropInformVBox/HBox2"]
|
||||
modulate = Color(0.394367, 0.644385, 0.816557, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "种植等级:999"
|
||||
|
||||
[node name="HBox3" type="HBoxContainer" parent="InformVBox/CropInformVBox"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="description" type="Label" parent="InformVBox/CropInformVBox/HBox3"]
|
||||
modulate = Color(0.988235, 0.831373, 1, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "描述:啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊"
|
||||
|
||||
[connection signal="pressed" from="Quit_Button" to="." method="_on_quit_button_pressed"]
|
||||
[connection signal="pressed" from="Refresh_Button" to="." method="_on_refresh_button_pressed"]
|
||||
40
SproutFarm-Frontend/Scene/SmallPanel/LoadProgressPanel.tscn
Normal file
40
SproutFarm-Frontend/Scene/SmallPanel/LoadProgressPanel.tscn
Normal file
@@ -0,0 +1,40 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://d1lu2yg4xl382"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_uhubb"]
|
||||
border_width_left = 10
|
||||
border_width_top = 10
|
||||
border_width_right = 10
|
||||
border_width_bottom = 10
|
||||
|
||||
[node name="LoadProgressPanel" type="Panel"]
|
||||
visible = false
|
||||
offset_right = 1402.0
|
||||
offset_bottom = 719.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_uhubb")
|
||||
|
||||
[node name="Title" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1402.0
|
||||
offset_bottom = 550.0
|
||||
theme_override_colors/font_color = Color(0.966397, 0.970739, 0.632937, 1)
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/shadow_offset_x = 5
|
||||
theme_override_constants/shadow_offset_y = 5
|
||||
theme_override_constants/outline_size = 10
|
||||
theme_override_constants/shadow_outline_size = 10
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "正在加载资源中,请稍后..."
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="LoadProgressBar" type="ProgressBar" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 430.0
|
||||
offset_right = 1396.0
|
||||
offset_bottom = 489.0
|
||||
theme_override_colors/font_color = Color(0, 1, 0, 1)
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 7
|
||||
theme_override_font_sizes/font_size = 40
|
||||
114
SproutFarm-Frontend/Scene/SmallPanel/OneClickPlantPanel.tscn
Normal file
114
SproutFarm-Frontend/Scene/SmallPanel/OneClickPlantPanel.tscn
Normal file
@@ -0,0 +1,114 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://4rwitowdt4h"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://rlk8e51pibtm" path="res://Script/SmallPanel/OneClickPlantPanel.gd" id="1_cvoer"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_cvoer"]
|
||||
border_width_left = 15
|
||||
border_width_top = 15
|
||||
border_width_right = 15
|
||||
border_width_bottom = 15
|
||||
corner_radius_top_left = 20
|
||||
corner_radius_top_right = 20
|
||||
corner_radius_bottom_right = 20
|
||||
corner_radius_bottom_left = 20
|
||||
corner_detail = 20
|
||||
shadow_size = 20
|
||||
|
||||
[node name="OneClickPlantPanel" type="Panel"]
|
||||
offset_left = 467.0
|
||||
offset_top = 125.0
|
||||
offset_right = 1075.0
|
||||
offset_bottom = 441.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_cvoer")
|
||||
script = ExtResource("1_cvoer")
|
||||
|
||||
[node name="Quit_Button" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 535.0
|
||||
offset_top = 21.0
|
||||
offset_right = 585.0
|
||||
offset_bottom = 71.0
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "X"
|
||||
|
||||
[node name="Title" type="Label" parent="."]
|
||||
self_modulate = Color(0.431373, 0.498039, 1, 1)
|
||||
layout_mode = 2
|
||||
offset_right = 608.0
|
||||
offset_bottom = 71.0
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/shadow_offset_x = 3
|
||||
theme_override_constants/shadow_offset_y = 3
|
||||
theme_override_constants/outline_size = 10
|
||||
theme_override_constants/shadow_outline_size = 10
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "一键种植面板"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Grid" type="GridContainer" parent="."]
|
||||
layout_mode = 2
|
||||
offset_left = 47.0
|
||||
offset_top = 87.0
|
||||
offset_right = 563.0
|
||||
offset_bottom = 291.0
|
||||
columns = 5
|
||||
|
||||
[node name="FullScreenPlantBtn" type="Button" parent="Grid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(1, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "全屏种植"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="OneRowPlantBtn" type="Button" parent="Grid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(1, 0.972549, 0, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "行种植"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="OneColumnPlantBtn" type="Button" parent="Grid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0, 1, 0, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "列种植"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="NineSquarePlantBtn" type="Button" parent="Grid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0, 1, 1, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "九宫格
|
||||
种植"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="CrossPlantBtn" type="Button" parent="Grid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(1, 0.54902, 0, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "十字法
|
||||
种植"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="RandomPlantBtn" type="Button" parent="Grid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(1, 0.49586, 0.63552, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "随机种植"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[connection signal="pressed" from="Quit_Button" to="." method="_on_quit_button_pressed"]
|
||||
163
SproutFarm-Frontend/Scene/SmallPanel/OnlineGiftPanel.tscn
Normal file
163
SproutFarm-Frontend/Scene/SmallPanel/OnlineGiftPanel.tscn
Normal file
@@ -0,0 +1,163 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dpiy0aim20n2h"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ccaqrb6sdwbux" path="res://Script/SmallPanel/OnlineGiftPanel.gd" id="1_i0ga4"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_i0ga4"]
|
||||
border_width_left = 15
|
||||
border_width_top = 15
|
||||
border_width_right = 15
|
||||
border_width_bottom = 15
|
||||
corner_radius_top_left = 20
|
||||
corner_radius_top_right = 20
|
||||
corner_radius_bottom_right = 20
|
||||
corner_radius_bottom_left = 20
|
||||
corner_detail = 20
|
||||
shadow_size = 20
|
||||
|
||||
[node name="OnlineGiftPanel" type="Panel"]
|
||||
offset_left = 395.0
|
||||
offset_top = 140.0
|
||||
offset_right = 1008.0
|
||||
offset_bottom = 474.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_i0ga4")
|
||||
script = ExtResource("1_i0ga4")
|
||||
|
||||
[node name="Quit_Button" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 543.0
|
||||
offset_top = 21.0
|
||||
offset_right = 593.0
|
||||
offset_bottom = 71.0
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "X"
|
||||
|
||||
[node name="HBox" type="HBoxContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="Title" type="Label" parent="."]
|
||||
modulate = Color(0.996846, 0.629335, 1, 1)
|
||||
layout_mode = 2
|
||||
offset_right = 613.0
|
||||
offset_bottom = 65.0
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/shadow_offset_x = 3
|
||||
theme_override_constants/shadow_offset_y = 3
|
||||
theme_override_constants/outline_size = 10
|
||||
theme_override_constants/shadow_outline_size = 10
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "在线礼包"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Grid" type="GridContainer" parent="."]
|
||||
layout_mode = 2
|
||||
offset_left = 49.0
|
||||
offset_top = 93.0
|
||||
offset_right = 565.0
|
||||
offset_bottom = 297.0
|
||||
columns = 5
|
||||
|
||||
[node name="OneMinute" type="Button" parent="Grid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_color = Color(1, 0, 0, 1)
|
||||
theme_override_colors/font_focus_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "在线
|
||||
1分钟"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="ThreeMinutes" type="Button" parent="Grid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_color = Color(0.995313, 0.515623, 0.748044, 1)
|
||||
theme_override_colors/font_focus_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "在线
|
||||
3分钟"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="FiveMinutes" type="Button" parent="Grid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_color = Color(0.635294, 0.827451, 0.537255, 1)
|
||||
theme_override_colors/font_focus_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "在线
|
||||
5分钟"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="TenMinutes" type="Button" parent="Grid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.760784, 0.533333, 0.160784, 1)
|
||||
theme_override_colors/font_focus_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "在线
|
||||
10分钟"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="ThirtyMinutes" type="Button" parent="Grid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.870588, 0.870588, 0, 1)
|
||||
theme_override_colors/font_focus_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "在线
|
||||
30分钟"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="OneHour" type="Button" parent="Grid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.188235, 0.839216, 0.243137, 1)
|
||||
theme_override_colors/font_focus_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "在线
|
||||
1小时"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="ThreeHours" type="Button" parent="Grid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_color = Color(0, 0.87451, 0.87451, 1)
|
||||
theme_override_colors/font_focus_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "在线
|
||||
3小时"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="FiveHours" type="Button" parent="Grid"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.509804, 0.301961, 0.85098, 1)
|
||||
theme_override_colors/font_focus_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "在线
|
||||
5小时"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[connection signal="pressed" from="Quit_Button" to="." method="_on_quit_button_pressed"]
|
||||
Reference in New Issue
Block a user