调整几个弹框

This commit is contained in:
2025-05-29 10:25:13 +08:00
parent bf506e26ef
commit 6f3c1f9d6d
12 changed files with 771 additions and 700 deletions

View File

@@ -16,13 +16,13 @@
"_$type": "72a5ccd3-8177-451c-b2ce-cf1b42f7e6d4",
"scriptPath": "../src/views/GameOver.ts",
"btn_second": {
"_$ref": "szb9ucan"
"_$ref": "0mzw96e9"
},
"btn_restart": {
"_$ref": "vhabgf62"
"_$ref": "lceajjw5"
},
"btn_newOrClose": {
"_$ref": "90q3msn4"
"_$ref": "s45ffbjo"
},
"label_newOrClose": {
"_$ref": "b03vjzma"
@@ -48,10 +48,10 @@
"_$id": "ak02a9xq",
"_$type": "Box",
"name": "center",
"x": 600,
"y": 135,
"width": 720,
"height": 810,
"x": 480,
"y": 225,
"width": 960,
"height": 630,
"_mouseState": 2,
"centerX": 0,
"centerY": 0,
@@ -60,8 +60,8 @@
"_$id": "kaqpo7v4",
"_$type": "Sprite",
"name": "Sprite",
"width": 720,
"height": 810,
"width": 960,
"height": 630,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
@@ -83,46 +83,29 @@
"_$id": "gcpm74vt",
"_$type": "VBox",
"name": "buttons",
"y": 351,
"width": 720,
"height": 495,
"bottom": -36,
"x": 54,
"y": 304,
"width": 852,
"height": 350,
"bottom": -24,
"centerX": 0,
"space": 27,
"align": "center",
"_$child": [
{
"_$id": "szb9ucan",
"_$type": "Sprite",
"_$id": "0mzw96e9",
"_$type": "Box",
"name": "btn_second",
"x": 54,
"width": 612,
"width": 852,
"height": 120,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 27,
"rt": 27,
"lb": 27,
"rb": 27,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
],
"_$child": [
{
"_$id": "sl0p26bq",
"_$id": "szb9ucan",
"_$type": "Sprite",
"name": "Sprite",
"x": 67,
"y": 37,
"width": 48,
"height": 40,
"width": 852,
"height": 120,
"mouseThrough": true,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
@@ -130,161 +113,209 @@
"y": 0,
"width": 1,
"height": 1,
"lt": 10,
"rt": 10,
"lb": 10,
"rb": 10,
"lt": 27,
"rt": 27,
"lb": 27,
"rb": 27,
"percent": true,
"lineWidth": 1,
"fillColor": "#FFFFFF"
"fillColor": "rgba(29, 92, 220, 1)"
}
],
"_$child": [
{
"_$id": "shuwbc76",
"_$id": "sl0p26bq",
"_$type": "Sprite",
"name": "Sprite",
"x": 16,
"y": 10,
"width": 18,
"height": 20,
"x": 188,
"y": 37,
"width": 48,
"height": 40,
"mouseThrough": true,
"_gcmds": [
{
"_$type": "DrawPolyCmd",
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"points": [
0,
0,
18,
10,
0,
20
],
"width": 1,
"height": 1,
"lt": 10,
"rt": 10,
"lb": 10,
"rb": 10,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
"fillColor": "#FFFFFF"
}
],
"_$child": [
{
"_$id": "shuwbc76",
"_$type": "Sprite",
"name": "Sprite",
"x": 16,
"y": 10,
"width": 18,
"height": 20,
"mouseThrough": true,
"_gcmds": [
{
"_$type": "DrawPolyCmd",
"x": 0,
"y": 0,
"points": [
0,
0,
18,
10,
0,
20
],
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
}
]
}
]
}
]
},
{
"_$id": "vhabgf62",
"_$type": "Sprite",
"name": "btn_restart",
"x": 54,
"y": 147,
"width": 612,
"height": 120,
"alpha": 0.1,
"_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": "xemd8gdj",
"_$type": "Label",
"name": "Label",
"x": 120,
"width": 612,
"height": 120,
"centerX": 0,
"centerY": 0,
"text": "Second Chance",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 45,
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
},
{
"_$id": "90q3msn4",
"_$type": "Sprite",
"name": "btn_newOrClose",
"x": 54,
"y": 294,
"width": 612,
"height": 120,
"alpha": 0.1,
"_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": "x4n5s73l",
"_$type": "VBox",
"name": "labels",
"y": 351,
"width": 720,
"height": 495,
"bottom": -36,
"centerX": 0,
"space": 27,
"align": "center",
"_$child": [
{
"_$id": "xemd8gdj",
"_$type": "Label",
"name": "Label(1)",
"x": 54,
"width": 612,
"height": 120,
"text": "Second Chance",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 45,
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "km7828dd",
"_$type": "Label",
"name": "Label(2)",
"x": 54,
"_$id": "2g3rpaw7",
"_$type": "HBox",
"name": "HBox",
"y": 147,
"width": 612,
"width": 852,
"height": 120,
"text": "Restart",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 45,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "b03vjzma",
"_$type": "Label",
"name": "Label(3)",
"x": 54,
"y": 294,
"width": 612,
"height": 120,
"text": "New Game",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 45,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"space": 28,
"align": "middle",
"_$child": [
{
"_$id": "lceajjw5",
"_$type": "Box",
"name": "btn_restart",
"width": 412,
"height": 120,
"_$child": [
{
"_$id": "vhabgf62",
"_$type": "Sprite",
"name": "Sprite",
"width": 412,
"height": 120,
"alpha": 0.1,
"mouseThrough": true,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 27,
"rt": 27,
"lb": 27,
"rb": 27,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
},
{
"_$id": "km7828dd",
"_$type": "Label",
"name": "Label",
"x": -100,
"width": 612,
"height": 120,
"centerX": 0,
"centerY": 0,
"text": "Restart",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 45,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
},
{
"_$id": "s45ffbjo",
"_$type": "Box",
"name": "btn_newOrClose",
"x": 440,
"width": 412,
"height": 120,
"_$child": [
{
"_$id": "qkqudbcq",
"_$type": "Sprite",
"name": "Sprite",
"width": 412,
"height": 120,
"alpha": 0.1,
"mouseThrough": true,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 27,
"rt": 27,
"lb": 27,
"rb": 27,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
},
{
"_$id": "b03vjzma",
"_$type": "Label",
"name": "Label",
"x": -100,
"width": 612,
"height": 120,
"centerX": 0,
"centerY": 0,
"text": "New Game",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 45,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
}
]
}
]
},
@@ -292,11 +323,11 @@
"_$id": "jqc2ijwf",
"_$type": "Label",
"name": "Label",
"x": 60,
"y": 90,
"x": 180,
"y": 54,
"width": 600,
"height": 66,
"top": 90,
"top": 54,
"centerX": 0,
"text": "Game Over",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
@@ -311,11 +342,11 @@
"_$id": "oioxcne0",
"_$type": "Label",
"name": "Label(1)",
"x": 14,
"y": 180,
"width": 692,
"x": 54,
"y": 150,
"width": 852,
"height": 96,
"top": 180,
"top": 150,
"centerX": 0,
"text": "You lost the game because you made 3 mistakes",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",