继续补充UI

This commit is contained in:
2025-06-12 17:29:23 +08:00
parent aa7c36c11a
commit d16d57eef6
9 changed files with 65 additions and 184 deletions

View File

@@ -19,6 +19,9 @@
"obj_light": {
"_$ref": "fmyff6zc"
},
"obj_top": {
"_$ref": "rvuzq3il"
},
"obj_panel": {
"_$ref": "9ijholxi"
},
@@ -121,15 +124,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 0,
"rt": 0,
"lb": 48,
"rb": 48,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(250, 251, 253, 1)"
}
@@ -146,15 +144,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 0,
"rt": 0,
"lb": 48,
"rb": 48,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(245, 247, 251, 1)"
}
@@ -238,8 +231,7 @@
"color": "rgba(0, 0, 0, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
},
{
"_$id": "n4jhcwy7",
@@ -269,8 +261,7 @@
"font": "res://f015dd22-1bf2-4dff-bf92-97185a4da48b",
"fontSize": 42,
"color": "rgba(123, 129, 140, 1)",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
},
{
"_$id": "sli8jsxk",
@@ -284,8 +275,7 @@
"fontSize": 48,
"color": "rgba(45, 49, 56, 1)",
"align": "right",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
},
@@ -307,8 +297,7 @@
"font": "res://f015dd22-1bf2-4dff-bf92-97185a4da48b",
"fontSize": 42,
"color": "rgba(123, 129, 140, 1)",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
},
{
"_$id": "dow6r2on",
@@ -322,8 +311,7 @@
"fontSize": 48,
"color": "rgba(45, 49, 56, 1)",
"align": "right",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
},
@@ -345,8 +333,7 @@
"font": "res://f015dd22-1bf2-4dff-bf92-97185a4da48b",
"fontSize": 42,
"color": "rgba(123, 129, 140, 1)",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
},
{
"_$id": "rby8odj3",
@@ -360,8 +347,7 @@
"fontSize": 48,
"color": "rgba(45, 49, 56, 1)",
"align": "right",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
}
@@ -408,15 +394,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
@@ -436,8 +417,7 @@
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
},
@@ -470,15 +450,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
@@ -498,8 +473,7 @@
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
},
@@ -530,15 +504,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
@@ -558,8 +527,7 @@
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
}

View File

@@ -21,6 +21,9 @@
"obj_light": {
"_$ref": "21h6okrs"
},
"obj_top": {
"_$ref": "qckc4n2a"
},
"obj_panel": {
"_$ref": "5u982vt1"
},
@@ -137,15 +140,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 0,
"rt": 0,
"lb": 54,
"rb": 54,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(250, 251, 253, 1)"
}
@@ -162,15 +160,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(245, 247, 251, 1)"
}
@@ -251,8 +244,7 @@
"color": "rgba(45, 49, 56, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
},
{
"_$id": "b4jktp33",
@@ -284,8 +276,7 @@
"font": "res://f015dd22-1bf2-4dff-bf92-97185a4da48b",
"fontSize": 30,
"color": "rgba(123, 129, 140, 1)",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
},
{
"_$id": "t56jxo0a",
@@ -300,8 +291,7 @@
"fontSize": 36,
"color": "rgba(45, 49, 56, 1)",
"align": "right",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
},
@@ -324,8 +314,7 @@
"font": "res://f015dd22-1bf2-4dff-bf92-97185a4da48b",
"fontSize": 30,
"color": "rgba(123, 129, 140, 1)",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
},
{
"_$id": "v0a6pgjh",
@@ -340,8 +329,7 @@
"fontSize": 36,
"color": "rgba(45, 49, 56, 1)",
"align": "right",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
},
@@ -364,8 +352,7 @@
"font": "res://f015dd22-1bf2-4dff-bf92-97185a4da48b",
"fontSize": 30,
"color": "rgba(123, 129, 140, 1)",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
},
{
"_$id": "sjgiel5s",
@@ -380,8 +367,7 @@
"fontSize": 36,
"color": "rgba(45, 49, 56, 1)",
"align": "right",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
}
@@ -427,15 +413,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
@@ -455,8 +436,7 @@
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
},
@@ -488,15 +468,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
@@ -516,8 +491,7 @@
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
},
@@ -547,15 +521,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
@@ -575,8 +544,7 @@
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
}

View File

@@ -19,6 +19,9 @@
"obj_light": {
"_$ref": "8sgjzety"
},
"obj_top": {
"_$ref": "hm9tgyxm"
},
"obj_panel": {
"_$ref": "kpsallku"
},
@@ -121,15 +124,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 0,
"rt": 0,
"lb": 48,
"rb": 48,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(250, 251, 253, 1)"
}
@@ -146,15 +144,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 0,
"rt": 0,
"lb": 48,
"rb": 48,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(245, 247, 251, 1)"
}
@@ -201,8 +194,8 @@
"_$id": "svxs9o8h",
"_$type": "Image",
"name": "check(3)",
"x": 759.0132866424543,
"y": 189.48281388005253,
"x": 759,
"y": 189,
"width": 252,
"height": 252,
"anchorX": 0.5,
@@ -243,8 +236,7 @@
"color": "rgba(0, 0, 0, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
},
{
"_$id": "b4ajczjh",
@@ -274,8 +266,7 @@
"font": "res://f015dd22-1bf2-4dff-bf92-97185a4da48b",
"fontSize": 42,
"color": "rgba(123, 129, 140, 1)",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
},
{
"_$id": "mdvetv8w",
@@ -289,8 +280,7 @@
"fontSize": 48,
"color": "rgba(45, 49, 56, 1)",
"align": "right",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
},
@@ -312,8 +302,7 @@
"font": "res://f015dd22-1bf2-4dff-bf92-97185a4da48b",
"fontSize": 42,
"color": "rgba(123, 129, 140, 1)",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
},
{
"_$id": "m58npz18",
@@ -327,8 +316,7 @@
"fontSize": 48,
"color": "rgba(45, 49, 56, 1)",
"align": "right",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
},
@@ -350,8 +338,7 @@
"font": "res://f015dd22-1bf2-4dff-bf92-97185a4da48b",
"fontSize": 42,
"color": "rgba(123, 129, 140, 1)",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
},
{
"_$id": "ehpkcr9o",
@@ -365,8 +352,7 @@
"fontSize": 48,
"color": "rgba(45, 49, 56, 1)",
"align": "right",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
}
@@ -412,15 +398,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
@@ -440,8 +421,7 @@
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
},
@@ -474,15 +454,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
@@ -502,8 +477,7 @@
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
},
@@ -535,15 +509,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
@@ -563,8 +532,7 @@
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
}

View File

@@ -21,6 +21,9 @@
"obj_light": {
"_$ref": "3t9mq776"
},
"obj_top": {
"_$ref": "bj4g8sfa"
},
"obj_panel": {
"_$ref": "80l6yqgl"
},
@@ -137,15 +140,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 0,
"rt": 0,
"lb": 54,
"rb": 54,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(250, 251, 253, 1)"
}
@@ -162,15 +160,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(245, 247, 251, 1)"
}
@@ -260,8 +253,7 @@
"color": "rgba(45, 49, 56, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
},
{
"_$id": "nv7eszk1",
@@ -293,8 +285,7 @@
"font": "res://f015dd22-1bf2-4dff-bf92-97185a4da48b",
"fontSize": 30,
"color": "rgba(123, 129, 140, 1)",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
},
{
"_$id": "291hwgvn",
@@ -309,8 +300,7 @@
"fontSize": 36,
"color": "rgba(45, 49, 56, 1)",
"align": "right",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
},
@@ -333,8 +323,7 @@
"font": "res://f015dd22-1bf2-4dff-bf92-97185a4da48b",
"fontSize": 30,
"color": "rgba(123, 129, 140, 1)",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
},
{
"_$id": "656grx7b",
@@ -349,8 +338,7 @@
"fontSize": 36,
"color": "rgba(45, 49, 56, 1)",
"align": "right",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
},
@@ -373,8 +361,7 @@
"font": "res://f015dd22-1bf2-4dff-bf92-97185a4da48b",
"fontSize": 30,
"color": "rgba(123, 129, 140, 1)",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
},
{
"_$id": "6upkkpwf",
@@ -389,8 +376,7 @@
"fontSize": 36,
"color": "rgba(45, 49, 56, 1)",
"align": "right",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
}
@@ -435,15 +421,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
@@ -463,8 +444,7 @@
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
},
@@ -496,15 +476,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
@@ -524,8 +499,7 @@
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
},
@@ -555,15 +529,10 @@
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
@@ -583,8 +552,7 @@
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
"valign": "middle"
}
]
}

View File

@@ -50,6 +50,8 @@ export const respath = {
// ===============================
bg_done: "images/bg_done.png",
bg_done_light: "images/bg_done_light.png",
bg_done_top: "images/bg_done_top.png",
icon_star1: "images/star.png",
icon_star2: "images/star2.png",

View File

@@ -56,6 +56,8 @@ export class ResourceManager {
}
this.resources.push({ url: respath.bg_done, type: Laya.Loader.IMAGE })
this.resources.push({ url: respath.bg_done_light, type: Laya.Loader.IMAGE })
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 })

View File

@@ -19,6 +19,9 @@ export class GameDone extends Laya.Script {
@property(Laya.Image)
public obj_light: Laya.Image
@property(Laya.Image)
public obj_top: Laya.Image
@property(Laya.Box)
public obj_panel: Laya.Box
@@ -54,6 +57,8 @@ export class GameDone extends Laya.Script {
onAwake(): void {
ResourceManager.getInstance().loadTexture(respath.bg_done, this.bg)
ResourceManager.getInstance().loadTexture(respath.bg_done_light, this.obj_light)
ResourceManager.getInstance().loadTexture(respath.bg_done_top, this.obj_top)
ResourceManager.getInstance().loadTexture(respath.icon_star2, this.star1)
ResourceManager.getInstance().loadTexture(respath.icon_star2, this.star2)
ResourceManager.getInstance().loadTexture(respath.icon_star2, this.star3)

View File

@@ -63,7 +63,7 @@ export class TrophyClaim extends Laya.Script {
}
}
this.label_date.text = `${config.MONTH_ABBRS[record.month - 1]} ${record.day},${record.year}`
this.label_date.text = `${config.MONTH_ABBRS[record.month - 1]} ${record.day}, ${record.year}`
this.btn_close.on(Laya.Event.CLICK, this, () => {
this.owner.destroy()

View File

@@ -27,7 +27,7 @@ export class TrophyShow extends Laya.Script {
}
}
this.label_date.text = `${config.MONTH_ABBRS[record.month - 1]} ${record.day},${record.year}`
this.label_date.text = `${config.MONTH_ABBRS[record.month - 1]} ${record.day}, ${record.year}`
this.btn_close.on(Laya.Event.CLICK, this, () => {
this.owner.destroy()