Compare commits
10 Commits
93193bb0ab
...
ad8e6a0529
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad8e6a0529 | ||
| 2765e3500c | |||
| 0fc9b788b9 | |||
| c4b6b40aae | |||
| 55b7b39b5a | |||
| 14661e7bf4 | |||
| ea0e00f495 | |||
| cbef3f7cd8 | |||
| e6a0f41ec8 | |||
| 913d7ea615 |
BIN
assets/fonts/Inter1-Bold.ttf
Normal file
BIN
assets/fonts/Inter1-Bold.ttf
Normal file
Binary file not shown.
3
assets/fonts/Inter1-Bold.ttf.meta
Normal file
3
assets/fonts/Inter1-Bold.ttf.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"uuid": "e4a5ff09-434b-4d65-8a4b-b351e63ecab8"
|
||||
}
|
||||
BIN
assets/images/Congratulations.png
Normal file
BIN
assets/images/Congratulations.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
6
assets/images/Congratulations.png.meta
Normal file
6
assets/images/Congratulations.png.meta
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"uuid": "2c16b5f4-49d5-4203-8099-b285426e740e",
|
||||
"importer": {
|
||||
"textureType": 2
|
||||
}
|
||||
}
|
||||
@@ -3,8 +3,8 @@
|
||||
"_$id": "wjk0u6h3",
|
||||
"_$type": "Box",
|
||||
"name": "CommonTips",
|
||||
"width": 1920,
|
||||
"height": 1080,
|
||||
"width": 1080,
|
||||
"height": 1920,
|
||||
"_mouseState": 2,
|
||||
"drawCallOptimize": true,
|
||||
"left": 0,
|
||||
@@ -42,8 +42,8 @@
|
||||
"name": "Image",
|
||||
"x": -100,
|
||||
"y": -100,
|
||||
"width": 2120,
|
||||
"height": 1280,
|
||||
"width": 1280,
|
||||
"height": 2120,
|
||||
"alpha": 0.6,
|
||||
"left": -100,
|
||||
"right": -100,
|
||||
@@ -56,8 +56,8 @@
|
||||
"_$id": "r463so4u",
|
||||
"_$type": "Box",
|
||||
"name": "center",
|
||||
"x": 960,
|
||||
"y": 540,
|
||||
"x": 540,
|
||||
"y": 960,
|
||||
"width": 960,
|
||||
"height": 520,
|
||||
"anchorX": 0.5,
|
||||
@@ -145,7 +145,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 45,
|
||||
"color": "rgba(29, 92, 220, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -229,7 +228,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 45,
|
||||
"color": "rgba(255, 255, 255, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -310,7 +308,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 54,
|
||||
"color": "rgba(45, 49, 56, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle",
|
||||
"strokeColor": "rgba(45, 49, 56, 1)"
|
||||
|
||||
@@ -154,6 +154,35 @@
|
||||
}
|
||||
],
|
||||
"_$child": [
|
||||
{
|
||||
"_$id": "7bz520zl",
|
||||
"_$type": "Sprite",
|
||||
"name": "sdw",
|
||||
"width": 936,
|
||||
"height": 144,
|
||||
"alpha": 0.08,
|
||||
"mouseThrough": true,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 36,
|
||||
"rt": 36,
|
||||
"lb": 36,
|
||||
"rb": 36,
|
||||
"lineWidth": 1,
|
||||
"fillColor": "#FFFFFF"
|
||||
}
|
||||
],
|
||||
"_filters": [
|
||||
{
|
||||
"_$type": "GlowFilter",
|
||||
"offX": 0,
|
||||
"offY": 4,
|
||||
"blur": 8,
|
||||
"color": "#000"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "590euu2q",
|
||||
"_$type": "Sprite",
|
||||
@@ -212,6 +241,35 @@
|
||||
}
|
||||
],
|
||||
"_$child": [
|
||||
{
|
||||
"_$id": "gwsq87bq",
|
||||
"_$type": "Sprite",
|
||||
"name": "sdw",
|
||||
"width": 936,
|
||||
"height": 144,
|
||||
"alpha": 0.08,
|
||||
"mouseThrough": true,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 36,
|
||||
"rt": 36,
|
||||
"lb": 36,
|
||||
"rb": 36,
|
||||
"lineWidth": 1,
|
||||
"fillColor": "#FFFFFF"
|
||||
}
|
||||
],
|
||||
"_filters": [
|
||||
{
|
||||
"_$type": "GlowFilter",
|
||||
"offX": 0,
|
||||
"offY": 4,
|
||||
"blur": 8,
|
||||
"color": "#000"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "yjk1xq2a",
|
||||
"_$type": "Sprite",
|
||||
@@ -270,6 +328,35 @@
|
||||
}
|
||||
],
|
||||
"_$child": [
|
||||
{
|
||||
"_$id": "tqda3z60",
|
||||
"_$type": "Sprite",
|
||||
"name": "sdw",
|
||||
"width": 936,
|
||||
"height": 144,
|
||||
"alpha": 0.08,
|
||||
"mouseThrough": true,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 36,
|
||||
"rt": 36,
|
||||
"lb": 36,
|
||||
"rb": 36,
|
||||
"lineWidth": 1,
|
||||
"fillColor": "#FFFFFF"
|
||||
}
|
||||
],
|
||||
"_filters": [
|
||||
{
|
||||
"_$type": "GlowFilter",
|
||||
"offX": 0,
|
||||
"offY": 4,
|
||||
"blur": 8,
|
||||
"color": "#000"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "nfk6pjgd",
|
||||
"_$type": "Sprite",
|
||||
@@ -328,6 +415,35 @@
|
||||
}
|
||||
],
|
||||
"_$child": [
|
||||
{
|
||||
"_$id": "vf17vdq3",
|
||||
"_$type": "Sprite",
|
||||
"name": "sdw",
|
||||
"width": 936,
|
||||
"height": 144,
|
||||
"alpha": 0.08,
|
||||
"mouseThrough": true,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 36,
|
||||
"rt": 36,
|
||||
"lb": 36,
|
||||
"rb": 36,
|
||||
"lineWidth": 1,
|
||||
"fillColor": "#FFFFFF"
|
||||
}
|
||||
],
|
||||
"_filters": [
|
||||
{
|
||||
"_$type": "GlowFilter",
|
||||
"offX": 0,
|
||||
"offY": 4,
|
||||
"blur": 8,
|
||||
"color": "#000"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "nogfpbyx",
|
||||
"_$type": "Sprite",
|
||||
@@ -386,6 +502,35 @@
|
||||
}
|
||||
],
|
||||
"_$child": [
|
||||
{
|
||||
"_$id": "wzn7s0ir",
|
||||
"_$type": "Sprite",
|
||||
"name": "sdw",
|
||||
"width": 936,
|
||||
"height": 144,
|
||||
"alpha": 0.08,
|
||||
"mouseThrough": true,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 36,
|
||||
"rt": 36,
|
||||
"lb": 36,
|
||||
"rb": 36,
|
||||
"lineWidth": 1,
|
||||
"fillColor": "#FFFFFF"
|
||||
}
|
||||
],
|
||||
"_filters": [
|
||||
{
|
||||
"_$type": "GlowFilter",
|
||||
"offX": 0,
|
||||
"offY": 4,
|
||||
"blur": 8,
|
||||
"color": "#000"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "2unm1bxx",
|
||||
"_$type": "Sprite",
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
"star4": {
|
||||
"_$ref": "kn1x3k7e"
|
||||
},
|
||||
"img_title": {
|
||||
"_$ref": "zu1c4o9d"
|
||||
},
|
||||
"label_diffucuty": {
|
||||
"_$ref": "sli8jsxk"
|
||||
},
|
||||
@@ -144,8 +147,8 @@
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 0,
|
||||
"rt": 0,
|
||||
"lt": 48,
|
||||
"rt": 48,
|
||||
"lb": 48,
|
||||
"rb": 48,
|
||||
"lineWidth": 1,
|
||||
@@ -217,20 +220,15 @@
|
||||
"color": "#ffffff"
|
||||
},
|
||||
{
|
||||
"_$id": "khlzgsr5",
|
||||
"_$type": "Label",
|
||||
"name": "Label",
|
||||
"y": 226,
|
||||
"_$id": "zu1c4o9d",
|
||||
"_$type": "Image",
|
||||
"name": "Congratulations!",
|
||||
"y": 168,
|
||||
"width": 984,
|
||||
"height": 100,
|
||||
"centerX": 0,
|
||||
"centerY": -147,
|
||||
"text": "Congratulations!",
|
||||
"font": "res://3f79306d-f490-4a54-a4f3-26cb51d56a12",
|
||||
"fontSize": 80,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
"height": 198,
|
||||
"skin": "res://2c16b5f4-49d5-4203-8099-b285426e740e",
|
||||
"useSourceSize": true,
|
||||
"color": "#ffffff"
|
||||
},
|
||||
{
|
||||
"_$id": "n4jhcwy7",
|
||||
@@ -442,7 +440,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(255, 255, 255, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -498,7 +495,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(29, 92, 220, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -580,7 +576,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(255, 255, 255, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
|
||||
@@ -435,7 +435,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(255, 255, 255, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -490,7 +489,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(29, 92, 220, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -571,7 +569,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(255, 255, 255, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
"star4": {
|
||||
"_$ref": "08ict2h8"
|
||||
},
|
||||
"img_title": {
|
||||
"_$ref": "v49hsu2v"
|
||||
},
|
||||
"label_diffucuty": {
|
||||
"_$ref": "mdvetv8w"
|
||||
},
|
||||
@@ -144,8 +147,8 @@
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 0,
|
||||
"rt": 0,
|
||||
"lt": 48,
|
||||
"rt": 48,
|
||||
"lb": 48,
|
||||
"rb": 48,
|
||||
"lineWidth": 1,
|
||||
@@ -222,20 +225,15 @@
|
||||
"color": "#ffffff"
|
||||
},
|
||||
{
|
||||
"_$id": "bp5q98ww",
|
||||
"_$type": "Label",
|
||||
"name": "Label",
|
||||
"y": 226,
|
||||
"_$id": "v49hsu2v",
|
||||
"_$type": "Image",
|
||||
"name": "Congratulations!",
|
||||
"y": 166,
|
||||
"width": 984,
|
||||
"height": 100,
|
||||
"centerX": 0,
|
||||
"centerY": -147,
|
||||
"text": "Congratulations!",
|
||||
"font": "res://3f79306d-f490-4a54-a4f3-26cb51d56a12",
|
||||
"fontSize": 80,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
"height": 198,
|
||||
"skin": "res://2c16b5f4-49d5-4203-8099-b285426e740e",
|
||||
"useSourceSize": true,
|
||||
"color": "#ffffff"
|
||||
},
|
||||
{
|
||||
"_$id": "b4ajczjh",
|
||||
@@ -446,7 +444,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(255, 255, 255, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -502,7 +499,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(29, 92, 220, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -585,7 +581,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(255, 255, 255, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
|
||||
@@ -471,7 +471,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(255, 255, 255, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -526,7 +525,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(29, 92, 220, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -579,7 +577,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(255, 255, 255, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
|
||||
@@ -226,7 +226,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(255, 255, 255, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -281,7 +280,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(29, 92, 220, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -334,7 +332,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(29, 92, 220, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -356,7 +353,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 72,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
},
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"_$id": "74k3rws3",
|
||||
"_$type": "Box",
|
||||
"name": "GameOver_H",
|
||||
"width": 1920,
|
||||
"height": 1080,
|
||||
"width": 1080,
|
||||
"height": 1920,
|
||||
"_mouseState": 2,
|
||||
"drawCallOptimize": true,
|
||||
"left": 0,
|
||||
@@ -36,8 +36,8 @@
|
||||
"name": "Image",
|
||||
"x": -100,
|
||||
"y": -100,
|
||||
"width": 2120,
|
||||
"height": 1280,
|
||||
"width": 1280,
|
||||
"height": 2120,
|
||||
"alpha": 0.6,
|
||||
"left": -100,
|
||||
"right": -100,
|
||||
@@ -50,8 +50,8 @@
|
||||
"_$id": "ak02a9xq",
|
||||
"_$type": "Box",
|
||||
"name": "center",
|
||||
"x": 960,
|
||||
"y": 540,
|
||||
"x": 540,
|
||||
"y": 960,
|
||||
"width": 960,
|
||||
"height": 630,
|
||||
"anchorX": 0.5,
|
||||
@@ -179,7 +179,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 45,
|
||||
"color": "rgba(255, 255, 255, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -242,7 +241,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 45,
|
||||
"color": "rgba(29, 92, 220, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -296,7 +294,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 45,
|
||||
"color": "rgba(29, 92, 220, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -320,7 +317,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 54,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
},
|
||||
|
||||
@@ -165,7 +165,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(255, 255, 255, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -218,7 +217,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 60,
|
||||
"color": "rgba(29, 92, 220, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -240,7 +238,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 72,
|
||||
"color": "rgba(45, 49, 56, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
},
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"_$id": "51qgrknl",
|
||||
"_$type": "Box",
|
||||
"name": "GamePause_H",
|
||||
"width": 1920,
|
||||
"height": 1080,
|
||||
"width": 1080,
|
||||
"height": 1920,
|
||||
"_mouseState": 2,
|
||||
"drawCallOptimize": true,
|
||||
"left": 0,
|
||||
@@ -36,8 +36,8 @@
|
||||
"name": "Image",
|
||||
"x": -100,
|
||||
"y": -100,
|
||||
"width": 2120,
|
||||
"height": 1280,
|
||||
"width": 1280,
|
||||
"height": 2120,
|
||||
"alpha": 0.6,
|
||||
"left": -100,
|
||||
"right": -100,
|
||||
@@ -50,8 +50,8 @@
|
||||
"_$id": "2oq6bad5",
|
||||
"_$type": "Box",
|
||||
"name": "center",
|
||||
"x": 960,
|
||||
"y": 540,
|
||||
"x": 540,
|
||||
"y": 960,
|
||||
"width": 960,
|
||||
"height": 522,
|
||||
"anchorX": 0.5,
|
||||
@@ -138,7 +138,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 45,
|
||||
"color": "rgba(29, 92, 220, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -220,7 +219,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 45,
|
||||
"color": "rgba(255, 255, 255, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -242,7 +240,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 54,
|
||||
"color": "rgba(45, 49, 56, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
},
|
||||
@@ -295,7 +292,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 45,
|
||||
"color": "rgba(45, 49, 56, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
@@ -338,7 +334,6 @@
|
||||
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
|
||||
"fontSize": 45,
|
||||
"color": "rgba(45, 49, 56, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle"
|
||||
}
|
||||
|
||||
@@ -27,13 +27,13 @@
|
||||
"_$ref": "zbppj6k0"
|
||||
},
|
||||
"btn_play": {
|
||||
"_$ref": "ttv6dk1v"
|
||||
"_$ref": "lhrgg9o8"
|
||||
},
|
||||
"btn_continue": {
|
||||
"_$ref": "ofvmzh0x"
|
||||
"_$ref": "cjibqmuv"
|
||||
},
|
||||
"btn_more": {
|
||||
"_$ref": "8mgjn0da"
|
||||
"_$ref": "7rz2zjd7"
|
||||
},
|
||||
"btn_new_blue": {
|
||||
"_$ref": "6irhm6t7"
|
||||
@@ -58,13 +58,42 @@
|
||||
"top": 150,
|
||||
"centerX": 0,
|
||||
"_$child": [
|
||||
{
|
||||
"_$id": "4gdjhw3f",
|
||||
"_$type": "Sprite",
|
||||
"name": "sdw",
|
||||
"width": 936,
|
||||
"height": 468,
|
||||
"alpha": 0.08,
|
||||
"mouseThrough": true,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 36,
|
||||
"rt": 36,
|
||||
"lb": 36,
|
||||
"rb": 36,
|
||||
"lineWidth": 1,
|
||||
"fillColor": "rgba(29, 92, 220, 1)"
|
||||
}
|
||||
],
|
||||
"_filters": [
|
||||
{
|
||||
"_$type": "GlowFilter",
|
||||
"offX": 0,
|
||||
"offY": 4,
|
||||
"blur": 8,
|
||||
"color": "#1d5cdc"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "7270vjom",
|
||||
"_$type": "Image",
|
||||
"name": "bg",
|
||||
"width": 936,
|
||||
"height": 468,
|
||||
"skin": "res://07b90718-84ee-4924-9098-8f0ee3663d92",
|
||||
"skin": "res://342d91e6-0434-4d52-b16c-3c536060f881",
|
||||
"color": "#ffffff"
|
||||
},
|
||||
{
|
||||
@@ -101,25 +130,24 @@
|
||||
"valign": "middle"
|
||||
},
|
||||
{
|
||||
"_$id": "ttv6dk1v",
|
||||
"_$type": "Sprite",
|
||||
"_$id": "h6dakob0",
|
||||
"_$type": "Image",
|
||||
"name": "trophy",
|
||||
"x": 468,
|
||||
"width": 468,
|
||||
"height": 468,
|
||||
"right": 0,
|
||||
"skin": "res://07b90718-84ee-4924-9098-8f0ee3663d92",
|
||||
"color": "#ffffff"
|
||||
},
|
||||
{
|
||||
"_$id": "lhrgg9o8",
|
||||
"_$type": "Box",
|
||||
"name": "btn_play",
|
||||
"x": 56,
|
||||
"y": 318,
|
||||
"width": 195,
|
||||
"height": 96,
|
||||
"visible": false,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 24,
|
||||
"rt": 24,
|
||||
"lb": 24,
|
||||
"rb": 24,
|
||||
"lineWidth": 1,
|
||||
"fillColor": "#FFFFFF"
|
||||
}
|
||||
],
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
@@ -128,6 +156,54 @@
|
||||
}
|
||||
],
|
||||
"_$child": [
|
||||
{
|
||||
"_$id": "jz7snz28",
|
||||
"_$type": "Sprite",
|
||||
"name": "sdw",
|
||||
"width": 195,
|
||||
"height": 96,
|
||||
"alpha": 0.08,
|
||||
"mouseThrough": true,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 24,
|
||||
"rt": 24,
|
||||
"lb": 24,
|
||||
"rb": 24,
|
||||
"lineWidth": 1,
|
||||
"fillColor": "#000000"
|
||||
}
|
||||
],
|
||||
"_filters": [
|
||||
{
|
||||
"_$type": "GlowFilter",
|
||||
"offX": 0,
|
||||
"offY": 4,
|
||||
"blur": 8,
|
||||
"color": "#000000"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "ttv6dk1v",
|
||||
"_$type": "Sprite",
|
||||
"name": "Sprite",
|
||||
"width": 195,
|
||||
"height": 96,
|
||||
"mouseThrough": true,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 24,
|
||||
"rt": 24,
|
||||
"lb": 24,
|
||||
"rb": 24,
|
||||
"lineWidth": 1,
|
||||
"fillColor": "#FFFFFF"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "8s2b3obv",
|
||||
"_$type": "Label",
|
||||
@@ -146,25 +222,14 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "ofvmzh0x",
|
||||
"_$type": "Sprite",
|
||||
"_$id": "cjibqmuv",
|
||||
"_$type": "Box",
|
||||
"name": "btn_continue",
|
||||
"x": 56,
|
||||
"y": 318,
|
||||
"width": 309,
|
||||
"height": 96,
|
||||
"visible": false,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 24,
|
||||
"rt": 24,
|
||||
"lb": 24,
|
||||
"rb": 24,
|
||||
"lineWidth": 1,
|
||||
"fillColor": "#FFFFFF"
|
||||
}
|
||||
],
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
@@ -173,6 +238,54 @@
|
||||
}
|
||||
],
|
||||
"_$child": [
|
||||
{
|
||||
"_$id": "ldvu1z8n",
|
||||
"_$type": "Sprite",
|
||||
"name": "sdw",
|
||||
"width": 309,
|
||||
"height": 96,
|
||||
"alpha": 0.08,
|
||||
"mouseThrough": true,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 24,
|
||||
"rt": 24,
|
||||
"lb": 24,
|
||||
"rb": 24,
|
||||
"lineWidth": 1,
|
||||
"fillColor": "#000000"
|
||||
}
|
||||
],
|
||||
"_filters": [
|
||||
{
|
||||
"_$type": "GlowFilter",
|
||||
"offX": 0,
|
||||
"offY": 4,
|
||||
"blur": 8,
|
||||
"color": "#000000"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "mmkr2ncz",
|
||||
"_$type": "Sprite",
|
||||
"name": "Sprite",
|
||||
"width": 309,
|
||||
"height": 96,
|
||||
"mouseThrough": true,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 24,
|
||||
"rt": 24,
|
||||
"lb": 24,
|
||||
"rb": 24,
|
||||
"lineWidth": 1,
|
||||
"fillColor": "#FFFFFF"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "2ou1bw71",
|
||||
"_$type": "Label",
|
||||
@@ -191,24 +304,14 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "8mgjn0da",
|
||||
"_$type": "Sprite",
|
||||
"_$id": "7rz2zjd7",
|
||||
"_$type": "Box",
|
||||
"name": "btn_more",
|
||||
"x": 56,
|
||||
"y": 318,
|
||||
"width": 216,
|
||||
"height": 96,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 24,
|
||||
"rt": 24,
|
||||
"lb": 24,
|
||||
"rb": 24,
|
||||
"lineWidth": 1,
|
||||
"fillColor": "#FFFFFF"
|
||||
}
|
||||
],
|
||||
"visible": false,
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
@@ -217,6 +320,54 @@
|
||||
}
|
||||
],
|
||||
"_$child": [
|
||||
{
|
||||
"_$id": "ttvlua8e",
|
||||
"_$type": "Sprite",
|
||||
"name": "sdw",
|
||||
"width": 216,
|
||||
"height": 96,
|
||||
"alpha": 0.08,
|
||||
"mouseThrough": true,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 24,
|
||||
"rt": 24,
|
||||
"lb": 24,
|
||||
"rb": 24,
|
||||
"lineWidth": 1,
|
||||
"fillColor": "#000000"
|
||||
}
|
||||
],
|
||||
"_filters": [
|
||||
{
|
||||
"_$type": "GlowFilter",
|
||||
"offX": 0,
|
||||
"offY": 4,
|
||||
"blur": 8,
|
||||
"color": "#000000"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "qz81llea",
|
||||
"_$type": "Sprite",
|
||||
"name": "Sprite",
|
||||
"width": 216,
|
||||
"height": 96,
|
||||
"mouseThrough": true,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 24,
|
||||
"rt": 24,
|
||||
"lb": 24,
|
||||
"rb": 24,
|
||||
"lineWidth": 1,
|
||||
"fillColor": "#FFFFFF"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "w132wbbv",
|
||||
"_$type": "Label",
|
||||
@@ -233,17 +384,6 @@
|
||||
"valign": "middle"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "h6dakob0",
|
||||
"_$type": "Image",
|
||||
"name": "trophy",
|
||||
"x": 468,
|
||||
"width": 468,
|
||||
"height": 468,
|
||||
"right": 0,
|
||||
"skin": "res://07b90718-84ee-4924-9098-8f0ee3663d92",
|
||||
"color": "#ffffff"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -282,6 +422,7 @@
|
||||
"width": 792,
|
||||
"height": 168,
|
||||
"alpha": 0.2,
|
||||
"mouseThrough": true,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
@@ -362,6 +503,7 @@
|
||||
"width": 0,
|
||||
"height": 168,
|
||||
"alpha": 0.2,
|
||||
"mouseThrough": true,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
@@ -474,6 +616,35 @@
|
||||
}
|
||||
],
|
||||
"_$child": [
|
||||
{
|
||||
"_$id": "0t9pwkdo",
|
||||
"_$type": "Sprite",
|
||||
"name": "sdw",
|
||||
"width": 792,
|
||||
"height": 168,
|
||||
"alpha": 0.08,
|
||||
"mouseThrough": true,
|
||||
"_gcmds": [
|
||||
{
|
||||
"_$type": "DrawRoundRectCmd",
|
||||
"lt": 36,
|
||||
"rt": 36,
|
||||
"lb": 36,
|
||||
"rb": 36,
|
||||
"lineWidth": 1,
|
||||
"fillColor": "rgba(29, 92, 220, 1)"
|
||||
}
|
||||
],
|
||||
"_filters": [
|
||||
{
|
||||
"_$type": "GlowFilter",
|
||||
"offX": 0,
|
||||
"offY": 4,
|
||||
"blur": 8,
|
||||
"color": "#000000"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "sez4l9sx",
|
||||
"_$type": "Sprite",
|
||||
|
||||
@@ -59,6 +59,7 @@ export const respath = {
|
||||
bg_done_top: "images/bg_done_top.png",
|
||||
icon_star1: "images/star.png",
|
||||
icon_star2: "images/star2.png",
|
||||
Congratulations: "images/Congratulations.png",
|
||||
|
||||
home_top_dc_bg_normal: "images/bg_dc_top1.png",
|
||||
home_top_dc_bg_finish: "images/bg_dc_top2.png",
|
||||
@@ -83,16 +84,20 @@ export const respath = {
|
||||
trophy_bg_light_gold: "trophys/img_trophy_bg_light_gold.png",
|
||||
trophy_bg_light_grey: "trophys/img_trophy_bg_light_gray.png",
|
||||
|
||||
trophy_01: "trophys/trophy_01.png",
|
||||
trophy_02: "trophys/trophy_02.png",
|
||||
trophy_03: "trophys/trophy_03.png",
|
||||
trophy_04: "trophys/trophy_04.png",
|
||||
trophy_05: "trophys/trophy_05.png",
|
||||
trophy_06: "trophys/trophy_06.png",
|
||||
trophy_07: "trophys/trophy_07.png",
|
||||
trophy_08: "trophys/trophy_08.png",
|
||||
trophy_09: "trophys/trophy_09.png",
|
||||
trophy_10: "trophys/trophy_10.png",
|
||||
trophy_11: "trophys/trophy_11.png",
|
||||
trophy_12: "trophys/trophy_12.png"
|
||||
trophys: function func(): string[] {
|
||||
const list: Array<string> = []
|
||||
list.push("trophys/trophy_01.png")
|
||||
list.push("trophys/trophy_02.png")
|
||||
list.push("trophys/trophy_03.png")
|
||||
list.push("trophys/trophy_04.png")
|
||||
list.push("trophys/trophy_05.png")
|
||||
list.push("trophys/trophy_06.png")
|
||||
list.push("trophys/trophy_07.png")
|
||||
list.push("trophys/trophy_08.png")
|
||||
list.push("trophys/trophy_09.png")
|
||||
list.push("trophys/trophy_10.png")
|
||||
list.push("trophys/trophy_11.png")
|
||||
list.push("trophys/trophy_12.png")
|
||||
return list
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,33 +1,7 @@
|
||||
import { respath } from "../constants/respath"
|
||||
|
||||
export const MONTH_LIST = [
|
||||
{ year: 2024, month: 12, begin: 0, dayCount: 31, icon_res: respath.trophy_12 }
|
||||
|
||||
// { year: 2025, month: 1, begin: 3, dayCount: 31, icon_res: respath.trophy_01 },
|
||||
// { year: 2025, month: 2, begin: 6, dayCount: 30, icon_res: respath.trophy_02 },
|
||||
// { year: 2025, month: 3, begin: 6, dayCount: 31, icon_res: respath.trophy_03 },
|
||||
// { year: 2025, month: 4, begin: 2, dayCount: 30, icon_res: respath.trophy_04 },
|
||||
// { year: 2025, month: 5, begin: 4, dayCount: 31, icon_res: respath.trophy_05 },
|
||||
// { year: 2025, month: 6, begin: 0, dayCount: 30, icon_res: respath.trophy_06 },
|
||||
// { year: 2025, month: 7, begin: 2, dayCount: 31, icon_res: respath.trophy_07 },
|
||||
// { year: 2025, month: 8, begin: 5, dayCount: 31, icon_res: respath.trophy_08 },
|
||||
// { year: 2025, month: 9, begin: 1, dayCount: 30, icon_res: respath.trophy_09 },
|
||||
// { year: 2025, month: 10, begin: 3, dayCount: 31, icon_res: respath.trophy_10 },
|
||||
// { year: 2025, month: 11, begin: 6, dayCount: 30, icon_res: respath.trophy_11 },
|
||||
// { year: 2025, month: 12, begin: 1, dayCount: 31, icon_res: respath.trophy_12 },
|
||||
|
||||
// { year: 2026, month: 1, begin: 4, dayCount: 31, icon_res: respath.trophy_01 },
|
||||
// { year: 2026, month: 2, begin: 0, dayCount: 30, icon_res: respath.trophy_02 },
|
||||
// { year: 2026, month: 3, begin: 0, dayCount: 31, icon_res: respath.trophy_03 },
|
||||
// { year: 2026, month: 4, begin: 3, dayCount: 30, icon_res: respath.trophy_04 },
|
||||
// { year: 2026, month: 5, begin: 5, dayCount: 31, icon_res: respath.trophy_05 },
|
||||
// { year: 2026, month: 6, begin: 1, dayCount: 30, icon_res: respath.trophy_06 },
|
||||
// { year: 2026, month: 7, begin: 3, dayCount: 31, icon_res: respath.trophy_07 },
|
||||
// { year: 2026, month: 8, begin: 6, dayCount: 31, icon_res: respath.trophy_08 },
|
||||
// { year: 2026, month: 9, begin: 2, dayCount: 30, icon_res: respath.trophy_09 },
|
||||
// { year: 2026, month: 10, begin: 4, dayCount: 31, icon_res: respath.trophy_10 },
|
||||
// { year: 2026, month: 11, begin: 0, dayCount: 30, icon_res: respath.trophy_11 },
|
||||
// { year: 2026, month: 12, begin: 2, dayCount: 31, icon_res: respath.trophy_12 }
|
||||
{ year: 2024, month: 12, begin: 0, dayCount: 31, icon_res: respath.trophys()[11] }
|
||||
]
|
||||
|
||||
export function G_getMonthInfo(year: number, month: number): any {
|
||||
@@ -50,20 +24,6 @@ export class DCManager {
|
||||
}
|
||||
|
||||
public init(): void {
|
||||
const trophys: Array<string> = []
|
||||
trophys.push(respath.trophy_01)
|
||||
trophys.push(respath.trophy_02)
|
||||
trophys.push(respath.trophy_03)
|
||||
trophys.push(respath.trophy_04)
|
||||
trophys.push(respath.trophy_05)
|
||||
trophys.push(respath.trophy_06)
|
||||
trophys.push(respath.trophy_07)
|
||||
trophys.push(respath.trophy_08)
|
||||
trophys.push(respath.trophy_09)
|
||||
trophys.push(respath.trophy_10)
|
||||
trophys.push(respath.trophy_11)
|
||||
trophys.push(respath.trophy_12)
|
||||
|
||||
const now = new Date()
|
||||
const nowYear = now.getFullYear()
|
||||
const nowMonth = now.getMonth() + 1
|
||||
@@ -84,7 +44,7 @@ export class DCManager {
|
||||
const seconds = date2.getTime() - date1.getTime()
|
||||
const dayCount = Math.round(seconds / 1000 / 86400)
|
||||
const begin = date1.getDay()
|
||||
MONTH_LIST.push({ year: i, month: j, begin, dayCount, icon_res: trophys[j - 1] })
|
||||
MONTH_LIST.push({ year: i, month: j, begin, dayCount, icon_res: respath.trophys()[j - 1] })
|
||||
if (i === year && j === month) {
|
||||
b = true
|
||||
break
|
||||
|
||||
@@ -60,6 +60,7 @@ export class ResourceManager {
|
||||
this.resources.push({ url: respath.bg_done_top, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.icon_star1, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.icon_star2, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.Congratulations, type: Laya.Loader.IMAGE })
|
||||
|
||||
this.resources.push({ url: respath.home_top_dc_bg_normal, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.home_top_dc_bg_finish, type: Laya.Loader.IMAGE })
|
||||
@@ -72,18 +73,10 @@ export class ResourceManager {
|
||||
|
||||
this.resources.push({ url: respath.trophy_bg_light_gold, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.trophy_bg_light_grey, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.trophy_01, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.trophy_02, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.trophy_03, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.trophy_04, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.trophy_05, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.trophy_06, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.trophy_07, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.trophy_08, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.trophy_09, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.trophy_10, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.trophy_11, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.trophy_12, type: Laya.Loader.IMAGE })
|
||||
const trophys = respath.trophys()
|
||||
for (let i = 0; i < trophys.length; i++) {
|
||||
this.resources.push({ url: trophys[i], type: Laya.Loader.IMAGE })
|
||||
}
|
||||
|
||||
Laya.loader.load(this.resources, Laya.Handler.create(this, (obj: object) => { // 第二个参数:成功回调
|
||||
console.log("预加载资源结束>>>>", obj)
|
||||
|
||||
@@ -78,6 +78,13 @@ export class UIManager extends Laya.Script {
|
||||
resources.push({ url: respath.font_Medium, type: Laya.Loader.TTF })
|
||||
resources.push({ url: respath.font_Regular, type: Laya.Loader.TTF })
|
||||
resources.push({ url: respath.font_SemiBold, type: Laya.Loader.TTF })
|
||||
if (!config.H_SCREEN) { // 竖屏情况下预加载dc奖杯
|
||||
resources.push({ url: respath.home_top_dc_bg_normal, type: Laya.Loader.IMAGE })
|
||||
resources.push({ url: respath.home_top_dc_bg_finish, type: Laya.Loader.IMAGE })
|
||||
const now = new Date()
|
||||
const nowMonth = now.getMonth()
|
||||
resources.push({ url: respath.trophys()[nowMonth], type: Laya.Loader.IMAGE })
|
||||
}
|
||||
Laya.loader.load(resources, Laya.Handler.create(this, (obj: object) => { // 第二个参数:成功回调
|
||||
console.log("预加载字体结束>>>>", obj)
|
||||
if (config.H_SCREEN) {
|
||||
|
||||
@@ -33,7 +33,7 @@ export class Candy extends Laya.Script {
|
||||
return
|
||||
Laya.Tween.to(this.bg_sprite, { alpha: 0 }, 200)
|
||||
Laya.Tween.to(this.mask_sprite, { alpha: 0.1 }, 200)
|
||||
Laya.Tween.to(this.offset, { scaleX: 0.92, scaleY: 0.92 }, 200)
|
||||
Laya.Tween.to(this.offset, { scaleX: 0.96, scaleY: 0.96 }, 200)
|
||||
})
|
||||
this.owner.on(Laya.Event.MOUSE_UP, this, () => {
|
||||
if (this.available === false)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { config } from "../constants/config"
|
||||
import { Utility_EaseOut, Utility_EaseOut_2 } from "../utils/utility"
|
||||
import { CommonData } from "./common/CommonData"
|
||||
|
||||
const { regClass, property } = Laya
|
||||
@@ -10,9 +11,14 @@ export class Difficulty extends Laya.Script {
|
||||
@property(Laya.Box)
|
||||
public obj_items: Laya.Box
|
||||
|
||||
private mask: Laya.Image
|
||||
private offset: Laya.Box
|
||||
// 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次
|
||||
|
||||
onAwake(): void {
|
||||
this.mask = this.owner.getChildByName("mask") as Laya.Image
|
||||
this.mask.alpha = 0
|
||||
Laya.Tween.to(this.mask, { alpha: 0.4 }, 400, Utility_EaseOut)
|
||||
|
||||
this.offset = this.owner.getChildByName("bottom").getChildByName("offset") as Laya.Box
|
||||
this.offset.y = this.offset.width
|
||||
|
||||
@@ -23,11 +29,17 @@ export class Difficulty extends Laya.Script {
|
||||
const mask = this.owner.getChildByName("mask")
|
||||
mask.on(Laya.Event.CLICK, this, () => {
|
||||
Laya.Tween.to(this.offset, { y: 2400 }, 200, null, Laya.Handler.create(this, () => {
|
||||
this.owner.destroy()
|
||||
this.destroyUI()
|
||||
}))
|
||||
})
|
||||
}
|
||||
|
||||
destroyUI(): void {
|
||||
Laya.Tween.to(this.mask, { alpha: 0 }, 400, Utility_EaseOut_2, Laya.Handler.create(this, () => {
|
||||
this.owner.destroy()
|
||||
}))
|
||||
}
|
||||
|
||||
onStart(): void {
|
||||
Laya.Tween.to(this.offset, { y: 0 }, 200)
|
||||
}
|
||||
|
||||
@@ -37,6 +37,9 @@ export class GameDone extends Laya.Script {
|
||||
@property(Laya.Image)
|
||||
public star4: Laya.Image
|
||||
|
||||
@property(Laya.Image)
|
||||
public img_title: Laya.Image
|
||||
|
||||
@property(Laya.Label)
|
||||
public label_diffucuty: Laya.Label
|
||||
|
||||
@@ -63,6 +66,8 @@ export class GameDone extends Laya.Script {
|
||||
ResourceManager.getInstance().loadTexture(respath.icon_star2, this.star2)
|
||||
ResourceManager.getInstance().loadTexture(respath.icon_star2, this.star3)
|
||||
ResourceManager.getInstance().loadTexture(respath.icon_star1, this.star4)
|
||||
if (this.img_title)
|
||||
ResourceManager.getInstance().loadTexture(respath.Congratulations, this.img_title)
|
||||
|
||||
this.owner.x = 0
|
||||
this.owner.y = 0
|
||||
|
||||
@@ -25,14 +25,14 @@ export class Home extends Laya.Script {
|
||||
@property(Laya.Label)
|
||||
public label_dc_date: Laya.Label
|
||||
|
||||
@property(Laya.Sprite)
|
||||
public btn_play: Laya.Sprite
|
||||
@property(Laya.Box)
|
||||
public btn_play: Laya.Box
|
||||
|
||||
@property(Laya.Sprite)
|
||||
public btn_continue: Laya.Sprite
|
||||
@property(Laya.Box)
|
||||
public btn_continue: Laya.Box
|
||||
|
||||
@property(Laya.Sprite)
|
||||
public btn_more: Laya.Sprite
|
||||
@property(Laya.Box)
|
||||
public btn_more: Laya.Box
|
||||
|
||||
@property(Laya.Box)
|
||||
public btn_new_blue: Laya.Box
|
||||
|
||||
@@ -10,10 +10,10 @@ export class AutoRotate extends Laya.Script {
|
||||
private begin = 0
|
||||
|
||||
onLateUpdate(): void {
|
||||
this.begin += this.speed
|
||||
if (this.begin >= 360) {
|
||||
this.begin = 0
|
||||
}
|
||||
this.owner.rotation = this.begin
|
||||
this.begin += this.speed
|
||||
if (this.begin >= 360) {
|
||||
this.begin = 0
|
||||
}
|
||||
this.owner.rotation = this.begin
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user