完善每日挑战逻辑

This commit is contained in:
2025-05-21 10:15:23 +08:00
parent 061b8bc042
commit 2e384f43e4
17 changed files with 450 additions and 158 deletions

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 B

View File

@@ -0,0 +1,6 @@
{
"uuid": "01e2c8ef-cb3b-4633-acf1-85ae9e5e0062",
"importer": {
"textureType": 2
}
}

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

View File

@@ -0,0 +1,6 @@
{
"uuid": "a40c7d39-0906-4227-8784-e7f3eebba541",
"importer": {
"textureType": 2
}
}

View File

@@ -20,6 +20,15 @@
"btn_trophy": {
"_$ref": "ft6m7zwa"
},
"icon_trophy": {
"_$ref": "e7a1ntdg"
},
"btn_left": {
"_$ref": "vy67efg7"
},
"btn_right": {
"_$ref": "55ije39v"
},
"bg_dc": {
"_$ref": "hdia0flx"
},
@@ -147,15 +156,14 @@
"y": 108,
"width": 468,
"height": 468,
"skin": "res://0a33c495-5713-4f5d-bb30-d0021966cf7e",
"useSourceSize": true,
"skin": "res://fb9b2754-ab4b-4558-8db0-f325afc06764",
"color": "#ffffff"
},
{
"_$id": "pohsc0lz",
"_$type": "Label",
"name": "label_year",
"x": 100,
"x": 133,
"y": 224,
"width": 200,
"height": 72,
@@ -170,7 +178,7 @@
"_$id": "syblrak9",
"_$type": "Label",
"name": "label_month",
"x": 100,
"x": 133,
"y": 300,
"width": 200,
"height": 72,
@@ -185,7 +193,7 @@
"_$id": "w9sm094p",
"_$type": "Box",
"name": "Box",
"x": 100,
"x": 133,
"y": 400,
"width": 213,
"height": 72,
@@ -240,6 +248,30 @@
"padding": "0,0,0,0"
}
]
},
{
"_$id": "vy67efg7",
"_$type": "Image",
"name": "btn_left",
"x": 50,
"y": 343,
"width": 21,
"height": 60,
"skin": "res://01e2c8ef-cb3b-4633-acf1-85ae9e5e0062",
"useSourceSize": true,
"color": "#ffffff"
},
{
"_$id": "55ije39v",
"_$type": "Image",
"name": "btn_right",
"x": 996,
"y": 337,
"width": 48,
"height": 97,
"skin": "res://a40c7d39-0906-4227-8784-e7f3eebba541",
"useSourceSize": true,
"color": "#ffffff"
}
]
},
@@ -307,6 +339,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -452,6 +486,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -595,6 +631,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -738,6 +776,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -881,6 +921,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -1024,6 +1066,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -1167,6 +1211,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -1321,6 +1367,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -1464,6 +1512,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -1607,6 +1657,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -1750,6 +1802,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -1893,6 +1947,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -2036,6 +2092,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -2179,6 +2237,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -2333,6 +2393,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -2476,6 +2538,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -2619,6 +2683,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -2762,6 +2828,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -2905,6 +2973,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -3048,6 +3118,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -3191,6 +3263,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -3345,6 +3419,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -3488,6 +3564,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -3631,6 +3709,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -3774,6 +3854,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -3917,6 +3999,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -4060,6 +4144,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -4203,6 +4289,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -4357,6 +4445,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -4500,6 +4590,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -4643,6 +4735,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -4786,6 +4880,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -4929,6 +5025,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -5072,6 +5170,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -5215,6 +5315,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -5369,6 +5471,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -5512,6 +5616,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -5655,6 +5761,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -5798,6 +5906,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -5941,6 +6051,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -6084,6 +6196,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,
@@ -6227,6 +6341,8 @@
{
"_$type": "04c54914-715e-4e07-8a45-770f2a2c05a6",
"scriptPath": "../src/views/CalendarUnit.ts",
"year": 0,
"month": 0,
"day": 0,
"open": false,
"progress": 0,

View File

@@ -17,6 +17,9 @@
"bg_dc": {
"_$ref": "7270vjom"
},
"icon_dc": {
"_$ref": "h6dakob0"
},
"label_dc_title": {
"_$ref": "5ubzcrtp"
},
@@ -255,8 +258,7 @@
"width": 468,
"height": 468,
"right": 0,
"skin": "res://0a33c495-5713-4f5d-bb30-d0021966cf7e",
"useSourceSize": true,
"skin": "res://bb1fa7d6-3640-46a5-aad3-b8aa0dacdd0e",
"color": "#ffffff"
}
]

View File

@@ -195,15 +195,16 @@
"_$id": "8f3q88gt",
"_$type": "Label",
"name": "label_count",
"x": 110,
"x": 108,
"y": 233,
"width": 72,
"height": 20,
"centerX": 2,
"centerX": 0,
"text": "03/20",
"fontSize": 24,
"color": "rgba(0, 0, 0, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
@@ -227,7 +228,7 @@
]
},
{
"_$id": "12v1zrhf",
"_$id": "5a72w6r6",
"_$type": "Box",
"name": "Box(2)",
"x": 336,
@@ -238,45 +239,46 @@
"_$type": "79064920-30a6-4b11-a82e-bbdd4112c4e1",
"scriptPath": "../src/views/TrophyUnit.ts",
"icon": {
"_$ref": "vqqolq5s"
"_$ref": "qtzrgk8b"
},
"label_count": {
"_$ref": "piu2wjzk"
"_$ref": "nejjxzap"
},
"label_month": {
"_$ref": "jvyb2bl8"
"_$ref": "kyfur82i"
}
}
],
"_$child": [
{
"_$id": "vqqolq5s",
"_$id": "qtzrgk8b",
"_$type": "Image",
"name": "icon",
"width": 289,
"width": 288,
"height": 288,
"skin": "res://bb1fa7d6-3640-46a5-aad3-b8aa0dacdd0e",
"skin": "res://7d235ac1-6755-4409-ab86-23aaf41e1537",
"useSourceSize": true,
"color": "#ffffff"
},
{
"_$id": "piu2wjzk",
"_$id": "nejjxzap",
"_$type": "Label",
"name": "label_count",
"x": 110,
"x": 108,
"y": 233,
"width": 72,
"height": 20,
"centerX": 2,
"centerX": 0,
"text": "03/20",
"fontSize": 24,
"color": "rgba(0, 0, 0, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "jvyb2bl8",
"_$id": "kyfur82i",
"_$type": "Label",
"name": "month",
"x": 94,
@@ -295,7 +297,7 @@
]
},
{
"_$id": "wn080pr7",
"_$id": "ou2bc7ya",
"_$type": "Box",
"name": "Box(3)",
"x": 672,
@@ -306,45 +308,46 @@
"_$type": "79064920-30a6-4b11-a82e-bbdd4112c4e1",
"scriptPath": "../src/views/TrophyUnit.ts",
"icon": {
"_$ref": "5ijlv0u5"
"_$ref": "60czvplu"
},
"label_count": {
"_$ref": "wp3kmm2v"
"_$ref": "z9p6fvm8"
},
"label_month": {
"_$ref": "up14gqcb"
"_$ref": "qt83mjyk"
}
}
],
"_$child": [
{
"_$id": "5ijlv0u5",
"_$id": "60czvplu",
"_$type": "Image",
"name": "icon",
"width": 289,
"width": 288,
"height": 288,
"skin": "res://fb9b2754-ab4b-4558-8db0-f325afc06764",
"skin": "res://7d235ac1-6755-4409-ab86-23aaf41e1537",
"useSourceSize": true,
"color": "#ffffff"
},
{
"_$id": "wp3kmm2v",
"_$id": "z9p6fvm8",
"_$type": "Label",
"name": "label_count",
"x": 110,
"x": 108,
"y": 233,
"width": 72,
"height": 20,
"centerX": 2,
"centerX": 0,
"text": "03/20",
"fontSize": 24,
"color": "rgba(0, 0, 0, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "up14gqcb",
"_$id": "qt83mjyk",
"_$type": "Label",
"name": "month",
"x": 94,
@@ -387,7 +390,7 @@
]
},
{
"_$id": "ovn0ouow",
"_$id": "qafamkwj",
"_$type": "Box",
"name": "Box(2)",
"y": 416,
@@ -395,7 +398,7 @@
"height": 288,
"_$child": [
{
"_$id": "0lvqvjcc",
"_$id": "pqcum5of",
"_$type": "HBox",
"name": "HBox",
"width": 960,
@@ -404,7 +407,7 @@
"align": "middle",
"_$child": [
{
"_$id": "bpnvv8bu",
"_$id": "r4wq2wm7",
"_$type": "Box",
"name": "Box(1)",
"width": 288,
@@ -414,45 +417,46 @@
"_$type": "79064920-30a6-4b11-a82e-bbdd4112c4e1",
"scriptPath": "../src/views/TrophyUnit.ts",
"icon": {
"_$ref": "5nc72uhs"
"_$ref": "f8qx50up"
},
"label_count": {
"_$ref": "roiu8xgz"
"_$ref": "sx3ojzwo"
},
"label_month": {
"_$ref": "k1vy02th"
"_$ref": "49lxnrrm"
}
}
],
"_$child": [
{
"_$id": "5nc72uhs",
"_$id": "f8qx50up",
"_$type": "Image",
"name": "icon",
"width": 289,
"width": 288,
"height": 288,
"skin": "res://3d104a8e-ef79-46c9-90ef-f0db298666b2",
"skin": "res://7d235ac1-6755-4409-ab86-23aaf41e1537",
"useSourceSize": true,
"color": "#ffffff"
},
{
"_$id": "roiu8xgz",
"_$id": "sx3ojzwo",
"_$type": "Label",
"name": "label_count",
"x": 110,
"x": 108,
"y": 233,
"width": 72,
"height": 20,
"centerX": 2,
"centerX": 0,
"text": "03/20",
"fontSize": 24,
"color": "rgba(0, 0, 0, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "k1vy02th",
"_$id": "49lxnrrm",
"_$type": "Label",
"name": "month",
"x": 94,
@@ -471,7 +475,7 @@
]
},
{
"_$id": "eqqlj32z",
"_$id": "fvekysyv",
"_$type": "Box",
"name": "Box(2)",
"x": 336,
@@ -482,45 +486,46 @@
"_$type": "79064920-30a6-4b11-a82e-bbdd4112c4e1",
"scriptPath": "../src/views/TrophyUnit.ts",
"icon": {
"_$ref": "eonu3pni"
"_$ref": "7er8q2x5"
},
"label_count": {
"_$ref": "dyei47qq"
"_$ref": "6vznujfd"
},
"label_month": {
"_$ref": "kqiusmti"
"_$ref": "0jjnp6zh"
}
}
],
"_$child": [
{
"_$id": "eonu3pni",
"_$id": "7er8q2x5",
"_$type": "Image",
"name": "icon",
"width": 288,
"height": 288,
"skin": "res://f84532c2-1750-4127-999b-9dd613301eb5",
"skin": "res://7d235ac1-6755-4409-ab86-23aaf41e1537",
"useSourceSize": true,
"color": "#ffffff"
},
{
"_$id": "dyei47qq",
"_$id": "6vznujfd",
"_$type": "Label",
"name": "label_count",
"x": 110,
"x": 108,
"y": 233,
"width": 72,
"height": 20,
"centerX": 2,
"centerX": 0,
"text": "03/20",
"fontSize": 24,
"color": "rgba(0, 0, 0, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "kqiusmti",
"_$id": "0jjnp6zh",
"_$type": "Label",
"name": "month",
"x": 94,
@@ -539,7 +544,7 @@
]
},
{
"_$id": "7v5iov33",
"_$id": "3sbxo969",
"_$type": "Box",
"name": "Box(3)",
"x": 672,
@@ -550,45 +555,46 @@
"_$type": "79064920-30a6-4b11-a82e-bbdd4112c4e1",
"scriptPath": "../src/views/TrophyUnit.ts",
"icon": {
"_$ref": "pbaarf42"
"_$ref": "xk7btt6d"
},
"label_count": {
"_$ref": "vysadw66"
"_$ref": "42lm20bs"
},
"label_month": {
"_$ref": "w2el6lze"
"_$ref": "ch29xisl"
}
}
],
"_$child": [
{
"_$id": "pbaarf42",
"_$id": "xk7btt6d",
"_$type": "Image",
"name": "icon",
"width": 288,
"height": 288,
"skin": "res://39efa94a-7d72-41e0-8970-51e3508f01f8",
"skin": "res://7d235ac1-6755-4409-ab86-23aaf41e1537",
"useSourceSize": true,
"color": "#ffffff"
},
{
"_$id": "vysadw66",
"_$id": "42lm20bs",
"_$type": "Label",
"name": "label_count",
"x": 110,
"x": 108,
"y": 233,
"width": 72,
"height": 20,
"centerX": 2,
"centerX": 0,
"text": "03/20",
"fontSize": 24,
"color": "rgba(0, 0, 0, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "w2el6lze",
"_$id": "ch29xisl",
"_$type": "Label",
"name": "month",
"x": 94,
@@ -609,7 +615,7 @@
]
},
{
"_$id": "3hdbfl3a",
"_$id": "fmb77cdv",
"_$type": "Sprite",
"name": "Sprite",
"y": 288,