From e6a0f41ec899bf859101815a74a3027401728da3 Mon Sep 17 00:00:00 2001 From: yangwen Date: Thu, 19 Jun 2025 19:39:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=AD=97=E4=BD=93=E5=8A=A0?= =?UTF-8?q?=E7=B2=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/resources/CommonTips.lh | 15 +- assets/resources/GameDone_DC.lh | 3 - assets/resources/GameDone_DC_H.lh | 3 - assets/resources/GameDone_Normal.lh | 7 +- assets/resources/GameDone_Normal_H.lh | 3 - assets/resources/GameOver.lh | 4 - assets/resources/GameOver_H.lh | 16 +- assets/resources/GamePause.lh | 3 - assets/resources/GamePause_H.lh | 17 +- assets/resources/Home.lh | 250 ++++++++++++++++++++------ src/views/Home.ts | 12 +- 11 files changed, 221 insertions(+), 112 deletions(-) diff --git a/assets/resources/CommonTips.lh b/assets/resources/CommonTips.lh index 094c96b..738c686 100644 --- a/assets/resources/CommonTips.lh +++ b/assets/resources/CommonTips.lh @@ -3,8 +3,8 @@ "_$id": "wjk0u6h3", "_$type": "Box", "name": "CommonTips", - "width": 1920, - "height": 1080, + "width": 1080, + "height": 1920, "_mouseState": 2, "drawCallOptimize": true, "left": 0, @@ -42,8 +42,8 @@ "name": "Image", "x": -100, "y": -100, - "width": 2120, - "height": 1280, + "width": 1280, + "height": 2120, "alpha": 0.6, "left": -100, "right": -100, @@ -56,8 +56,8 @@ "_$id": "r463so4u", "_$type": "Box", "name": "center", - "x": 960, - "y": 540, + "x": 540, + "y": 960, "width": 960, "height": 520, "anchorX": 0.5, @@ -145,7 +145,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 45, "color": "rgba(29, 92, 220, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -229,7 +228,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 45, "color": "rgba(255, 255, 255, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -310,7 +308,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 54, "color": "rgba(45, 49, 56, 1)", - "bold": true, "align": "center", "valign": "middle", "strokeColor": "rgba(45, 49, 56, 1)" diff --git a/assets/resources/GameDone_DC.lh b/assets/resources/GameDone_DC.lh index a2ecd54..a32c287 100644 --- a/assets/resources/GameDone_DC.lh +++ b/assets/resources/GameDone_DC.lh @@ -442,7 +442,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(255, 255, 255, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -498,7 +497,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(29, 92, 220, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -580,7 +578,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(255, 255, 255, 1)", - "bold": true, "align": "center", "valign": "middle" } diff --git a/assets/resources/GameDone_DC_H.lh b/assets/resources/GameDone_DC_H.lh index fc590d9..2bde6fd 100644 --- a/assets/resources/GameDone_DC_H.lh +++ b/assets/resources/GameDone_DC_H.lh @@ -435,7 +435,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(255, 255, 255, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -490,7 +489,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(29, 92, 220, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -571,7 +569,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(255, 255, 255, 1)", - "bold": true, "align": "center", "valign": "middle" } diff --git a/assets/resources/GameDone_Normal.lh b/assets/resources/GameDone_Normal.lh index c098427..fe30b10 100644 --- a/assets/resources/GameDone_Normal.lh +++ b/assets/resources/GameDone_Normal.lh @@ -225,9 +225,9 @@ "_$id": "bp5q98ww", "_$type": "Label", "name": "Label", - "y": 226, + "y": 216, "width": 984, - "height": 100, + "height": 120, "centerX": 0, "centerY": -147, "text": "Congratulations!", @@ -446,7 +446,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(255, 255, 255, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -502,7 +501,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(29, 92, 220, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -585,7 +583,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(255, 255, 255, 1)", - "bold": true, "align": "center", "valign": "middle" } diff --git a/assets/resources/GameDone_Normal_H.lh b/assets/resources/GameDone_Normal_H.lh index d4e0285..4fee260 100644 --- a/assets/resources/GameDone_Normal_H.lh +++ b/assets/resources/GameDone_Normal_H.lh @@ -471,7 +471,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(255, 255, 255, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -526,7 +525,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(29, 92, 220, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -579,7 +577,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(255, 255, 255, 1)", - "bold": true, "align": "center", "valign": "middle" } diff --git a/assets/resources/GameOver.lh b/assets/resources/GameOver.lh index c4eebe1..0277391 100644 --- a/assets/resources/GameOver.lh +++ b/assets/resources/GameOver.lh @@ -226,7 +226,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(255, 255, 255, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -281,7 +280,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(29, 92, 220, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -334,7 +332,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(29, 92, 220, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -356,7 +353,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 72, "color": "rgba(0, 0, 0, 1)", - "bold": true, "align": "center", "valign": "middle" }, diff --git a/assets/resources/GameOver_H.lh b/assets/resources/GameOver_H.lh index 6f5516f..3150dbd 100644 --- a/assets/resources/GameOver_H.lh +++ b/assets/resources/GameOver_H.lh @@ -3,8 +3,8 @@ "_$id": "74k3rws3", "_$type": "Box", "name": "GameOver_H", - "width": 1920, - "height": 1080, + "width": 1080, + "height": 1920, "_mouseState": 2, "drawCallOptimize": true, "left": 0, @@ -36,8 +36,8 @@ "name": "Image", "x": -100, "y": -100, - "width": 2120, - "height": 1280, + "width": 1280, + "height": 2120, "alpha": 0.6, "left": -100, "right": -100, @@ -50,8 +50,8 @@ "_$id": "ak02a9xq", "_$type": "Box", "name": "center", - "x": 960, - "y": 540, + "x": 540, + "y": 960, "width": 960, "height": 630, "anchorX": 0.5, @@ -179,7 +179,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 45, "color": "rgba(255, 255, 255, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -242,7 +241,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 45, "color": "rgba(29, 92, 220, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -296,7 +294,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 45, "color": "rgba(29, 92, 220, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -320,7 +317,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 54, "color": "rgba(0, 0, 0, 1)", - "bold": true, "align": "center", "valign": "middle" }, diff --git a/assets/resources/GamePause.lh b/assets/resources/GamePause.lh index 47a726a..c39313d 100644 --- a/assets/resources/GamePause.lh +++ b/assets/resources/GamePause.lh @@ -165,7 +165,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(255, 255, 255, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -218,7 +217,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 60, "color": "rgba(29, 92, 220, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -240,7 +238,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 72, "color": "rgba(45, 49, 56, 1)", - "bold": true, "align": "center", "valign": "middle" }, diff --git a/assets/resources/GamePause_H.lh b/assets/resources/GamePause_H.lh index 744dd12..0c7e53c 100644 --- a/assets/resources/GamePause_H.lh +++ b/assets/resources/GamePause_H.lh @@ -3,8 +3,8 @@ "_$id": "51qgrknl", "_$type": "Box", "name": "GamePause_H", - "width": 1920, - "height": 1080, + "width": 1080, + "height": 1920, "_mouseState": 2, "drawCallOptimize": true, "left": 0, @@ -36,8 +36,8 @@ "name": "Image", "x": -100, "y": -100, - "width": 2120, - "height": 1280, + "width": 1280, + "height": 2120, "alpha": 0.6, "left": -100, "right": -100, @@ -50,8 +50,8 @@ "_$id": "2oq6bad5", "_$type": "Box", "name": "center", - "x": 960, - "y": 540, + "x": 540, + "y": 960, "width": 960, "height": 522, "anchorX": 0.5, @@ -138,7 +138,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 45, "color": "rgba(29, 92, 220, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -220,7 +219,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 45, "color": "rgba(255, 255, 255, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -242,7 +240,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 54, "color": "rgba(45, 49, 56, 1)", - "bold": true, "align": "center", "valign": "middle" }, @@ -295,7 +292,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 45, "color": "rgba(45, 49, 56, 1)", - "bold": true, "align": "center", "valign": "middle" } @@ -338,7 +334,6 @@ "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "fontSize": 45, "color": "rgba(45, 49, 56, 1)", - "bold": true, "align": "center", "valign": "middle" } diff --git a/assets/resources/Home.lh b/assets/resources/Home.lh index 3ad471e..4dbe60f 100644 --- a/assets/resources/Home.lh +++ b/assets/resources/Home.lh @@ -27,13 +27,13 @@ "_$ref": "zbppj6k0" }, "btn_play": { - "_$ref": "ttv6dk1v" + "_$ref": "lhrgg9o8" }, "btn_continue": { - "_$ref": "ofvmzh0x" + "_$ref": "cjibqmuv" }, "btn_more": { - "_$ref": "8mgjn0da" + "_$ref": "7rz2zjd7" }, "btn_new_blue": { "_$ref": "6irhm6t7" @@ -58,13 +58,42 @@ "top": 150, "centerX": 0, "_$child": [ + { + "_$id": "4gdjhw3f", + "_$type": "Sprite", + "name": "sdw", + "width": 936, + "height": 468, + "alpha": 0.08, + "mouseThrough": true, + "_gcmds": [ + { + "_$type": "DrawRoundRectCmd", + "lt": 36, + "rt": 36, + "lb": 36, + "rb": 36, + "lineWidth": 1, + "fillColor": "rgba(29, 92, 220, 1)" + } + ], + "_filters": [ + { + "_$type": "GlowFilter", + "offX": 0, + "offY": 4, + "blur": 8, + "color": "#1d5cdc" + } + ] + }, { "_$id": "7270vjom", "_$type": "Image", "name": "bg", "width": 936, "height": 468, - "skin": "res://07b90718-84ee-4924-9098-8f0ee3663d92", + "skin": "res://342d91e6-0434-4d52-b16c-3c536060f881", "color": "#ffffff" }, { @@ -101,25 +130,24 @@ "valign": "middle" }, { - "_$id": "ttv6dk1v", - "_$type": "Sprite", + "_$id": "h6dakob0", + "_$type": "Image", + "name": "trophy", + "x": 468, + "width": 468, + "height": 468, + "right": 0, + "skin": "res://07b90718-84ee-4924-9098-8f0ee3663d92", + "color": "#ffffff" + }, + { + "_$id": "lhrgg9o8", + "_$type": "Box", "name": "btn_play", "x": 56, "y": 318, "width": 195, "height": 96, - "visible": false, - "_gcmds": [ - { - "_$type": "DrawRoundRectCmd", - "lt": 24, - "rt": 24, - "lb": 24, - "rb": 24, - "lineWidth": 1, - "fillColor": "#FFFFFF" - } - ], "_$comp": [ { "_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17", @@ -128,6 +156,54 @@ } ], "_$child": [ + { + "_$id": "jz7snz28", + "_$type": "Sprite", + "name": "sdw", + "width": 195, + "height": 96, + "alpha": 0.08, + "mouseThrough": true, + "_gcmds": [ + { + "_$type": "DrawRoundRectCmd", + "lt": 24, + "rt": 24, + "lb": 24, + "rb": 24, + "lineWidth": 1, + "fillColor": "#000000" + } + ], + "_filters": [ + { + "_$type": "GlowFilter", + "offX": 0, + "offY": 4, + "blur": 8, + "color": "#000000" + } + ] + }, + { + "_$id": "ttv6dk1v", + "_$type": "Sprite", + "name": "Sprite", + "width": 195, + "height": 96, + "mouseThrough": true, + "_gcmds": [ + { + "_$type": "DrawRoundRectCmd", + "lt": 24, + "rt": 24, + "lb": 24, + "rb": 24, + "lineWidth": 1, + "fillColor": "#FFFFFF" + } + ] + }, { "_$id": "8s2b3obv", "_$type": "Label", @@ -146,25 +222,14 @@ ] }, { - "_$id": "ofvmzh0x", - "_$type": "Sprite", + "_$id": "cjibqmuv", + "_$type": "Box", "name": "btn_continue", "x": 56, "y": 318, "width": 309, "height": 96, "visible": false, - "_gcmds": [ - { - "_$type": "DrawRoundRectCmd", - "lt": 24, - "rt": 24, - "lb": 24, - "rb": 24, - "lineWidth": 1, - "fillColor": "#FFFFFF" - } - ], "_$comp": [ { "_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17", @@ -173,6 +238,54 @@ } ], "_$child": [ + { + "_$id": "ldvu1z8n", + "_$type": "Sprite", + "name": "sdw", + "width": 309, + "height": 96, + "alpha": 0.08, + "mouseThrough": true, + "_gcmds": [ + { + "_$type": "DrawRoundRectCmd", + "lt": 24, + "rt": 24, + "lb": 24, + "rb": 24, + "lineWidth": 1, + "fillColor": "#000000" + } + ], + "_filters": [ + { + "_$type": "GlowFilter", + "offX": 0, + "offY": 4, + "blur": 8, + "color": "#000000" + } + ] + }, + { + "_$id": "mmkr2ncz", + "_$type": "Sprite", + "name": "Sprite", + "width": 309, + "height": 96, + "mouseThrough": true, + "_gcmds": [ + { + "_$type": "DrawRoundRectCmd", + "lt": 24, + "rt": 24, + "lb": 24, + "rb": 24, + "lineWidth": 1, + "fillColor": "#FFFFFF" + } + ] + }, { "_$id": "2ou1bw71", "_$type": "Label", @@ -191,24 +304,14 @@ ] }, { - "_$id": "8mgjn0da", - "_$type": "Sprite", + "_$id": "7rz2zjd7", + "_$type": "Box", "name": "btn_more", "x": 56, "y": 318, "width": 216, "height": 96, - "_gcmds": [ - { - "_$type": "DrawRoundRectCmd", - "lt": 24, - "rt": 24, - "lb": 24, - "rb": 24, - "lineWidth": 1, - "fillColor": "#FFFFFF" - } - ], + "visible": false, "_$comp": [ { "_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17", @@ -217,6 +320,54 @@ } ], "_$child": [ + { + "_$id": "ttvlua8e", + "_$type": "Sprite", + "name": "sdw", + "width": 216, + "height": 96, + "alpha": 0.08, + "mouseThrough": true, + "_gcmds": [ + { + "_$type": "DrawRoundRectCmd", + "lt": 24, + "rt": 24, + "lb": 24, + "rb": 24, + "lineWidth": 1, + "fillColor": "#000000" + } + ], + "_filters": [ + { + "_$type": "GlowFilter", + "offX": 0, + "offY": 4, + "blur": 8, + "color": "#000000" + } + ] + }, + { + "_$id": "qz81llea", + "_$type": "Sprite", + "name": "Sprite", + "width": 216, + "height": 96, + "mouseThrough": true, + "_gcmds": [ + { + "_$type": "DrawRoundRectCmd", + "lt": 24, + "rt": 24, + "lb": 24, + "rb": 24, + "lineWidth": 1, + "fillColor": "#FFFFFF" + } + ] + }, { "_$id": "w132wbbv", "_$type": "Label", @@ -233,17 +384,6 @@ "valign": "middle" } ] - }, - { - "_$id": "h6dakob0", - "_$type": "Image", - "name": "trophy", - "x": 468, - "width": 468, - "height": 468, - "right": 0, - "skin": "res://07b90718-84ee-4924-9098-8f0ee3663d92", - "color": "#ffffff" } ] }, diff --git a/src/views/Home.ts b/src/views/Home.ts index 45bdc2d..3413f47 100644 --- a/src/views/Home.ts +++ b/src/views/Home.ts @@ -25,14 +25,14 @@ export class Home extends Laya.Script { @property(Laya.Label) public label_dc_date: Laya.Label - @property(Laya.Sprite) - public btn_play: Laya.Sprite + @property(Laya.Box) + public btn_play: Laya.Box - @property(Laya.Sprite) - public btn_continue: Laya.Sprite + @property(Laya.Box) + public btn_continue: Laya.Box - @property(Laya.Sprite) - public btn_more: Laya.Sprite + @property(Laya.Box) + public btn_more: Laya.Box @property(Laya.Box) public btn_new_blue: Laya.Box