文本对齐

This commit is contained in:
2025-06-17 19:02:55 +08:00
parent 28f2b4c5cc
commit 166b4a85ae

View File

@@ -151,14 +151,26 @@
"lineWidth": 1, "lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)" "fillColor": "rgba(29, 92, 220, 1)"
} }
], ]
},
{
"_$id": "phyezjdt",
"_$type": "HBox",
"name": "HBox",
"x": 100,
"y": 48,
"width": 544,
"height": 60,
"centerX": 0,
"centerY": 0,
"space": 16,
"align": "middle",
"_$child": [ "_$child": [
{ {
"_$id": "23po992p", "_$id": "23po992p",
"_$type": "Sprite", "_$type": "Sprite",
"name": "Sprite", "name": "Sprite",
"x": 100, "y": 3,
"y": 44,
"width": 60, "width": 60,
"height": 54, "height": 54,
"mouseThrough": true, "mouseThrough": true,
@@ -202,18 +214,14 @@
] ]
} }
] ]
}
]
}, },
{ {
"_$id": "4fv9wmfi", "_$id": "4fv9wmfi",
"_$type": "Label", "_$type": "Label",
"name": "Label", "name": "Label",
"x": 49, "x": 76,
"width": 744, "width": 468,
"height": 156, "height": 60,
"centerX": 49,
"centerY": 0,
"text": "Second Chance", "text": "Second Chance",
"font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376", "font": "res://5f760925-14a8-4e61-b8c4-d19c523e7376",
"fontSize": 60, "fontSize": 60,
@@ -223,6 +231,8 @@
"valign": "middle" "valign": "middle"
} }
] ]
}
]
}, },
{ {
"_$id": "g47r0en7", "_$id": "g47r0en7",