From 4119ed34458c425e4f839b89072508a3ee918b0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A0=91=E8=90=8C=E8=8A=BD?= <3205788256@qq.com> Date: Mon, 1 Sep 2025 08:37:33 +0800 Subject: [PATCH] =?UTF-8?q?UI=E7=BB=A7=E7=BB=AD=E7=BE=8E=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + GUI/MainMenuPanel.tscn | 12 +- MainGame.tscn | 64 ++++--- Scene/BigPanel/ItemStorePanel.tscn | 8 +- Scene/BigPanel/LoginPanel.tscn | 70 ++++---- Scene/BigPanel/PlayGamePanel.tscn | 221 ++++++++++++++++++++----- Scene/BigPanel/PlayerRankingPanel.tscn | 112 +++++-------- Scene/BigPanel/SpecialFarmPanel.tscn | 182 +++++++++++++++----- 8 files changed, 449 insertions(+), 221 deletions(-) diff --git a/.gitignore b/.gitignore index 5841f8e..a0ff63c 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ Thumbs.db # IDE-specific files .vscode/ .idea/ +.cursor/ \ No newline at end of file diff --git a/GUI/MainMenuPanel.tscn b/GUI/MainMenuPanel.tscn index 45d575f..b512ac7 100644 --- a/GUI/MainMenuPanel.tscn +++ b/GUI/MainMenuPanel.tscn @@ -85,7 +85,7 @@ offset_top = 676.0 offset_right = 188.0 offset_bottom = 718.0 theme_override_font_sizes/font_size = 30 -text = "版本号:v1.0.1" +text = "版本号:v1.0" [node name="GameVersionLabel2" type="Label" parent="GUI"] layout_mode = 0 @@ -94,7 +94,9 @@ offset_top = 676.0 offset_right = 875.0 offset_bottom = 718.0 theme_override_font_sizes/font_size = 30 -text = "学习项目,偏休闲娱乐" +text = "学习项目" +horizontal_alignment = 1 +vertical_alignment = 1 [node name="Developer" type="RichTextLabel" parent="GUI"] layout_mode = 0 @@ -109,6 +111,7 @@ horizontal_alignment = 1 vertical_alignment = 1 [node name="AddGroupLabel" type="Label" parent="GUI"] +visible = false self_modulate = Color(1, 1, 0, 1) layout_mode = 0 offset_left = 896.0 @@ -125,6 +128,7 @@ theme_override_font_sizes/font_size = 30 text = "加群获取最新开发动态!" [node name="QQGroupImage" type="TextureRect" parent="GUI/AddGroupLabel"] +visible = false layout_mode = 0 offset_left = 17.0 offset_top = 43.0 @@ -134,6 +138,7 @@ scale = Vector2(0.3, 0.3) texture = ExtResource("4_eghpk") [node name="QQGroupImage2" type="TextureRect" parent="GUI/AddGroupLabel"] +visible = false layout_mode = 0 offset_left = -832.0 offset_right = 103.0 @@ -142,6 +147,7 @@ scale = Vector2(0.3, 0.3) texture = ExtResource("5_m77al") [node name="YouXiaoQing" type="TextureRect" parent="GUI/AddGroupLabel"] +visible = false layout_mode = 0 offset_left = 298.0 offset_top = 82.0 @@ -151,6 +157,7 @@ scale = Vector2(0.14, 0.14) texture = ExtResource("5_6jmhb") [node name="RichTextLabel" type="RichTextLabel" parent="GUI/AddGroupLabel"] +visible = false self_modulate = Color(0.580392, 1, 0, 1) layout_mode = 0 offset_left = -896.0 @@ -215,6 +222,7 @@ theme_override_font_sizes/font_size = 40 text = "退出游戏" [node name="GameAboutPanel" type="Panel" parent="."] +visible = false layout_mode = 0 offset_left = 138.0 offset_top = 80.0 diff --git a/MainGame.tscn b/MainGame.tscn index ef94287..54986ca 100644 --- a/MainGame.tscn +++ b/MainGame.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=114 format=3 uid="uid://dgh61dttaas5a"] +[gd_scene load_steps=113 format=3 uid="uid://dgh61dttaas5a"] [ext_resource type="Script" uid="uid://2pt11sfcaxf7" path="res://MainGame.gd" id="1_v3yaj"] [ext_resource type="Texture2D" uid="uid://du2pyiojliasy" path="res://assets/游戏UI/经验球.webp" id="2_6jgly"] @@ -91,22 +91,6 @@ [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_adtqp"] -[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_n03md"] -bg_color = Color(0.85, 0.95, 0.88, 0.85) -border_width_left = 2 -border_width_top = 2 -border_width_right = 2 -border_width_bottom = 2 -border_color = Color(0.6, 0.8, 0.65, 0.9) -corner_radius_top_left = 35 -corner_radius_top_right = 35 -corner_radius_bottom_right = 35 -corner_radius_bottom_left = 35 -corner_detail = 20 -shadow_color = Color(0, 0, 0, 0.3) -shadow_size = 12 -shadow_offset = Vector2(3, 3) - [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_dfxu8"] border_width_left = 5 border_width_top = 5 @@ -816,14 +800,6 @@ offset_top = 28.0 offset_right = 1473.0 offset_bottom = 748.0 -[node name="ItemStorePanel" parent="UI/BigPanel" instance=ExtResource("21_uhubb")] -visible = false -offset_left = 80.0 -offset_top = 77.0 -offset_right = 1620.0 -offset_bottom = 797.0 -theme_override_styles/panel = SubResource("StyleBoxFlat_n03md") - [node name="ItemBagPanel" parent="UI/BigPanel" instance=ExtResource("20_n03md")] visible = false theme_override_styles/panel = SubResource("StyleBoxFlat_dfxu8") @@ -923,6 +899,7 @@ text = "购买商品摊位" visible = false [node name="PetStorePanel" parent="UI/BigPanel" instance=ExtResource("24_uc6q1")] +visible = false [node name="DailyCheckInPanel" parent="UI/BigPanel" instance=ExtResource("18_m6fch")] visible = false @@ -940,11 +917,13 @@ visible = false visible = false [node name="PlayGamePanel" parent="UI/BigPanel" instance=ExtResource("30_rawle")] -visible = false [node name="SpecialFarmPanel" parent="UI/BigPanel" instance=ExtResource("31_ww70k")] visible = false +[node name="ItemStorePanel" parent="UI/BigPanel" instance=ExtResource("21_uhubb")] +visible = false + [node name="SmallPanel" type="CanvasLayer" parent="UI"] [node name="LoadProgressPanel" parent="UI/SmallPanel" instance=ExtResource("27_vygm6")] @@ -1771,6 +1750,39 @@ size_flags_horizontal = 4 theme_override_font_sizes/font_size = 35 text = "结束占卜" +[node name="PetLadderListPanel" type="Panel" parent="UI/SmallPanel"] +visible = false +offset_left = 212.0 +offset_right = 1100.0 +offset_bottom = 716.0 + +[node name="Label" type="Label" parent="UI/SmallPanel/PetLadderListPanel"] +layout_mode = 0 +offset_right = 889.0 +offset_bottom = 55.0 +theme_override_colors/font_color = Color(0.909804, 1, 0.415686, 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 = 15 +theme_override_constants/shadow_outline_size = 15 +theme_override_font_sizes/font_size = 40 +text = "宠物天梯赛" +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="Button" type="Button" parent="UI/SmallPanel/PetLadderListPanel"] +modulate = Color(1, 0, 0, 1) +self_modulate = Color(1, 0, 0, 1) +custom_minimum_size = Vector2(60, 60) +layout_mode = 0 +offset_left = 825.0 +offset_right = 885.0 +offset_bottom = 63.0 +theme_override_colors/icon_normal_color = Color(1, 0, 0, 1) +theme_override_font_sizes/font_size = 40 +text = "X" + [node name="DiaLog" type="CanvasLayer" parent="UI"] [node name="AcceptDialog" parent="UI/DiaLog" instance=ExtResource("16_0igvr")] diff --git a/Scene/BigPanel/ItemStorePanel.tscn b/Scene/BigPanel/ItemStorePanel.tscn index 37bca83..bd7d49f 100644 --- a/Scene/BigPanel/ItemStorePanel.tscn +++ b/Scene/BigPanel/ItemStorePanel.tscn @@ -79,10 +79,10 @@ script = ExtResource("1_vx1qn") [node name="TMBackGround" type="ColorRect" parent="."] layout_mode = 0 -offset_left = -184.0 -offset_top = -100.0 -offset_right = 1571.0 -offset_bottom = 804.0 +offset_left = -85.0 +offset_top = -129.0 +offset_right = 1690.0 +offset_bottom = 820.0 color = Color(0.9, 0.8, 0.6, 0.3) [node name="ScrollContainer" type="ScrollContainer" parent="."] diff --git a/Scene/BigPanel/LoginPanel.tscn b/Scene/BigPanel/LoginPanel.tscn index 38cd130..3028215 100644 --- a/Scene/BigPanel/LoginPanel.tscn +++ b/Scene/BigPanel/LoginPanel.tscn @@ -3,10 +3,16 @@ [ext_resource type="Script" uid="uid://cka0r4g8tbf0" path="res://Script/BigPanel/LoginPanel.gd" id="1_xnwaq"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_n8m38"] -border_width_left = 15 -border_width_top = 15 -border_width_right = 15 -border_width_bottom = 15 +bg_color = Color(0.454902, 0.321569, 0.188235, 0.85098) +border_width_left = 5 +border_width_top = 5 +border_width_right = 5 +border_width_bottom = 5 +border_color = Color(0.8, 0.6, 0.4, 1) +corner_radius_top_left = 20 +corner_radius_top_right = 20 +corner_radius_bottom_right = 20 +corner_radius_bottom_left = 20 [node name="LoginPanel" type="PanelContainer"] offset_left = 343.0 @@ -18,7 +24,6 @@ theme_override_styles/panel = SubResource("StyleBoxFlat_n8m38") script = ExtResource("1_xnwaq") [node name="LoginVBox" type="VBoxContainer" parent="."] -visible = false layout_mode = 2 [node name="Title" type="Label" parent="LoginVBox"] @@ -31,7 +36,7 @@ theme_override_constants/shadow_offset_y = 5 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 40 -text = "登录面板" +text = "🌾登录 🌾" horizontal_alignment = 1 vertical_alignment = 1 @@ -41,7 +46,7 @@ layout_mode = 2 [node name="Label" type="Label" parent="LoginVBox/UserName"] layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "账号" +text = "账号🔒" horizontal_alignment = 1 vertical_alignment = 1 @@ -58,7 +63,7 @@ layout_mode = 2 [node name="Label2" type="Label" parent="LoginVBox/Password"] layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "密码" +text = "密码🔑" horizontal_alignment = 1 vertical_alignment = 1 @@ -71,23 +76,23 @@ placeholder_text = "请输入密码" [node name="LoginButton" type="Button" parent="LoginVBox"] layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "登录" +text = "登录 🚪" [node name="RegisterButton" type="Button" parent="LoginVBox"] layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "注册" +text = "注册🆕" [node name="ForgetPasswdButton" type="Button" parent="LoginVBox"] layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "忘记密码" +text = "忘记密码🤔" [node name="Note" type="Label" parent="LoginVBox"] modulate = Color(1, 0.552941, 1, 1) layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "注意:首次游玩游戏需要注册账号, +text = "⚠️注意:首次游玩游戏需要注册账号, 账号请直接输入您的QQ号,系统会直接向您的QQ 邮箱发送一串验证码进行注册验证,密码请设置的复杂一 点,以免被暴力破解(" @@ -101,6 +106,7 @@ text = "连接状态" horizontal_alignment = 1 [node name="RegisterVbox" type="VBoxContainer" parent="."] +visible = false layout_mode = 2 [node name="Title" type="Label" parent="RegisterVbox"] @@ -113,7 +119,7 @@ theme_override_constants/shadow_offset_y = 5 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 40 -text = "注册面板" +text = "🏡注册🏡" horizontal_alignment = 1 vertical_alignment = 1 @@ -123,7 +129,7 @@ layout_mode = 2 [node name="Label" type="Label" parent="RegisterVbox/RegisterUserName"] layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "账号" +text = "账号🔒" horizontal_alignment = 1 vertical_alignment = 1 @@ -140,7 +146,7 @@ layout_mode = 2 [node name="Label2" type="Label" parent="RegisterVbox/Password1"] layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "密码" +text = "密码🔑" horizontal_alignment = 1 vertical_alignment = 1 @@ -156,7 +162,7 @@ layout_mode = 2 [node name="Label2" type="Label" parent="RegisterVbox/Password2"] layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "确认密码" +text = "确认密码 🔑" horizontal_alignment = 1 vertical_alignment = 1 @@ -164,7 +170,7 @@ vertical_alignment = 1 layout_mode = 2 size_flags_horizontal = 3 theme_override_font_sizes/font_size = 30 -placeholder_text = "请再次输入密码" +placeholder_text = "请再次输入您的密码" [node name="PlayerName" type="HBoxContainer" parent="RegisterVbox"] layout_mode = 2 @@ -172,7 +178,7 @@ layout_mode = 2 [node name="Label2" type="Label" parent="RegisterVbox/PlayerName"] layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "玩家昵称" +text = "玩家昵称 🧑‍🌾" horizontal_alignment = 1 vertical_alignment = 1 @@ -180,7 +186,7 @@ vertical_alignment = 1 layout_mode = 2 size_flags_horizontal = 3 theme_override_font_sizes/font_size = 30 -placeholder_text = "请输入您的玩家昵称" +placeholder_text = "给自己取个好听的名字吧!" [node name="FarmName" type="HBoxContainer" parent="RegisterVbox"] layout_mode = 2 @@ -188,7 +194,7 @@ layout_mode = 2 [node name="Label" type="Label" parent="RegisterVbox/FarmName"] layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "农场名称" +text = "农场名称 🏞️" horizontal_alignment = 1 vertical_alignment = 1 @@ -196,7 +202,7 @@ vertical_alignment = 1 layout_mode = 2 size_flags_horizontal = 3 theme_override_font_sizes/font_size = 30 -placeholder_text = "请输入您的农场名称" +placeholder_text = "给你的农场取个名字吧!" metadata/_edit_use_anchors_ = true [node name="VerificationCode" type="HBoxContainer" parent="RegisterVbox"] @@ -205,7 +211,7 @@ layout_mode = 2 [node name="Label" type="Label" parent="RegisterVbox/VerificationCode"] layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "验证码" +text = "验证码📧" horizontal_alignment = 1 vertical_alignment = 1 @@ -224,18 +230,18 @@ text = "发送验证码" [node name="RegisterButton2" type="Button" parent="RegisterVbox"] layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "注册" +text = "注册🆕" [node name="Register2LoginButton" type="Button" parent="RegisterVbox"] layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "返回登录" +text = "返回登录🚪" [node name="Note" type="Label" parent="RegisterVbox"] modulate = Color(1, 0.552941, 1, 1) layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "注意:首次游玩游戏需要注册账号, +text = "⚠️注意:首次游玩游戏需要注册账号, 账号请直接输入您的QQ号,系统会直接向您的QQ 邮箱发送一串验证码进行注册验证,密码请设置的复杂一 点,以免被暴力破解(" @@ -262,7 +268,7 @@ theme_override_constants/shadow_offset_y = 5 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 40 -text = "忘记密码" +text = "🧐找回密码🧐" horizontal_alignment = 1 vertical_alignment = 1 @@ -272,7 +278,7 @@ layout_mode = 2 [node name="Label" type="Label" parent="ForgetPasswordVbox/ForgetPasswordUserName"] layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "账号" +text = "账号🔒" horizontal_alignment = 1 vertical_alignment = 1 @@ -289,7 +295,7 @@ layout_mode = 2 [node name="Label2" type="Label" parent="ForgetPasswordVbox/NewPassword"] layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "新密码" +text = "新密码 🔑" horizontal_alignment = 1 vertical_alignment = 1 @@ -297,7 +303,7 @@ vertical_alignment = 1 layout_mode = 2 size_flags_horizontal = 3 theme_override_font_sizes/font_size = 30 -placeholder_text = "请设置新的密码" +placeholder_text = "请设置您的新密码" [node name="VerificationCode2" type="HBoxContainer" parent="ForgetPasswordVbox"] layout_mode = 2 @@ -305,7 +311,7 @@ layout_mode = 2 [node name="Label" type="Label" parent="ForgetPasswordVbox/VerificationCode2"] layout_mode = 2 theme_override_font_sizes/font_size = 30 -text = "验证码" +text = "验证码📧" horizontal_alignment = 1 vertical_alignment = 1 @@ -321,12 +327,12 @@ layout_mode = 2 theme_override_font_sizes/font_size = 30 text = "发送验证码" -[node name="ForgetPasswordButton" type="Button" parent="ForgetPasswordVbox"] +[node name="Forget2LoginButton" type="Button" parent="ForgetPasswordVbox"] layout_mode = 2 theme_override_font_sizes/font_size = 30 text = "确认" -[node name="Forget2LoginButton" type="Button" parent="ForgetPasswordVbox"] +[node name="ForgetPasswordButton" type="Button" parent="ForgetPasswordVbox"] layout_mode = 2 theme_override_font_sizes/font_size = 30 text = "确认" diff --git a/Scene/BigPanel/PlayGamePanel.tscn b/Scene/BigPanel/PlayGamePanel.tscn index 8962a47..2c15d35 100644 --- a/Scene/BigPanel/PlayGamePanel.tscn +++ b/Scene/BigPanel/PlayGamePanel.tscn @@ -1,15 +1,80 @@ -[gd_scene load_steps=4 format=3 uid="uid://jjlgdnoo8e52"] +[gd_scene load_steps=9 format=3 uid="uid://jjlgdnoo8e52"] [ext_resource type="Script" uid="uid://dvaah0n1ia1a3" path="res://Script/BigPanel/PlayGamePanel.gd" id="1_i6cj7"] [ext_resource type="Texture2D" uid="uid://ywdg7xgq7hm8" path="res://assets/装饰物图片/道具背包.webp" id="2_wlugc"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7i23t"] -border_width_left = 15 -border_width_top = 15 -border_width_right = 15 -border_width_bottom = 15 +bg_color = Color(0.752836, 0.587098, 0.400951, 0.9) +border_width_left = 8 +border_width_top = 8 +border_width_right = 8 +border_width_bottom = 8 +border_color = Color(0.364706, 0.254902, 0.156863, 1) +corner_radius_top_left = 25 +corner_radius_top_right = 25 +corner_radius_bottom_right = 25 +corner_radius_bottom_left = 25 corner_detail = 20 -shadow_size = 20 +shadow_color = Color(0.2, 0.15, 0.1, 0.5) +shadow_size = 25 +shadow_offset = Vector2(5, 5) + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ScrollContainer"] +bg_color = Color(0.945056, 0.846293, 0.608526, 1) +corner_radius_top_left = 10 +corner_radius_top_right = 10 +corner_radius_bottom_right = 10 +corner_radius_bottom_left = 10 +corner_detail = 20 +shadow_color = Color(0.0823529, 0.0823529, 0.0823529, 1) + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_Button_Hover"] +bg_color = Color(0.8, 0.65098, 0.470588, 1) +border_width_left = 3 +border_width_top = 3 +border_width_right = 3 +border_width_bottom = 3 +border_color = Color(0.45098, 0.364706, 0.254902, 1) +corner_radius_top_left = 15 +corner_radius_top_right = 15 +corner_radius_bottom_right = 15 +corner_radius_bottom_left = 15 + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_Button_Pressed"] +bg_color = Color(0.564706, 0.45098, 0.317647, 1) +border_width_left = 3 +border_width_top = 3 +border_width_right = 3 +border_width_bottom = 3 +border_color = Color(0.364706, 0.294118, 0.203922, 1) +corner_radius_top_left = 15 +corner_radius_top_right = 15 +corner_radius_bottom_right = 15 +corner_radius_bottom_left = 15 + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_Button_Normal"] +bg_color = Color(0.678431, 0.54902, 0.392157, 1) +border_width_left = 3 +border_width_top = 3 +border_width_right = 3 +border_width_bottom = 3 +border_color = Color(0.45098, 0.364706, 0.254902, 1) +corner_radius_top_left = 15 +corner_radius_top_right = 15 +corner_radius_bottom_right = 15 +corner_radius_bottom_left = 15 + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_CloseButton"] +bg_color = Color(0.8, 0.2, 0.2, 0.9) +border_width_left = 2 +border_width_top = 2 +border_width_right = 2 +border_width_bottom = 2 +border_color = Color(0.6, 0.15, 0.15, 1) +corner_radius_top_left = 10 +corner_radius_top_right = 10 +corner_radius_bottom_right = 10 +corner_radius_bottom_left = 10 [node name="PlayGamePanel" type="Panel"] offset_right = 1399.0 @@ -22,24 +87,25 @@ layout_mode = 0 offset_top = 17.0 offset_right = 1401.0 offset_bottom = 86.0 -theme_override_colors/font_color = Color(0.560784, 1, 0, 1) +theme_override_colors/font_color = Color(1, 0.901961, 0.498039, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 20 theme_override_font_sizes/font_size = 50 -text = "玩玩小游戏" +text = "🎮 休闲小游戏 🕹️" horizontal_alignment = 1 vertical_alignment = 1 [node name="ScrollContainer" type="ScrollContainer" parent="."] layout_mode = 0 -offset_left = 15.0 -offset_top = 88.0 -offset_right = 1384.0 -offset_bottom = 707.0 +offset_left = 48.0 +offset_top = 116.0 +offset_right = 1352.0 +offset_bottom = 674.0 +theme_override_styles/panel = SubResource("StyleBoxFlat_ScrollContainer") horizontal_scroll_mode = 0 [node name="Grid" type="GridContainer" parent="ScrollContainer"] @@ -54,14 +120,15 @@ alignment = 1 [node name="GameTitle" type="Label" parent="ScrollContainer/Grid/2048Game"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 0.8, 0.6, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 35 -text = "2048" +text = "🧮 2048 🔢" horizontal_alignment = 1 vertical_alignment = 1 @@ -71,8 +138,12 @@ texture = ExtResource("2_wlugc") [node name="2048GameButton" type="Button" parent="ScrollContainer/Grid/2048Game"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 30 -text = "点击游玩" +theme_override_styles/hover = SubResource("StyleBoxFlat_Button_Hover") +theme_override_styles/pressed = SubResource("StyleBoxFlat_Button_Pressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button_Normal") +text = "🎯 开始挑战" [node name="PushBox" type="VBoxContainer" parent="ScrollContainer/Grid"] layout_mode = 2 @@ -80,14 +151,15 @@ alignment = 1 [node name="GameTitle" type="Label" parent="ScrollContainer/Grid/PushBox"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 0.8, 0.6, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 35 -text = "推箱子" +text = "📦 推箱子 🚚" horizontal_alignment = 1 vertical_alignment = 1 @@ -97,8 +169,12 @@ texture = ExtResource("2_wlugc") [node name="PushBoxButton" type="Button" parent="ScrollContainer/Grid/PushBox"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 30 -text = "点击游玩" +theme_override_styles/hover = SubResource("StyleBoxFlat_Button_Hover") +theme_override_styles/pressed = SubResource("StyleBoxFlat_Button_Pressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button_Normal") +text = "💪 智力考验" [node name="SnakeGame" type="VBoxContainer" parent="ScrollContainer/Grid"] layout_mode = 2 @@ -106,14 +182,15 @@ alignment = 1 [node name="GameTitle" type="Label" parent="ScrollContainer/Grid/SnakeGame"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 0.8, 0.6, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 35 -text = "贪吃蛇" +text = "🐍 贪吃蛇 🍎" horizontal_alignment = 1 vertical_alignment = 1 @@ -123,8 +200,12 @@ texture = ExtResource("2_wlugc") [node name="SnakeGameButton" type="Button" parent="ScrollContainer/Grid/SnakeGame"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 30 -text = "点击游玩" +theme_override_styles/hover = SubResource("StyleBoxFlat_Button_Hover") +theme_override_styles/pressed = SubResource("StyleBoxFlat_Button_Pressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button_Normal") +text = "🏃 反应游戏" [node name="Tetris" type="VBoxContainer" parent="ScrollContainer/Grid"] layout_mode = 2 @@ -132,14 +213,15 @@ alignment = 1 [node name="GameTitle" type="Label" parent="ScrollContainer/Grid/Tetris"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 0.8, 0.6, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 35 -text = "俄罗斯方块" +text = "🧩 俄罗斯方块 🟦" horizontal_alignment = 1 vertical_alignment = 1 @@ -149,23 +231,29 @@ texture = ExtResource("2_wlugc") [node name="TetrisButton" type="Button" parent="ScrollContainer/Grid/Tetris"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 30 -text = "点击游玩" +theme_override_styles/hover = SubResource("StyleBoxFlat_Button_Hover") +theme_override_styles/pressed = SubResource("StyleBoxFlat_Button_Pressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button_Normal") +text = "🎮 经典游戏" [node name="VBox5" type="VBoxContainer" parent="ScrollContainer/Grid"] +visible = false layout_mode = 2 alignment = 1 [node name="GameTitle" type="Label" parent="ScrollContainer/Grid/VBox5"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 0.8, 0.6, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 35 -text = "敬请期待" +text = "🔮 神秘游戏 ✨" horizontal_alignment = 1 vertical_alignment = 1 @@ -175,23 +263,29 @@ texture = ExtResource("2_wlugc") [node name="Button" type="Button" parent="ScrollContainer/Grid/VBox5"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 30 -text = "点击游玩" +theme_override_styles/hover = SubResource("StyleBoxFlat_Button_Hover") +theme_override_styles/pressed = SubResource("StyleBoxFlat_Button_Pressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button_Normal") +text = "🚧 敬请期待" [node name="VBox6" type="VBoxContainer" parent="ScrollContainer/Grid"] +visible = false layout_mode = 2 alignment = 1 [node name="GameTitle" type="Label" parent="ScrollContainer/Grid/VBox6"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 0.8, 0.6, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 35 -text = "敬请期待" +text = "🎲 桌游世界 🃏" horizontal_alignment = 1 vertical_alignment = 1 @@ -201,23 +295,29 @@ texture = ExtResource("2_wlugc") [node name="Button" type="Button" parent="ScrollContainer/Grid/VBox6"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 30 -text = "点击游玩" +theme_override_styles/hover = SubResource("StyleBoxFlat_Button_Hover") +theme_override_styles/pressed = SubResource("StyleBoxFlat_Button_Pressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button_Normal") +text = "🚧 敬请期待" [node name="VBox7" type="VBoxContainer" parent="ScrollContainer/Grid"] +visible = false layout_mode = 2 alignment = 1 [node name="GameTitle" type="Label" parent="ScrollContainer/Grid/VBox7"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 0.8, 0.6, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 35 -text = "敬请期待" +text = "🎯 射击游戏 🏹" horizontal_alignment = 1 vertical_alignment = 1 @@ -227,23 +327,29 @@ texture = ExtResource("2_wlugc") [node name="Button" type="Button" parent="ScrollContainer/Grid/VBox7"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 30 -text = "点击游玩" +theme_override_styles/hover = SubResource("StyleBoxFlat_Button_Hover") +theme_override_styles/pressed = SubResource("StyleBoxFlat_Button_Pressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button_Normal") +text = "🚧 敬请期待" [node name="VBox8" type="VBoxContainer" parent="ScrollContainer/Grid"] +visible = false layout_mode = 2 alignment = 1 [node name="GameTitle" type="Label" parent="ScrollContainer/Grid/VBox8"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 0.8, 0.6, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 35 -text = "敬请期待" +text = "🧠 益智游戏 💡" horizontal_alignment = 1 vertical_alignment = 1 @@ -253,23 +359,29 @@ texture = ExtResource("2_wlugc") [node name="Button" type="Button" parent="ScrollContainer/Grid/VBox8"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 30 -text = "点击游玩" +theme_override_styles/hover = SubResource("StyleBoxFlat_Button_Hover") +theme_override_styles/pressed = SubResource("StyleBoxFlat_Button_Pressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button_Normal") +text = "🚧 敬请期待" [node name="VBox9" type="VBoxContainer" parent="ScrollContainer/Grid"] +visible = false layout_mode = 2 alignment = 1 [node name="GameTitle" type="Label" parent="ScrollContainer/Grid/VBox9"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 0.8, 0.6, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 35 -text = "敬请期待" +text = "🏆 竞技游戏 ⚔️" horizontal_alignment = 1 vertical_alignment = 1 @@ -279,23 +391,29 @@ texture = ExtResource("2_wlugc") [node name="Button" type="Button" parent="ScrollContainer/Grid/VBox9"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 30 -text = "点击游玩" +theme_override_styles/hover = SubResource("StyleBoxFlat_Button_Hover") +theme_override_styles/pressed = SubResource("StyleBoxFlat_Button_Pressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button_Normal") +text = "🚧 敬请期待" [node name="VBox10" type="VBoxContainer" parent="ScrollContainer/Grid"] +visible = false layout_mode = 2 alignment = 1 [node name="GameTitle" type="Label" parent="ScrollContainer/Grid/VBox10"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 0.8, 0.6, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 35 -text = "敬请期待" +text = "🎨 创意游戏 ✨" horizontal_alignment = 1 vertical_alignment = 1 @@ -305,13 +423,26 @@ texture = ExtResource("2_wlugc") [node name="Button" type="Button" parent="ScrollContainer/Grid/VBox10"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 30 -text = "点击游玩" +theme_override_styles/hover = SubResource("StyleBoxFlat_Button_Hover") +theme_override_styles/pressed = SubResource("StyleBoxFlat_Button_Pressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button_Normal") +text = "🚧 敬请期待" [node name="QuitButton" type="Button" parent="."] +custom_minimum_size = Vector2(80, 80) layout_mode = 0 -offset_right = 8.0 -offset_bottom = 8.0 +offset_left = 1297.0 +offset_top = 20.0 +offset_right = 1377.0 +offset_bottom = 100.0 +theme_override_colors/font_color = Color(1, 1, 1, 1) +theme_override_font_sizes/font_size = 40 +theme_override_styles/hover = SubResource("StyleBoxFlat_CloseButton") +theme_override_styles/pressed = SubResource("StyleBoxFlat_CloseButton") +theme_override_styles/normal = SubResource("StyleBoxFlat_CloseButton") +text = "X" [connection signal="pressed" from="ScrollContainer/Grid/2048Game/2048GameButton" to="." method="_on_game_button_pressed"] [connection signal="pressed" from="ScrollContainer/Grid/PushBox/PushBoxButton" to="." method="_on_push_box_button_pressed"] diff --git a/Scene/BigPanel/PlayerRankingPanel.tscn b/Scene/BigPanel/PlayerRankingPanel.tscn index ea1954a..0a4a921 100644 --- a/Scene/BigPanel/PlayerRankingPanel.tscn +++ b/Scene/BigPanel/PlayerRankingPanel.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=9 format=3 uid="uid://dbfqu87627yg6"] +[gd_scene load_steps=8 format=3 uid="uid://dbfqu87627yg6"] [ext_resource type="Script" uid="uid://fk4q3x6uqydd" path="res://Script/BigPanel/PlayerRankingPanel.gd" id="1_efhd6"] [ext_resource type="PackedScene" uid="uid://crd28qnymob7" path="res://GUI/PlayerRankingItem.tscn" id="1_xwp76"] @@ -16,24 +16,9 @@ corner_radius_bottom_right = 25 corner_radius_bottom_left = 25 corner_detail = 20 shadow_color = Color(0.8, 0.6, 0.2, 0.4) -shadow_size = 20 +shadow_size = 30 shadow_offset = Vector2(5, 5) -[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_Button"] -bg_color = Color(0.2, 0.25, 0.4, 0.9) -border_width_left = 2 -border_width_top = 2 -border_width_right = 2 -border_width_bottom = 2 -border_color = Color(0.6, 0.45, 0.15, 0.8) -corner_radius_top_left = 15 -corner_radius_top_right = 15 -corner_radius_bottom_right = 15 -corner_radius_bottom_left = 15 -shadow_color = Color(0.8, 0.6, 0.2, 0.3) -shadow_size = 8 -shadow_offset = Vector2(3, 3) - [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ButtonHover"] bg_color = Color(0.3, 0.35, 0.55, 1) border_width_left = 2 @@ -49,6 +34,21 @@ shadow_color = Color(0.9, 0.7, 0.3, 0.5) shadow_size = 12 shadow_offset = Vector2(4, 4) +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_Button"] +bg_color = Color(0.2, 0.25, 0.4, 0.9) +border_width_left = 2 +border_width_top = 2 +border_width_right = 2 +border_width_bottom = 2 +border_color = Color(0.6, 0.45, 0.15, 0.8) +corner_radius_top_left = 15 +corner_radius_top_right = 15 +corner_radius_bottom_right = 15 +corner_radius_bottom_left = 15 +shadow_color = Color(0.8, 0.6, 0.2, 0.3) +shadow_size = 8 +shadow_offset = Vector2(3, 3) + [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ButtonPressed"] bg_color = Color(0.15, 0.2, 0.35, 1) border_width_left = 2 @@ -91,20 +91,20 @@ offset_left = -171.0 offset_top = -109.0 offset_right = 1582.0 offset_bottom = 792.0 -color = Color(0.05, 0.08, 0.15, 0.4) +color = Color(0.839723, 0.846103, 0.999009, 0.298039) [node name="RegisterPlayerNum" type="Label" parent="."] self_modulate = Color(0.9, 0.7, 0.3, 1) layout_mode = 0 -offset_left = 841.25 -offset_top = 18.75 -offset_right = 991.25 -offset_bottom = 60.75 -theme_override_colors/font_outline_color = Color(0.1, 0.1, 0.2, 1) +offset_left = 841.111 +offset_top = 32.2222 +offset_right = 991.111 +offset_bottom = 74.2222 theme_override_colors/font_shadow_color = Color(0.8, 0.6, 0.2, 0.6) -theme_override_constants/outline_size = 8 +theme_override_colors/font_outline_color = Color(0.1, 0.1, 0.2, 1) theme_override_constants/shadow_offset_x = 2 theme_override_constants/shadow_offset_y = 2 +theme_override_constants/outline_size = 8 theme_override_font_sizes/font_size = 30 text = "注册人数:" @@ -133,11 +133,11 @@ offset_left = 95.0 offset_top = 21.25 offset_right = 378.0 offset_bottom = 78.25 -theme_override_colors/font_color = Color(0.9, 0.8, 0.5, 1) theme_override_colors/font_placeholder_color = Color(0.6, 0.5, 0.3, 0.8) +theme_override_colors/font_color = Color(0.9, 0.8, 0.5, 1) theme_override_font_sizes/font_size = 32 -theme_override_styles/normal = SubResource("StyleBoxFlat_Button") theme_override_styles/focus = SubResource("StyleBoxFlat_ButtonHover") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button") placeholder_text = "输入要搜索的人" [node name="RefreshButton" type="Button" parent="."] @@ -148,13 +148,10 @@ offset_top = 21.25 offset_right = 94.25 offset_bottom = 78.25 theme_override_colors/font_color = Color(0.95, 0.8, 0.4, 1) -theme_override_colors/font_shadow_color = Color(0.1, 0.1, 0.2, 0.8) -theme_override_constants/shadow_offset_x = 2 -theme_override_constants/shadow_offset_y = 2 theme_override_font_sizes/font_size = 32 -theme_override_styles/normal = SubResource("StyleBoxFlat_Button") theme_override_styles/hover = SubResource("StyleBoxFlat_ButtonHover") theme_override_styles/pressed = SubResource("StyleBoxFlat_ButtonPressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button") text = "刷新" [node name="SearchButton" type="Button" parent="."] @@ -165,13 +162,10 @@ offset_top = 21.25 offset_right = 455.5 offset_bottom = 78.25 theme_override_colors/font_color = Color(0.95, 0.8, 0.4, 1) -theme_override_colors/font_shadow_color = Color(0.1, 0.1, 0.2, 0.8) -theme_override_constants/shadow_offset_x = 2 -theme_override_constants/shadow_offset_y = 2 theme_override_font_sizes/font_size = 32 -theme_override_styles/normal = SubResource("StyleBoxFlat_Button") theme_override_styles/hover = SubResource("StyleBoxFlat_ButtonHover") theme_override_styles/pressed = SubResource("StyleBoxFlat_ButtonPressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button") text = "搜索" [node name="QuitButton" type="Button" parent="."] @@ -181,14 +175,11 @@ offset_left = 1326.25 offset_top = 16.25 offset_right = 1383.25 offset_bottom = 73.25 -theme_override_colors/font_color = Color(1, 0.7, 0.3, 1) -theme_override_colors/font_shadow_color = Color(0.1, 0.1, 0.2, 0.8) -theme_override_constants/shadow_offset_x = 2 -theme_override_constants/shadow_offset_y = 2 +theme_override_colors/font_color = Color(1, 0, 0.301961, 1) theme_override_font_sizes/font_size = 35 -theme_override_styles/normal = SubResource("StyleBoxFlat_Button") theme_override_styles/hover = SubResource("StyleBoxFlat_ButtonHover") theme_override_styles/pressed = SubResource("StyleBoxFlat_ButtonPressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button") text = "X" [node name="FiterAndSortHBox" type="HBoxContainer" parent="."] @@ -214,14 +205,11 @@ vertical_alignment = 1 self_modulate = Color(1, 0.9, 0.3, 1) custom_minimum_size = Vector2(158, 57) layout_mode = 2 -theme_override_colors/font_color = Color(0.2, 0.15, 0.05, 1) -theme_override_colors/font_shadow_color = Color(1, 0.8, 0.2, 0.6) -theme_override_constants/shadow_offset_x = 1 -theme_override_constants/shadow_offset_y = 1 +theme_override_colors/font_color = Color(1, 0.823529, 0.0627451, 1) theme_override_font_sizes/font_size = 28 -theme_override_styles/normal = SubResource("StyleBoxFlat_Button") theme_override_styles/hover = SubResource("StyleBoxFlat_ButtonHover") theme_override_styles/pressed = SubResource("StyleBoxFlat_ButtonPressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button") text = "钱币" [node name="SeedSortBtn" type="Button" parent="FiterAndSortHBox"] @@ -229,27 +217,21 @@ self_modulate = Color(0.4, 0.8, 0.5, 1) custom_minimum_size = Vector2(158, 57) layout_mode = 2 theme_override_colors/font_color = Color(0.9, 0.8, 0.4, 1) -theme_override_colors/font_shadow_color = Color(0.1, 0.1, 0.2, 0.8) -theme_override_constants/shadow_offset_x = 1 -theme_override_constants/shadow_offset_y = 1 theme_override_font_sizes/font_size = 28 -theme_override_styles/normal = SubResource("StyleBoxFlat_Button") theme_override_styles/hover = SubResource("StyleBoxFlat_ButtonHover") theme_override_styles/pressed = SubResource("StyleBoxFlat_ButtonPressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button") text = "种子数" [node name="LevelSortBtn" type="Button" parent="FiterAndSortHBox"] self_modulate = Color(0.3, 0.7, 0.9, 1) custom_minimum_size = Vector2(158, 57) layout_mode = 2 -theme_override_colors/font_color = Color(0.9, 0.8, 0.4, 1) -theme_override_colors/font_shadow_color = Color(0.1, 0.1, 0.2, 0.8) -theme_override_constants/shadow_offset_x = 1 -theme_override_constants/shadow_offset_y = 1 +theme_override_colors/font_color = Color(0.211765, 0.713726, 1, 1) theme_override_font_sizes/font_size = 28 -theme_override_styles/normal = SubResource("StyleBoxFlat_Button") theme_override_styles/hover = SubResource("StyleBoxFlat_ButtonHover") theme_override_styles/pressed = SubResource("StyleBoxFlat_ButtonPressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button") text = "等级" [node name="OnlineTimeSortBtn" type="Button" parent="FiterAndSortHBox"] @@ -257,27 +239,21 @@ self_modulate = Color(0.8, 0.5, 0.3, 1) custom_minimum_size = Vector2(158, 57) layout_mode = 2 theme_override_colors/font_color = Color(0.9, 0.8, 0.4, 1) -theme_override_colors/font_shadow_color = Color(0.1, 0.1, 0.2, 0.8) -theme_override_constants/shadow_offset_x = 1 -theme_override_constants/shadow_offset_y = 1 theme_override_font_sizes/font_size = 26 -theme_override_styles/normal = SubResource("StyleBoxFlat_Button") theme_override_styles/hover = SubResource("StyleBoxFlat_ButtonHover") theme_override_styles/pressed = SubResource("StyleBoxFlat_ButtonPressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button") text = "在线时长" [node name="LoginTimeSortBtn" type="Button" parent="FiterAndSortHBox"] self_modulate = Color(0.5, 0.8, 0.4, 1) custom_minimum_size = Vector2(158, 57) layout_mode = 2 -theme_override_colors/font_color = Color(0.9, 0.8, 0.4, 1) -theme_override_colors/font_shadow_color = Color(0.1, 0.1, 0.2, 0.8) -theme_override_constants/shadow_offset_x = 1 -theme_override_constants/shadow_offset_y = 1 +theme_override_colors/font_color = Color(0.340704, 0.882235, 1, 1) theme_override_font_sizes/font_size = 26 -theme_override_styles/normal = SubResource("StyleBoxFlat_Button") theme_override_styles/hover = SubResource("StyleBoxFlat_ButtonHover") theme_override_styles/pressed = SubResource("StyleBoxFlat_ButtonPressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button") text = "登录时间" [node name="LikeNumSortBtn" type="Button" parent="FiterAndSortHBox"] @@ -285,27 +261,21 @@ self_modulate = Color(0.9, 0.4, 0.7, 1) custom_minimum_size = Vector2(158, 57) layout_mode = 2 theme_override_colors/font_color = Color(0.9, 0.8, 0.4, 1) -theme_override_colors/font_shadow_color = Color(0.1, 0.1, 0.2, 0.8) -theme_override_constants/shadow_offset_x = 1 -theme_override_constants/shadow_offset_y = 1 theme_override_font_sizes/font_size = 28 -theme_override_styles/normal = SubResource("StyleBoxFlat_Button") theme_override_styles/hover = SubResource("StyleBoxFlat_ButtonHover") theme_override_styles/pressed = SubResource("StyleBoxFlat_ButtonPressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button") text = "点赞数" [node name="IsOnlineSortBtn" type="Button" parent="FiterAndSortHBox"] self_modulate = Color(0.6, 0.6, 0.6, 1) custom_minimum_size = Vector2(158, 57) layout_mode = 2 -theme_override_colors/font_color = Color(0.9, 0.8, 0.4, 1) -theme_override_colors/font_shadow_color = Color(0.1, 0.1, 0.2, 0.8) -theme_override_constants/shadow_offset_x = 1 -theme_override_constants/shadow_offset_y = 1 +theme_override_colors/font_color = Color(0.961312, 0.707781, 0.906286, 1) theme_override_font_sizes/font_size = 26 -theme_override_styles/normal = SubResource("StyleBoxFlat_Button") theme_override_styles/hover = SubResource("StyleBoxFlat_ButtonHover") theme_override_styles/pressed = SubResource("StyleBoxFlat_ButtonPressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button") text = "在线情况" [node name="Scroll" type="ScrollContainer" parent="."] diff --git a/Scene/BigPanel/SpecialFarmPanel.tscn b/Scene/BigPanel/SpecialFarmPanel.tscn index 42e972d..ac4fdbc 100644 --- a/Scene/BigPanel/SpecialFarmPanel.tscn +++ b/Scene/BigPanel/SpecialFarmPanel.tscn @@ -1,15 +1,80 @@ -[gd_scene load_steps=4 format=3 uid="uid://byxhjyyaahs6q"] +[gd_scene load_steps=9 format=3 uid="uid://byxhjyyaahs6q"] [ext_resource type="Texture2D" uid="uid://ywdg7xgq7hm8" path="res://assets/装饰物图片/道具背包.webp" id="1_mv0g4"] [ext_resource type="Script" uid="uid://btm2je8pg7rgk" path="res://Script/BigPanel/SpecialFarmPanel.gd" id="1_n2mxy"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7i23t"] -border_width_left = 15 -border_width_top = 15 -border_width_right = 15 -border_width_bottom = 15 +bg_color = Color(0.752836, 0.587098, 0.400951, 0.9) +border_width_left = 8 +border_width_top = 8 +border_width_right = 8 +border_width_bottom = 8 +border_color = Color(0.364706, 0.254902, 0.156863, 1) +corner_radius_top_left = 25 +corner_radius_top_right = 25 +corner_radius_bottom_right = 25 +corner_radius_bottom_left = 25 corner_detail = 20 -shadow_size = 20 +shadow_color = Color(0.2, 0.15, 0.1, 0.5) +shadow_size = 25 +shadow_offset = Vector2(5, 5) + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_CloseButton"] +bg_color = Color(0.8, 0.2, 0.2, 0.9) +border_width_left = 2 +border_width_top = 2 +border_width_right = 2 +border_width_bottom = 2 +border_color = Color(0.6, 0.15, 0.15, 1) +corner_radius_top_left = 10 +corner_radius_top_right = 10 +corner_radius_bottom_right = 10 +corner_radius_bottom_left = 10 + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_n2mxy"] +bg_color = Color(0.945056, 0.846293, 0.608526, 1) +corner_radius_top_left = 10 +corner_radius_top_right = 10 +corner_radius_bottom_right = 10 +corner_radius_bottom_left = 10 +corner_detail = 20 +shadow_color = Color(0.0823529, 0.0823529, 0.0823529, 1) + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_Button_Hover"] +bg_color = Color(0.8, 0.65098, 0.470588, 1) +border_width_left = 3 +border_width_top = 3 +border_width_right = 3 +border_width_bottom = 3 +border_color = Color(0.45098, 0.364706, 0.254902, 1) +corner_radius_top_left = 15 +corner_radius_top_right = 15 +corner_radius_bottom_right = 15 +corner_radius_bottom_left = 15 + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_Button_Pressed"] +bg_color = Color(0.564706, 0.45098, 0.317647, 1) +border_width_left = 3 +border_width_top = 3 +border_width_right = 3 +border_width_bottom = 3 +border_color = Color(0.364706, 0.294118, 0.203922, 1) +corner_radius_top_left = 15 +corner_radius_top_right = 15 +corner_radius_bottom_right = 15 +corner_radius_bottom_left = 15 + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_Button_Normal"] +bg_color = Color(0.678431, 0.54902, 0.392157, 1) +border_width_left = 3 +border_width_top = 3 +border_width_right = 3 +border_width_bottom = 3 +border_color = Color(0.45098, 0.364706, 0.254902, 1) +corner_radius_top_left = 15 +corner_radius_top_right = 15 +corner_radius_bottom_right = 15 +corner_radius_bottom_left = 15 [node name="SpecialFarmPanel" type="Panel"] offset_right = 1399.0 @@ -17,39 +82,44 @@ offset_bottom = 720.0 theme_override_styles/panel = SubResource("StyleBoxFlat_7i23t") script = ExtResource("1_n2mxy") -[node name="QuitButton" type="Button" parent="."] -custom_minimum_size = Vector2(80, 80) -layout_mode = 0 -offset_left = 1303.0 -offset_top = 17.0 -offset_right = 1383.0 -offset_bottom = 97.0 -theme_override_font_sizes/font_size = 50 -text = "X" - [node name="Title" type="Label" parent="."] layout_mode = 0 offset_top = 17.0 offset_right = 1401.0 offset_bottom = 86.0 -theme_override_colors/font_color = Color(0.560784, 1, 0, 1) +theme_override_colors/font_color = Color(1, 0.901961, 0.498039, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 20 theme_override_font_sizes/font_size = 50 -text = "神秘农场" +text = "🌾 神秘农场探索 🏞️" horizontal_alignment = 1 vertical_alignment = 1 +[node name="QuitButton" type="Button" parent="."] +custom_minimum_size = Vector2(80, 80) +layout_mode = 0 +offset_left = 1297.0 +offset_top = 20.0 +offset_right = 1377.0 +offset_bottom = 100.0 +theme_override_colors/font_color = Color(1, 1, 1, 1) +theme_override_font_sizes/font_size = 50 +theme_override_styles/hover = SubResource("StyleBoxFlat_CloseButton") +theme_override_styles/pressed = SubResource("StyleBoxFlat_CloseButton") +theme_override_styles/normal = SubResource("StyleBoxFlat_CloseButton") +text = "X" + [node name="ScrollContainer" type="ScrollContainer" parent="."] layout_mode = 0 -offset_left = 15.0 -offset_top = 88.0 -offset_right = 1384.0 -offset_bottom = 707.0 +offset_left = 48.0 +offset_top = 116.0 +offset_right = 1352.0 +offset_bottom = 674.0 +theme_override_styles/panel = SubResource("StyleBoxFlat_n2mxy") horizontal_scroll_mode = 0 [node name="Grid" type="GridContainer" parent="ScrollContainer"] @@ -64,14 +134,15 @@ alignment = 1 [node name="GameTitle" type="Label" parent="ScrollContainer/Grid/FlowerFarm"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 0.8, 0.6, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 35 -text = "花卉农场" +text = "🌸 花卉农场 🌺" horizontal_alignment = 1 vertical_alignment = 1 @@ -81,8 +152,12 @@ texture = ExtResource("1_mv0g4") [node name="FlowerFarmButton" type="Button" parent="ScrollContainer/Grid/FlowerFarm"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 30 -text = "点击访问" +theme_override_styles/hover = SubResource("StyleBoxFlat_Button_Hover") +theme_override_styles/pressed = SubResource("StyleBoxFlat_Button_Pressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button_Normal") +text = "🌻欣赏花园" [node name="FruitFarm" type="VBoxContainer" parent="ScrollContainer/Grid"] layout_mode = 2 @@ -90,14 +165,15 @@ alignment = 1 [node name="GameTitle" type="Label" parent="ScrollContainer/Grid/FruitFarm"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 0.8, 0.6, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 35 -text = "瓜果飘香" +text = "🍎 瓜果飘香 🍓" horizontal_alignment = 1 vertical_alignment = 1 @@ -107,8 +183,12 @@ texture = ExtResource("1_mv0g4") [node name="FruitFarmButton" type="Button" parent="ScrollContainer/Grid/FruitFarm"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 30 -text = "点击访问" +theme_override_styles/hover = SubResource("StyleBoxFlat_Button_Hover") +theme_override_styles/pressed = SubResource("StyleBoxFlat_Button_Pressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button_Normal") +text = "🥕采摘果实" [node name="HybridFarm" type="VBoxContainer" parent="ScrollContainer/Grid"] layout_mode = 2 @@ -116,14 +196,15 @@ alignment = 1 [node name="GameTitle" type="Label" parent="ScrollContainer/Grid/HybridFarm"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 0.8, 0.6, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 35 -text = "杂交基地" +text = "🧬 杂交基地 🌱" horizontal_alignment = 1 vertical_alignment = 1 @@ -133,8 +214,12 @@ texture = ExtResource("1_mv0g4") [node name="HybridFarmButton" type="Button" parent="ScrollContainer/Grid/HybridFarm"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 30 -text = "点击访问" +theme_override_styles/hover = SubResource("StyleBoxFlat_Button_Hover") +theme_override_styles/pressed = SubResource("StyleBoxFlat_Button_Pressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button_Normal") +text = "🔬研究培育" [node name="LuckyFarm" type="VBoxContainer" parent="ScrollContainer/Grid"] layout_mode = 2 @@ -142,14 +227,15 @@ alignment = 1 [node name="GameTitle" type="Label" parent="ScrollContainer/Grid/LuckyFarm"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 0.8, 0.6, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 35 -text = "幸运农场" +text = "🍀 幸运农场 ✨" horizontal_alignment = 1 vertical_alignment = 1 @@ -159,8 +245,12 @@ texture = ExtResource("1_mv0g4") [node name="LuckyFarmButton" type="Button" parent="ScrollContainer/Grid/LuckyFarm"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 30 -text = "点击访问" +theme_override_styles/hover = SubResource("StyleBoxFlat_Button_Hover") +theme_override_styles/pressed = SubResource("StyleBoxFlat_Button_Pressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button_Normal") +text = "🎲试试运气" [node name="RiceFarm" type="VBoxContainer" parent="ScrollContainer/Grid"] layout_mode = 2 @@ -168,14 +258,15 @@ alignment = 1 [node name="GameTitle" type="Label" parent="ScrollContainer/Grid/RiceFarm"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 0.8, 0.6, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 35 -text = "稻香" +text = "🌾 稻香田园 🍚" horizontal_alignment = 1 vertical_alignment = 1 @@ -185,8 +276,12 @@ texture = ExtResource("1_mv0g4") [node name="RiceFarmButton" type="Button" parent="ScrollContainer/Grid/RiceFarm"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 30 -text = "点击访问" +theme_override_styles/hover = SubResource("StyleBoxFlat_Button_Hover") +theme_override_styles/pressed = SubResource("StyleBoxFlat_Button_Pressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button_Normal") +text = "🌾收割稻谷" [node name="WheatFarm" type="VBoxContainer" parent="ScrollContainer/Grid"] layout_mode = 2 @@ -194,14 +289,15 @@ alignment = 1 [node name="GameTitle" type="Label" parent="ScrollContainer/Grid/WheatFarm"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 0.8, 0.6, 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_colors/font_outline_color = Color(0.180392, 0.121569, 0.0745098, 1) theme_override_constants/shadow_offset_x = 3 theme_override_constants/shadow_offset_y = 3 theme_override_constants/outline_size = 15 theme_override_constants/shadow_outline_size = 15 theme_override_font_sizes/font_size = 35 -text = "小麦谷" +text = "🌾 小麦谷 🥖" horizontal_alignment = 1 vertical_alignment = 1 @@ -211,8 +307,12 @@ texture = ExtResource("1_mv0g4") [node name="WheatFarmButton" type="Button" parent="ScrollContainer/Grid/WheatFarm"] layout_mode = 2 +theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 30 -text = "点击访问" +theme_override_styles/hover = SubResource("StyleBoxFlat_Button_Hover") +theme_override_styles/pressed = SubResource("StyleBoxFlat_Button_Pressed") +theme_override_styles/normal = SubResource("StyleBoxFlat_Button_Normal") +text = "🌾收割麦子" [connection signal="pressed" from="QuitButton" to="." method="_on_quit_button_pressed"] [connection signal="pressed" from="ScrollContainer/Grid/FlowerFarm/FlowerFarmButton" to="." method="_on_flower_farm_button_pressed"]