add trophy logic

This commit is contained in:
2025-05-22 14:54:48 +08:00
parent 16a5eb9e6b
commit 2bf07ab8f6
27 changed files with 587 additions and 127 deletions

View File

@@ -20,6 +20,9 @@
"btn_trophy": {
"_$ref": "ft6m7zwa"
},
"btn_trophy_red": {
"_$ref": "zx15vggp"
},
"icon_trophy": {
"_$ref": "e7a1ntdg"
},
@@ -146,7 +149,30 @@
"height": 75,
"skin": "res://4458c7de-47ff-496e-a28f-be808c0823b3",
"useSourceSize": true,
"color": "#ffffff"
"color": "#ffffff",
"_$child": [
{
"_$id": "zx15vggp",
"_$type": "Sprite",
"name": "Sprite",
"x": 64,
"y": -4,
"width": 24,
"height": 24,
"_gcmds": [
{
"_$type": "DrawCircleCmd",
"x": 0.5,
"y": 0.5,
"radius": 0.5,
"percent": true,
"lineWidth": 4,
"lineColor": "rgba(255, 255, 255, 1)",
"fillColor": "rgba(229, 34, 28, 1)"
}
]
}
]
},
{
"_$id": "e7a1ntdg",

View File

@@ -0,0 +1,169 @@
{
"_$ver": 1,
"_$id": "6l8gfnd1",
"_$type": "Box",
"name": "TrophyClaim",
"width": 1080,
"height": 1920,
"left": 0,
"right": 0,
"top": 0,
"bottom": 0,
"_$comp": [
{
"_$type": "0550b681-b602-49fe-900f-e30866ce922c",
"scriptPath": "../src/views/TrophyClaim.ts",
"icon": {
"_$ref": "ta6ji66s"
},
"label_date": {
"_$ref": "a0u7wsik"
},
"btn_close": {
"_$ref": "qgwt28k7"
}
}
],
"_$child": [
{
"_$id": "l3kqo0ly",
"_$type": "Image",
"name": "Image",
"width": 1080,
"height": 1920,
"alpha": 0.8,
"left": 0,
"right": 0,
"top": 0,
"bottom": 0,
"skin": "res://a98f334e-ce04-4cd0-8fc5-bbdf9b048609",
"color": "#000000"
},
{
"_$id": "21y8h6ei",
"_$type": "Box",
"name": "center",
"y": 264,
"width": 1080,
"height": 1080,
"centerX": 0,
"centerY": -156,
"_$child": [
{
"_$id": "vngawy58",
"_$type": "Image",
"name": "img_light_yellow",
"width": 1080,
"height": 1080,
"centerX": 0,
"centerY": 0,
"skin": "res://0403c03d-0fbb-4930-8cf7-c4bf0f4d45b9",
"useSourceSize": true,
"color": "#ffffff"
},
{
"_$id": "ta6ji66s",
"_$type": "Image",
"name": "trophy",
"x": 123,
"y": 123,
"width": 834,
"height": 834,
"centerX": 0,
"centerY": 0,
"skin": "res://7d235ac1-6755-4409-ab86-23aaf41e1537",
"color": "#ffffff"
},
{
"_$id": "qgwt28k7",
"_$type": "Box",
"name": "btn_close",
"x": 180,
"y": 1140,
"width": 720,
"height": 156,
"bottom": -216,
"centerX": 0,
"_$child": [
{
"_$id": "y8abda90",
"_$type": "Sprite",
"name": "Sprite",
"width": 720,
"height": 156,
"mouseThrough": true,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 20,
"rt": 20,
"lb": 20,
"rb": 20,
"percent": true,
"lineWidth": 1,
"fillColor": "#FFFFFF"
}
]
},
{
"_$id": "6v9udrtu",
"_$type": "Label",
"name": "label",
"x": -90,
"y": 28,
"width": 900,
"height": 100,
"centerX": 0,
"centerY": 0,
"text": "Claim",
"fontSize": 60,
"color": "rgba(29, 92, 220, 1)",
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
},
{
"_$id": "0eaixmbm",
"_$type": "Label",
"name": "titlle",
"x": 90,
"y": -10,
"width": 900,
"height": 100,
"top": -10,
"centerX": 0,
"text": "Conratulations!",
"fontSize": 84,
"color": "#FFFFFF",
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "a0u7wsik",
"_$type": "Label",
"name": "label_date",
"x": 90,
"y": 1010,
"width": 900,
"height": 60,
"alpha": 0.8,
"bottom": 10,
"centerX": 0,
"text": "Sep 11, 2024",
"fontSize": 60,
"color": "#FFFFFF",
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
}
]
}

View File

@@ -0,0 +1,3 @@
{
"uuid": "b12ed6b6-072b-4dd9-ab6f-c544692a6422"
}

View File

@@ -104,8 +104,8 @@
"align": "center",
"_$child": [
{
"_$id": "0cxaz0lv",
"_$prefab": "381b129b-cb47-4a77-805d-6d4637bc67b8",
"_$id": "g7t27k1h",
"_$prefab": "ef797791-e197-4854-bf49-347fe92999f4",
"name": "TrophyRoomYear",
"active": true,
"x": 0,

View File

@@ -1,6 +1,6 @@
{
"_$ver": 1,
"_$id": "qayij6fq",
"_$id": "42qxmdwy",
"_$type": "VBox",
"name": "TrophyRoomCell",
"y": 120,
@@ -10,16 +10,16 @@
"align": "center",
"_$child": [
{
"_$id": "edutm8p9",
"_$id": "od2un0s9",
"_$type": "HBox",
"name": "HBox",
"width": 984,
"height": 288,
"space": 48,
"space": 0,
"align": "middle",
"_$child": [
{
"_$id": "npywocl2",
"_$id": "t4qzx693",
"_$type": "Box",
"name": "Box(1)",
"width": 328,
@@ -29,22 +29,22 @@
"_$type": "79064920-30a6-4b11-a82e-bbdd4112c4e1",
"scriptPath": "../src/views/TrophyUnit.ts",
"bg_light": {
"_$ref": "7a93ikng"
"_$ref": "rnanoiet"
},
"icon": {
"_$ref": "232cncr7"
"_$ref": "cnlfb8yz"
},
"label_count": {
"_$ref": "jafwv0lk"
"_$ref": "2bldvkij"
},
"label_month": {
"_$ref": "5ifvmsv6"
"_$ref": "5wwqja5x"
}
}
],
"_$child": [
{
"_$id": "7a93ikng",
"_$id": "rnanoiet",
"_$type": "Image",
"name": "bg_light",
"x": 20,
@@ -55,7 +55,7 @@
"color": "#ffffff"
},
{
"_$id": "232cncr7",
"_$id": "cnlfb8yz",
"_$type": "Image",
"name": "icon",
"x": 20,
@@ -63,15 +63,14 @@
"height": 288,
"centerX": 0,
"skin": "res://7d235ac1-6755-4409-ab86-23aaf41e1537",
"useSourceSize": true,
"color": "#ffffff"
},
{
"_$id": "jafwv0lk",
"_$id": "2bldvkij",
"_$type": "Label",
"name": "label_count",
"x": 128,
"y": 233,
"y": 234,
"width": 72,
"height": 20,
"centerX": 0,
@@ -84,7 +83,7 @@
"padding": "0,0,0,0"
},
{
"_$id": "5ifvmsv6",
"_$id": "5wwqja5x",
"_$type": "Label",
"name": "month",
"x": 114,
@@ -103,56 +102,59 @@
]
},
{
"_$id": "h293u30o",
"_$id": "u3azxf82",
"_$type": "Box",
"name": "Box(2)",
"x": 376,
"width": 288,
"x": 328,
"width": 328,
"height": 288,
"_$comp": [
{
"_$type": "79064920-30a6-4b11-a82e-bbdd4112c4e1",
"scriptPath": "../src/views/TrophyUnit.ts",
"bg_light": {
"_$ref": "tsk96lzw"
"_$ref": "tnjynmgf"
},
"icon": {
"_$ref": "vnxa59lv"
"_$ref": "0qe74n99"
},
"label_count": {
"_$ref": "3matj08s"
"_$ref": "9dsn53bb"
},
"label_month": {
"_$ref": "z4msejq5"
"_$ref": "zse8y0wo"
}
}
],
"_$child": [
{
"_$id": "tsk96lzw",
"_$id": "tnjynmgf",
"_$type": "Image",
"name": "bg_light",
"x": 20,
"width": 288,
"height": 288,
"centerX": 0,
"skin": "res://d0c3b007-6036-460a-b23d-09d6f2492886",
"color": "#ffffff"
},
{
"_$id": "vnxa59lv",
"_$id": "0qe74n99",
"_$type": "Image",
"name": "icon",
"x": 20,
"width": 288,
"height": 288,
"centerX": 0,
"skin": "res://7d235ac1-6755-4409-ab86-23aaf41e1537",
"useSourceSize": true,
"color": "#ffffff"
},
{
"_$id": "3matj08s",
"_$id": "9dsn53bb",
"_$type": "Label",
"name": "label_count",
"x": 108,
"y": 233,
"x": 128,
"y": 234,
"width": 72,
"height": 20,
"centerX": 0,
@@ -165,10 +167,10 @@
"padding": "0,0,0,0"
},
{
"_$id": "z4msejq5",
"_$id": "zse8y0wo",
"_$type": "Label",
"name": "month",
"x": 94,
"x": 114,
"y": 334,
"width": 100,
"height": 60,
@@ -184,56 +186,59 @@
]
},
{
"_$id": "g7w60s1c",
"_$id": "wle8hrmr",
"_$type": "Box",
"name": "Box(3)",
"x": 712,
"width": 288,
"x": 656,
"width": 328,
"height": 288,
"_$comp": [
{
"_$type": "79064920-30a6-4b11-a82e-bbdd4112c4e1",
"scriptPath": "../src/views/TrophyUnit.ts",
"bg_light": {
"_$ref": "ka2embmi"
"_$ref": "o57stpd9"
},
"icon": {
"_$ref": "d1fdbz6w"
"_$ref": "en1ghf80"
},
"label_count": {
"_$ref": "6rod3nlm"
"_$ref": "1znenn3j"
},
"label_month": {
"_$ref": "tmao7m9v"
"_$ref": "row347fk"
}
}
],
"_$child": [
{
"_$id": "ka2embmi",
"_$id": "o57stpd9",
"_$type": "Image",
"name": "bg_light",
"x": 20,
"width": 288,
"height": 288,
"centerX": 0,
"skin": "res://d0c3b007-6036-460a-b23d-09d6f2492886",
"color": "#ffffff"
},
{
"_$id": "d1fdbz6w",
"_$id": "en1ghf80",
"_$type": "Image",
"name": "icon",
"x": 20,
"width": 288,
"height": 288,
"centerX": 0,
"skin": "res://7d235ac1-6755-4409-ab86-23aaf41e1537",
"useSourceSize": true,
"color": "#ffffff"
},
{
"_$id": "6rod3nlm",
"_$id": "1znenn3j",
"_$type": "Label",
"name": "label_count",
"x": 108,
"y": 233,
"x": 128,
"y": 234,
"width": 72,
"height": 20,
"centerX": 0,
@@ -246,10 +251,10 @@
"padding": "0,0,0,0"
},
{
"_$id": "tmao7m9v",
"_$id": "row347fk",
"_$type": "Label",
"name": "month",
"x": 94,
"x": 114,
"y": 334,
"width": 100,
"height": 60,
@@ -267,7 +272,7 @@
]
},
{
"_$id": "btspwass",
"_$id": "so760lhs",
"_$type": "Sprite",
"name": "Sprite",
"x": 12,

View File

@@ -1,3 +1,3 @@
{
"uuid": "c4bc91b4-43cc-4655-b508-946a63b6534f"
"uuid": "770e3b0c-7e51-4656-9a08-46992057f0a2"
}

View File

@@ -1,6 +1,6 @@
{
"_$ver": 1,
"_$id": "4d6d3tpb",
"_$id": "0cxaz0lv",
"_$type": "VBox",
"name": "TrophyRoomYear",
"width": 984,
@@ -9,14 +9,14 @@
"align": "center",
"_$child": [
{
"_$id": "ijq66j2p",
"_$id": "kq3dv2lv",
"_$type": "Box",
"name": "year",
"width": 984,
"height": 120,
"_$child": [
{
"_$id": "5y2etcc5",
"_$id": "4v0nfps1",
"_$type": "Sprite",
"name": "Sprite",
"y": 24,
@@ -40,10 +40,10 @@
]
},
{
"_$id": "fkmnbowd",
"_$id": "i7ttmqwh",
"_$type": "Label",
"name": "Label",
"y": 48,
"y": 24,
"width": 984,
"height": 72,
"centerX": 0,
@@ -58,8 +58,8 @@
]
},
{
"_$id": "6j7wol13",
"_$prefab": "c4bc91b4-43cc-4655-b508-946a63b6534f",
"_$id": "qn7hlno1",
"_$prefab": "770e3b0c-7e51-4656-9a08-46992057f0a2",
"name": "TrophyRoomCell",
"active": true,
"x": 0,

View File

@@ -1,3 +1,3 @@
{
"uuid": "381b129b-cb47-4a77-805d-6d4637bc67b8"
"uuid": "ef797791-e197-4854-bf49-347fe92999f4"
}