补充UI细节 添加每日挑战

This commit is contained in:
2025-05-20 17:41:43 +08:00
parent b6c1e58f35
commit 18785e7387
53 changed files with 8836 additions and 212 deletions

View File

@@ -12,7 +12,8 @@
"_$comp": [
{
"_$type": "7bad1742-6eed-4d8d-81c0-501dc5bf03d6",
"scriptPath": "../src/Main.ts"
"scriptPath": "../src/Main.ts",
"debug": false
},
{
"_$type": "cd70cd5e-b4cd-4277-ac0a-2224cfbe89ac",

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 B

View File

@@ -0,0 +1,6 @@
{
"uuid": "19283ae3-c041-4a01-8fab-3c03add31bf8",
"importer": {
"textureType": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -0,0 +1,6 @@
{
"uuid": "4458c7de-47ff-496e-a28f-be808c0823b3",
"importer": {
"textureType": 2
}
}

BIN
assets/atlas/comp/star.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -0,0 +1,6 @@
{
"uuid": "c5e80bd0-632f-4460-bce3-ebf9669359e3",
"importer": {
"textureType": 2
}
}

BIN
assets/atlas/comp/star1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@@ -0,0 +1,6 @@
{
"uuid": "71d84f8a-b8bc-46ae-b68b-bbb43fd588d7",
"importer": {
"textureType": 2
}
}

BIN
assets/atlas/comp/star2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

View File

@@ -0,0 +1,6 @@
{
"uuid": "902e1f3a-6f95-4796-8449-974ae5354d72",
"importer": {
"textureType": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 KiB

View File

@@ -0,0 +1,6 @@
{
"uuid": "342d91e6-0434-4d52-b16c-3c536060f881",
"importer": {
"textureType": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 KiB

View File

@@ -0,0 +1,6 @@
{
"uuid": "2b008659-862a-4155-b094-ee87ba692be1",
"importer": {
"textureType": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

View File

@@ -0,0 +1,6 @@
{
"uuid": "ebbaa034-8dd8-4fb8-abd5-094cdd76f93a",
"importer": {
"textureType": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@@ -0,0 +1,6 @@
{
"uuid": "14316514-e8bf-4d32-bf9c-ba375ea24798",
"importer": {
"textureType": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 530 KiB

View File

@@ -0,0 +1,6 @@
{
"uuid": "3e483f58-04bc-4a60-8aaa-695dfe115668",
"importer": {
"textureType": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 KiB

View File

@@ -0,0 +1,6 @@
{
"uuid": "56e0b9d3-d4ea-4e9d-9052-b67612598495",
"importer": {
"textureType": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 KiB

View File

@@ -0,0 +1,6 @@
{
"uuid": "4182ef3f-6065-44dd-83c2-70490f02e9cb",
"importer": {
"textureType": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

View File

@@ -0,0 +1,6 @@
{
"uuid": "0a33c495-5713-4f5d-bb30-d0021966cf7e",
"importer": {
"textureType": 2
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,3 @@
{
"uuid": "ab0e47f1-b092-4e81-ac0c-ff02fc97c6a0"
}

View File

@@ -42,9 +42,8 @@
"width": 1080,
"height": 1360,
"_mouseState": 2,
"left": 0,
"right": 0,
"bottom": -2440,
"centerX": 0,
"_$child": [
{
"_$id": "bd1s5tvm",

View File

@@ -15,100 +15,501 @@
{
"_$type": "13e020d1-5ab8-4082-80ca-c0d208342103",
"scriptPath": "../src/views/GameDone.ts",
"obj_top": {
"_$ref": "0nnrx7a2"
},
"obj_stars": {
"_$ref": "6pifil84"
},
"obj_star": {
"_$ref": "sxp0g4z9"
},
"label_diffucuty": {
"_$ref": "53v8r278"
},
"label_time": {
"_$ref": "o3ljtnq3"
},
"label_score": {
"_$ref": "yd0d9s4h"
},
"btn_new": {
"_$ref": "ljwrbqm7"
"_$ref": "nad0pj6b"
},
"btn_home": {
"_$ref": "s80wwm91"
},
"btn_continue": {
"_$ref": "jowyx0fm"
}
}
],
"_$child": [
{
"_$id": "ocyocuk7",
"_$id": "z7eqmeuo",
"_$type": "Image",
"name": "bg",
"x": 90,
"y": 482,
"width": 900,
"height": 956,
"_mouseState": 2,
"name": "bg_done",
"width": 1080,
"height": 1920,
"left": 0,
"right": 0,
"top": 0,
"bottom": 0,
"skin": "res://2b008659-862a-4155-b094-ee87ba692be1",
"useSourceSize": true,
"color": "#ffffff"
},
{
"_$id": "0nnrx7a2",
"_$type": "Box",
"name": "top",
"x": 48,
"y": 456,
"width": 984,
"height": 846,
"centerX": 0,
"centerY": 0,
"skin": "res://6ad19646-ed7a-431c-a50e-65c2bcb40751",
"sizeGrid": "40,60,50,60,0",
"color": "#ffffff",
"_$child": [
{
"_$id": "52u6rl70",
"_$id": "v3amkm36",
"_$type": "Image",
"name": "Image",
"x": 322,
"y": 54,
"width": 128,
"height": 128,
"scaleX": 2,
"scaleY": 2,
"name": "light",
"x": -48,
"y": -680,
"width": 1080,
"height": 1920,
"centerX": 0,
"centerY": -296,
"skin": "res://120856c0-7081-4fde-8dca-ae0a78d684e2",
"useSourceSize": true,
"skin": "res://ebbaa034-8dd8-4fb8-abd5-094cdd76f93a",
"color": "#ffffff"
},
{
"_$id": "mqwo6k43",
"_$type": "Image",
"name": "bg",
"width": 984,
"height": 180,
"skin": "res://14316514-e8bf-4d32-bf9c-ba375ea24798",
"color": "#ffffff",
"_$child": [
{
"_$id": "qxb59msp",
"_$type": "Sprite",
"name": "Sprite",
"y": 180,
"width": 984,
"height": 666,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 0,
"rt": 0,
"lb": 30,
"rb": 30,
"percent": true,
"lineWidth": 1,
"fillColor": "#FFFFFF"
}
]
},
{
"_$id": "9w23n5lc",
"_$type": "Sprite",
"name": "Sprite(1)",
"x": 44,
"y": 400,
"width": 888,
"height": 372,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 0,
"rt": 0,
"lb": 30,
"rb": 30,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(245, 247, 251, 1)"
}
]
}
]
},
{
"_$id": "6pifil84",
"_$type": "Box",
"name": "stars",
"y": -148,
"width": 984,
"height": 300,
"visible": false,
"centerX": 0,
"_$child": [
{
"_$id": "qqrwgq7s",
"_$type": "Image",
"name": "check(1)",
"x": 69,
"y": 19,
"width": 308,
"height": 309,
"skin": "res://71d84f8a-b8bc-46ae-b68b-bbb43fd588d7",
"useSourceSize": true,
"color": "#ffffff"
},
{
"_$id": "ztzpvc3d",
"_$type": "Image",
"name": "check(2)",
"x": 339,
"width": 306,
"height": 307,
"centerX": 0,
"skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72",
"useSourceSize": true,
"color": "#ffffff"
},
{
"_$id": "go8t9h1s",
"_$type": "Image",
"name": "check(3)",
"x": 696,
"y": -35,
"width": 308,
"height": 309,
"rotation": 26,
"gray": true,
"skin": "res://71d84f8a-b8bc-46ae-b68b-bbb43fd588d7",
"useSourceSize": true,
"color": "#ffffff"
}
]
},
{
"_$id": "sxp0g4z9",
"_$type": "Image",
"name": "star",
"x": 362,
"y": -120,
"width": 108,
"height": 108,
"scaleX": 2.4,
"scaleY": 2.4,
"centerX": 0,
"skin": "res://c5e80bd0-632f-4460-bce3-ebf9669359e3",
"color": "#ffffff"
},
{
"_$id": "t0v4lr20",
"_$type": "Label",
"name": "Label",
"y": 184,
"width": 984,
"height": 100,
"centerX": 0,
"centerY": -189,
"text": "Congratulations!",
"fontSize": 80,
"color": "rgba(0, 0, 0, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "4ku2eb3q",
"_$type": "VBox",
"name": "summary",
"x": 92,
"y": 453,
"width": 800,
"height": 300,
"centerX": 0,
"space": 0,
"_$child": [
{
"_$id": "1a0e2qp5",
"_$type": "Box",
"name": "Box(1)",
"width": 800,
"height": 100,
"_$child": [
{
"_$id": "sei6jyr4",
"_$type": "Label",
"name": "left",
"width": 400,
"height": 100,
"text": "Difficuty",
"fontSize": 50,
"color": "rgba(123, 129, 140, 1)",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "53v8r278",
"_$type": "Label",
"name": "right",
"x": 400,
"width": 400,
"height": 100,
"text": "Medium",
"fontSize": 50,
"color": "rgba(45, 49, 56, 1)",
"align": "right",
"valign": "middle",
"padding": "0,0,0,0"
}
]
},
{
"_$id": "vryuxz1k",
"_$type": "Box",
"name": "Box(2)",
"y": 100,
"width": 800,
"height": 100,
"_$child": [
{
"_$id": "tazeyyxv",
"_$type": "Label",
"name": "left",
"width": 400,
"height": 100,
"text": "Time",
"fontSize": 50,
"color": "rgba(123, 129, 140, 1)",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "o3ljtnq3",
"_$type": "Label",
"name": "right",
"x": 400,
"width": 400,
"height": 100,
"text": "Medium",
"fontSize": 50,
"color": "rgba(45, 49, 56, 1)",
"align": "right",
"valign": "middle",
"padding": "0,0,0,0"
}
]
},
{
"_$id": "8qj8gt9o",
"_$type": "Box",
"name": "Box(3)",
"y": 200,
"width": 800,
"height": 100,
"_$child": [
{
"_$id": "8ue5sakn",
"_$type": "Label",
"name": "left",
"width": 400,
"height": 100,
"text": "Score",
"fontSize": 50,
"color": "rgba(123, 129, 140, 1)",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "yd0d9s4h",
"_$type": "Label",
"name": "right",
"x": 400,
"width": 400,
"height": 100,
"text": "Medium",
"fontSize": 50,
"color": "rgba(45, 49, 56, 1)",
"align": "right",
"valign": "middle",
"padding": "0,0,0,0"
}
]
}
]
}
]
},
{
"_$id": "ljwrbqm7",
"_$type": "Button",
"name": "btn_new",
"x": 172,
"y": 1182,
"width": 736,
"height": 152,
"_mouseState": 2,
"centerX": 0,
"centerY": 298,
"stateNum": 1,
"skin": "res://2e8c9585-e650-4494-a329-807fd2d2a532",
"sizeGrid": "24,40,24,40,0",
"label": "新游戏",
"labelFont": "",
"labelSize": 60,
"labelBold": true,
"labelColors": "#1d5cdc,#1d5cdc,#1d5cdc",
"labelAlign": "center",
"labelVAlign": "middle"
},
{
"_$id": "t0v4lr20",
"_$type": "Label",
"name": "Label",
"x": 172,
"y": 795,
"width": 736,
"height": 100,
"centerX": 0,
"centerY": -115,
"text": "Well done",
"font": "",
"fontSize": 80,
"color": "rgba(0, 0, 0, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0",
"_$id": "2tsqczlh",
"_$type": "Box",
"name": "bottom",
"y": 1428,
"width": 1080,
"height": 492,
"left": 0,
"right": 0,
"bottom": 0,
"_$child": [
{
"_$id": "kx4e9y8p",
"_$type": "Text",
"name": "Text",
"y": 120,
"width": 736,
"_$id": "nad0pj6b",
"_$type": "Box",
"name": "btn_new",
"x": 168,
"y": 80,
"width": 744,
"height": 156,
"visible": false,
"centerX": 0,
"_$child": [
{
"_$id": "rryy0h1z",
"_$type": "Sprite",
"name": "Sprite",
"width": 744,
"height": 156,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 20,
"rt": 20,
"lb": 20,
"rb": 20,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
},
{
"_$id": "t0l9qw7l",
"_$type": "Label",
"name": "Label",
"width": 744,
"height": 156,
"centerX": 0,
"centerY": 0,
"text": "New Game",
"fontSize": 72,
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
},
{
"_$id": "s80wwm91",
"_$type": "Box",
"name": "btn_home",
"x": 168,
"y": 274,
"width": 744,
"height": 156,
"visible": false,
"centerX": 0,
"_$child": [
{
"_$id": "xmj0kb6f",
"_$type": "Sprite",
"name": "Sprite",
"width": 744,
"height": 156,
"alpha": 0.18,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 20,
"rt": 20,
"lb": 20,
"rb": 20,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
},
{
"_$id": "d003qixi",
"_$type": "Label",
"name": "Label",
"width": 744,
"height": 156,
"centerX": 0,
"centerY": 0,
"text": "Home",
"fontSize": 72,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
},
{
"_$id": "jowyx0fm",
"_$type": "Box",
"name": "btn_continue",
"x": 168,
"y": 274,
"width": 200,
"height": 200,
"text": "[color=#7b818c]你击败了[color=#f1bf44]80%[/color]的玩家[/color]",
"font": "",
"fontSize": 60,
"color": "#FFFFFF",
"ubb": true,
"align": "center",
"leading": 2
"centerX": -272,
"_$child": [
{
"_$id": "0oc03day",
"_$type": "Sprite",
"name": "Sprite",
"width": 744,
"height": 156,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 20,
"rt": 20,
"lb": 20,
"rb": 20,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
},
{
"_$id": "cwysgq4l",
"_$type": "Label",
"name": "Label",
"width": 744,
"height": 156,
"centerX": 272,
"centerY": -22,
"text": "Continue",
"fontSize": 72,
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
}
]
}

View File

@@ -21,8 +21,11 @@
"btn_restart": {
"_$ref": "y7aniaui"
},
"btn_new": {
"btn_newOrClose": {
"_$ref": "eepsaznr"
},
"label_newOrClose": {
"_$ref": "2r6iotpo"
}
}
],
@@ -181,7 +184,7 @@
{
"_$id": "eepsaznr",
"_$type": "Sprite",
"name": "btn_new",
"name": "btn_newOrClose",
"y": 408,
"width": 744,
"height": 156,

View File

@@ -14,10 +14,22 @@
{
"_$type": "f2970e4d-7a09-4a9b-aef3-45d330c86f4f",
"scriptPath": "../src/views/Home.ts",
"label_dc_title": {
"_$ref": "zbppj6k0"
},
"btn_play": {
"_$ref": "ttv6dk1v"
},
"btn_continue": {
"_$ref": "ofvmzh0x"
},
"btn_more": {
"_$ref": "8mgjn0da"
},
"btn_new_blue": {
"_$ref": "6irhm6t7"
},
"btn_continue": {
"btn_go": {
"_$ref": "9rcb0wtp"
},
"btn_new_white": {
@@ -43,22 +55,205 @@
"color": "#f5f7fb"
},
{
"_$id": "vxgd702p",
"_$type": "Label",
"name": "Label",
"x": 144,
"y": 760,
"width": 792,
"height": 400,
"_$id": "pnoy48ek",
"_$type": "Box",
"name": "dc",
"x": 72,
"y": 160,
"width": 936,
"height": 468,
"top": 160,
"centerX": 0,
"centerY": 0,
"text": "Classic\nSudoku",
"fontSize": 100,
"color": "rgba(123, 129, 140, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"_$child": [
{
"_$id": "7270vjom",
"_$type": "Image",
"name": "bg",
"width": 936,
"height": 468,
"skin": "res://342d91e6-0434-4d52-b16c-3c536060f881",
"useSourceSize": true,
"color": "#ffffff"
},
{
"_$id": "5ubzcrtp",
"_$type": "Label",
"name": "Label",
"x": 85,
"y": 28,
"width": 767,
"height": 100,
"alpha": 0.6,
"centerX": 0,
"centerY": -156,
"text": "Daily Challenge",
"fontSize": 36,
"color": "rgba(45, 49, 56, 1)",
"bold": true,
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "zbppj6k0",
"_$type": "Label",
"name": "title",
"x": 85,
"y": 107,
"width": 767,
"height": 100,
"centerX": 0,
"centerY": -77,
"text": "Mar 12",
"fontSize": 60,
"color": "rgba(45, 49, 56, 1)",
"bold": true,
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "h6dakob0",
"_$type": "Image",
"name": "trophy",
"x": 468,
"width": 468,
"height": 468,
"right": 0,
"skin": "res://0a33c495-5713-4f5d-bb30-d0021966cf7e",
"useSourceSize": true,
"color": "#ffffff"
},
{
"_$id": "ttv6dk1v",
"_$type": "Sprite",
"name": "btn_play",
"x": 72,
"y": 318,
"width": 195,
"height": 96,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 10,
"rt": 10,
"lb": 10,
"rb": 10,
"percent": true,
"lineWidth": 1,
"fillColor": "#FFFFFF"
}
],
"_$child": [
{
"_$id": "8s2b3obv",
"_$type": "Label",
"name": "Label",
"width": 195,
"height": 96,
"centerX": 0,
"centerY": 0,
"text": "Play",
"fontSize": 48,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
},
{
"_$id": "ofvmzh0x",
"_$type": "Sprite",
"name": "btn_continue",
"x": 72,
"y": 318,
"width": 309,
"height": 96,
"visible": false,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 10,
"rt": 10,
"lb": 10,
"rb": 10,
"percent": true,
"lineWidth": 1,
"fillColor": "#FFFFFF"
}
],
"_$child": [
{
"_$id": "2ou1bw71",
"_$type": "Label",
"name": "Label",
"width": 309,
"height": 96,
"centerX": 0,
"centerY": 0,
"text": "Continue",
"fontSize": 48,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
},
{
"_$id": "8mgjn0da",
"_$type": "Sprite",
"name": "btn_more",
"x": 72,
"y": 318,
"width": 216,
"height": 96,
"visible": false,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 10,
"rt": 10,
"lb": 10,
"rb": 10,
"percent": true,
"lineWidth": 1,
"fillColor": "#FFFFFF"
}
],
"_$child": [
{
"_$id": "w132wbbv",
"_$type": "Label",
"name": "Label",
"width": 216,
"height": 96,
"centerX": 0,
"centerY": 0,
"text": "More",
"fontSize": 48,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
}
]
},
{
"_$id": "6irhm6t7",
@@ -115,7 +310,7 @@
{
"_$id": "9rcb0wtp",
"_$type": "Box",
"name": "btn_continue",
"name": "btn_go",
"x": 144,
"y": 1376,
"width": 792,
@@ -276,6 +471,24 @@
"padding": "0,0,0,0"
}
]
},
{
"_$id": "vxgd702p",
"_$type": "Label",
"name": "Label",
"x": 144,
"y": 760,
"width": 792,
"height": 400,
"centerX": 0,
"centerY": 0,
"text": "Classic\nSudoku",
"fontSize": 100,
"color": "rgba(123, 129, 140, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
}

View File

@@ -23,7 +23,7 @@
"label_mistake": {
"_$ref": "azfx9pw2"
},
"label_diff": {
"label_name": {
"_$ref": "qxei5ih3"
},
"label_time": {
@@ -161,7 +161,7 @@
{
"_$id": "qxei5ih3",
"_$type": "Label",
"name": "label_diff",
"name": "label_name",
"x": 372,
"y": -58,
"width": 300,