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

View File

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

View File

@@ -327,46 +327,46 @@
]
}
]
},
{
"_$id": "jkqju6ok",
"_$type": "Label",
"name": "Label",
"x": 76,
"y": 100,
"width": 736,
"height": 100,
"top": 100,
"centerX": 0,
"text": "Game Over",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 72,
"color": "rgba(0, 0, 0, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "39t7ygbe",
"_$type": "Label",
"name": "Label(1)",
"x": 90,
"y": 235,
"width": 709,
"height": 300,
"top": 235,
"centerX": 0,
"text": "You lost the game because you made 3 mistakes",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 54,
"color": "rgba(123, 129, 140, 1)",
"align": "center",
"valign": "top",
"wordWrap": true,
"padding": "0,0,0,0"
}
]
},
{
"_$id": "jkqju6ok",
"_$type": "Label",
"name": "Label",
"x": 592,
"y": 101,
"width": 736,
"height": 100,
"centerX": 0,
"centerY": -389,
"text": "Game Over",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 72,
"color": "rgba(0, 0, 0, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "39t7ygbe",
"_$type": "Label",
"name": "Label(1)",
"x": 606,
"y": 235,
"width": 709,
"height": 300,
"centerX": 0,
"centerY": -155,
"text": "You lost the game because you made 3 mistakes",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 54,
"color": "rgba(123, 129, 140, 1)",
"align": "center",
"valign": "top",
"wordWrap": true,
"padding": "0,0,0,0"
}
]
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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