继续补充UI细节

This commit is contained in:
2025-06-10 15:18:39 +08:00
parent c76bc49b09
commit 285a1f9efe
14 changed files with 94 additions and 105 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -1,6 +0,0 @@
{
"uuid": "a5777c44-0002-4629-b646-c0e8098c7f80",
"importer": {
"textureType": 2
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -1,6 +0,0 @@
{
"uuid": "e2b45239-87db-4cee-9dd7-a2d1762abc24",
"importer": {
"textureType": 2
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -65,7 +65,7 @@
"right": 0, "right": 0,
"top": 0, "top": 0,
"bottom": 0, "bottom": 0,
"skin": "res://07b90718-84ee-4924-9098-8f0ee3663d92", "skin": "res://2b008659-862a-4155-b094-ee87ba692be1",
"color": "#ffffff" "color": "#ffffff"
}, },
{ {
@@ -207,7 +207,7 @@
"height": 252, "height": 252,
"anchorX": 0.5, "anchorX": 0.5,
"anchorY": 0.5, "anchorY": 0.5,
"rotation": 20, "rotation": 15,
"skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72", "skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72",
"color": "#ffffff" "color": "#ffffff"
} }

View File

@@ -67,7 +67,7 @@
"right": 0, "right": 0,
"top": 0, "top": 0,
"bottom": 0, "bottom": 0,
"skin": "res://07b90718-84ee-4924-9098-8f0ee3663d92", "skin": "res://2b008659-862a-4155-b094-ee87ba692be1",
"color": "#ffffff" "color": "#ffffff"
}, },
{ {
@@ -182,22 +182,23 @@
"_$id": "yt8pnsra", "_$id": "yt8pnsra",
"_$type": "Box", "_$type": "Box",
"name": "stars", "name": "stars",
"y": 45, "x": 154,
"width": 948, "y": 25,
"height": 300, "width": 640,
"height": 260,
"centerX": 0, "centerX": 0,
"_$child": [ "_$child": [
{ {
"_$id": "dy7essc0", "_$id": "dy7essc0",
"_$type": "Image", "_$type": "Image",
"name": "check(1)", "name": "check(1)",
"x": 263, "x": 108,
"y": 128, "y": 152,
"width": 190, "width": 190,
"height": 190, "height": 190,
"anchorX": 0.5, "anchorX": 0.5,
"anchorY": 0.5, "anchorY": 0.5,
"rotation": -13, "rotation": -15,
"skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72", "skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72",
"color": "#ffffff" "color": "#ffffff"
}, },
@@ -205,9 +206,10 @@
"_$id": "zyknbizk", "_$id": "zyknbizk",
"_$type": "Image", "_$type": "Image",
"name": "check(2)", "name": "check(2)",
"x": 361, "x": 206,
"width": 226, "y": 14,
"height": 226, "width": 228,
"height": 228,
"centerX": 0, "centerX": 0,
"skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72", "skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72",
"color": "#ffffff" "color": "#ffffff"
@@ -216,13 +218,13 @@
"_$id": "51j0ljjv", "_$id": "51j0ljjv",
"_$type": "Image", "_$type": "Image",
"name": "check(3)", "name": "check(3)",
"x": 686.2802239279707, "x": 529,
"y": 120.47981945881025, "y": 157,
"width": 190, "width": 190,
"height": 190, "height": 190,
"anchorX": 0.5, "anchorX": 0.5,
"anchorY": 0.5, "anchorY": 0.5,
"rotation": 8, "rotation": 15,
"skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72", "skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72",
"color": "#ffffff" "color": "#ffffff"
} }

View File

@@ -327,19 +327,17 @@
] ]
} }
] ]
}
]
}, },
{ {
"_$id": "jkqju6ok", "_$id": "jkqju6ok",
"_$type": "Label", "_$type": "Label",
"name": "Label", "name": "Label",
"x": 592, "x": 76,
"y": 101, "y": 100,
"width": 736, "width": 736,
"height": 100, "height": 100,
"top": 100,
"centerX": 0, "centerX": 0,
"centerY": -389,
"text": "Game Over", "text": "Game Over",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 72, "fontSize": 72,
@@ -353,12 +351,12 @@
"_$id": "39t7ygbe", "_$id": "39t7ygbe",
"_$type": "Label", "_$type": "Label",
"name": "Label(1)", "name": "Label(1)",
"x": 606, "x": 90,
"y": 235, "y": 235,
"width": 709, "width": 709,
"height": 300, "height": 300,
"top": 235,
"centerX": 0, "centerX": 0,
"centerY": -155,
"text": "You lost the game because you made 3 mistakes", "text": "You lost the game because you made 3 mistakes",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 54, "fontSize": 54,
@@ -369,4 +367,6 @@
"padding": "0,0,0,0" "padding": "0,0,0,0"
} }
] ]
}
]
} }

View File

@@ -44194,10 +44194,10 @@
"y": 0, "y": 0,
"width": 1, "width": 1,
"height": 1, "height": 1,
"lt": 18, "lt": 16,
"rt": 18, "rt": 16,
"lb": 18, "lb": 16,
"rb": 18, "rb": 16,
"percent": true, "percent": true,
"lineWidth": 2, "lineWidth": 2,
"lineColor": "rgba(255, 255, 255, 1)", "lineColor": "rgba(255, 255, 255, 1)",
@@ -44264,10 +44264,10 @@
"y": 0, "y": 0,
"width": 1, "width": 1,
"height": 1, "height": 1,
"lt": 18, "lt": 16,
"rt": 18, "rt": 16,
"lb": 18, "lb": 16,
"rb": 18, "rb": 16,
"percent": true, "percent": true,
"lineWidth": 2, "lineWidth": 2,
"lineColor": "rgba(255, 255, 255, 1)", "lineColor": "rgba(255, 255, 255, 1)",

View File

@@ -3,8 +3,8 @@
"_$id": "r0x6htig", "_$id": "r0x6htig",
"_$type": "Box", "_$type": "Box",
"name": "DailyChallenge", "name": "DailyChallenge",
"width": 1080, "width": 1920,
"height": 1920, "height": 1080,
"_mouseState": 2, "_mouseState": 2,
"left": 0, "left": 0,
"right": 0, "right": 0,
@@ -87,7 +87,7 @@
"_$id": "jfzgpbyj", "_$id": "jfzgpbyj",
"_$type": "Box", "_$type": "Box",
"name": "top", "name": "top",
"width": 1080, "width": 1920,
"height": 1080, "height": 1080,
"_mouseState": 2, "_mouseState": 2,
"left": 0, "left": 0,
@@ -98,7 +98,7 @@
"_$id": "hdia0flx", "_$id": "hdia0flx",
"_$type": "Image", "_$type": "Image",
"name": "bg", "name": "bg",
"width": 1080, "width": 1920,
"height": 1080, "height": 1080,
"left": 0, "left": 0,
"right": 0, "right": 0,
@@ -110,7 +110,7 @@
"_$id": "et3t0uy6", "_$id": "et3t0uy6",
"_$type": "Image", "_$type": "Image",
"name": "trophy_light", "name": "trophy_light",
"x": 480, "x": 900,
"y": 65, "y": 65,
"width": 512, "width": 512,
"height": 512, "height": 512,
@@ -134,7 +134,7 @@
"_$id": "e7a1ntdg", "_$id": "e7a1ntdg",
"_$type": "Image", "_$type": "Image",
"name": "trophy", "name": "trophy",
"x": 530, "x": 950,
"y": 110, "y": 110,
"width": 468, "width": 468,
"height": 468, "height": 468,
@@ -147,7 +147,7 @@
"_$id": "cojpn11e", "_$id": "cojpn11e",
"_$type": "Box", "_$type": "Box",
"name": "back", "name": "back",
"x": 38, "x": 458,
"y": 72, "y": 72,
"width": 400, "width": 400,
"height": 64, "height": 64,
@@ -192,10 +192,10 @@
"_$id": "ft6m7zwa", "_$id": "ft6m7zwa",
"_$type": "Image", "_$type": "Image",
"name": "btn_trophy", "name": "btn_trophy",
"x": 935, "x": 1350,
"y": 72, "y": 72,
"width": 75, "width": 84,
"height": 75, "height": 84,
"top": 72, "top": 72,
"centerX": 432, "centerX": 432,
"skin": "res://4458c7de-47ff-496e-a28f-be808c0823b3", "skin": "res://4458c7de-47ff-496e-a28f-be808c0823b3",
@@ -236,7 +236,7 @@
"_$id": "pohsc0lz", "_$id": "pohsc0lz",
"_$type": "Label", "_$type": "Label",
"name": "label_year", "name": "label_year",
"x": 120, "x": 540,
"y": 224, "y": 224,
"width": 400, "width": 400,
"height": 72, "height": 72,
@@ -254,7 +254,7 @@
"_$id": "syblrak9", "_$id": "syblrak9",
"_$type": "Label", "_$type": "Label",
"name": "label_month", "name": "label_month",
"x": 120, "x": 540,
"y": 297, "y": 297,
"width": 400, "width": 400,
"height": 72, "height": 72,
@@ -272,7 +272,7 @@
"_$id": "w9sm094p", "_$id": "w9sm094p",
"_$type": "Box", "_$type": "Box",
"name": "Box", "name": "Box",
"x": 120, "x": 540,
"y": 388, "y": 388,
"width": 400, "width": 400,
"height": 72, "height": 72,
@@ -307,7 +307,7 @@
"_$id": "ngt791nt", "_$id": "ngt791nt",
"_$type": "Image", "_$type": "Image",
"name": "star", "name": "star",
"x": 6, "x": 8,
"y": 6, "y": 6,
"width": 60, "width": 60,
"height": 60, "height": 60,
@@ -337,7 +337,7 @@
"_$id": "ydwm2tu6", "_$id": "ydwm2tu6",
"_$type": "Box", "_$type": "Box",
"name": "btn_left", "name": "btn_left",
"x": 34, "x": 454,
"y": 325, "y": 325,
"width": 48, "width": 48,
"height": 96, "height": 96,
@@ -369,7 +369,7 @@
"_$id": "e2xuqxps", "_$id": "e2xuqxps",
"_$type": "Box", "_$type": "Box",
"name": "btn_right", "name": "btn_right",
"x": 987, "x": 1407,
"y": 325, "y": 325,
"width": 48, "width": 48,
"height": 96, "height": 96,
@@ -404,8 +404,8 @@
"_$type": "Box", "_$type": "Box",
"name": "bottom", "name": "bottom",
"y": 578, "y": 578,
"width": 1080, "width": 1920,
"height": 1342, "height": 502,
"left": 0, "left": 0,
"right": 0, "right": 0,
"top": 578, "top": 578,
@@ -438,7 +438,7 @@
"_$id": "ilx0hjao", "_$id": "ilx0hjao",
"_$type": "VBox", "_$type": "VBox",
"name": "items", "name": "items",
"x": 50, "x": 470,
"y": 152, "y": 152,
"width": 980, "width": 980,
"height": 792, "height": 792,
@@ -7028,7 +7028,7 @@
"_$id": "x8f5wfnc", "_$id": "x8f5wfnc",
"_$type": "HBox", "_$type": "HBox",
"name": "titles", "name": "titles",
"x": 50, "x": 470,
"y": 14, "y": 14,
"width": 980, "width": 980,
"height": 132, "height": 132,
@@ -7146,7 +7146,7 @@
"_$id": "ybbojil0", "_$id": "ybbojil0",
"_$type": "Box", "_$type": "Box",
"name": "btn_left", "name": "btn_left",
"x": 11, "x": 431,
"y": 492, "y": 492,
"width": 48, "width": 48,
"height": 96, "height": 96,
@@ -7177,7 +7177,7 @@
"_$id": "rp3gmpnp", "_$id": "rp3gmpnp",
"_$type": "Box", "_$type": "Box",
"name": "btn_right", "name": "btn_right",
"x": 1021, "x": 1441,
"y": 492, "y": 492,
"width": 48, "width": 48,
"height": 96, "height": 96,
@@ -7208,8 +7208,8 @@
"_$id": "waobo8h4", "_$id": "waobo8h4",
"_$type": "Box", "_$type": "Box",
"name": "bottom", "name": "bottom",
"x": 72, "x": 492,
"y": 982, "y": 142,
"width": 936, "width": 936,
"height": 300, "height": 300,
"bottom": 60, "bottom": 60,

View File

@@ -103,10 +103,9 @@
"_$id": "geon9fbm", "_$id": "geon9fbm",
"_$type": "Image", "_$type": "Image",
"name": "light", "name": "light",
"x": 60, "y": 210,
"y": 330, "width": 720,
"width": 600, "height": 720,
"height": 600,
"bottom": 30, "bottom": 30,
"centerX": 0, "centerX": 0,
"skin": "res://449a140e-576e-4a52-ace4-f2695351f489", "skin": "res://449a140e-576e-4a52-ace4-f2695351f489",
@@ -213,7 +212,7 @@
"_$id": "ag0rceay", "_$id": "ag0rceay",
"_$type": "Image", "_$type": "Image",
"name": "star", "name": "star",
"x": 4, "x": 6,
"y": 4, "y": 4,
"width": 40, "width": 40,
"height": 40, "height": 40,

View File

@@ -184,7 +184,7 @@
"height": 100, "height": 100,
"top": -10, "top": -10,
"centerX": 0, "centerX": 0,
"text": "Conratulations!", "text": "Congratulations!",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 84, "fontSize": 84,
"color": "#FFFFFF", "color": "#FFFFFF",

View File

@@ -183,7 +183,7 @@
"height": 100, "height": 100,
"top": 114, "top": 114,
"centerX": 0, "centerX": 0,
"text": "Conratulations!", "text": "Congratulations!",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 72, "fontSize": 72,
"color": "#FFFFFF", "color": "#FFFFFF",

View File

@@ -11,7 +11,7 @@ export class CommonHover extends Laya.Script {
this.owner.on(Laya.Event.MOUSE_OVER, this, () => { this.owner.on(Laya.Event.MOUSE_OVER, this, () => {
Laya.Render.canvas.style.cursor = "pointer" Laya.Render.canvas.style.cursor = "pointer"
if (this.hoverAlpha) { if (this.hoverAlpha) {
this.owner.alpha = 0.7 this.owner.alpha = 0.8
} }
}) })
this.owner.on(Laya.Event.MOUSE_OUT, this, () => { this.owner.on(Laya.Event.MOUSE_OUT, this, () => {