代码格式化

This commit is contained in:
2025-06-13 18:13:16 +08:00
parent 43e6d58acf
commit 86a4eab71b
8 changed files with 28 additions and 32 deletions

View File

@@ -48,10 +48,10 @@ export const respath = {
return config.H_SCREEN ? "resources/dc/TrophyRoomCell_H.lh" : "resources/dc/TrophyRoomCell.lh"
},
font_Bold : "fonts/Inter-Bold-700.ttf",
font_Medium : "fonts/Inter-Medium-500.ttf",
font_Regular : "fonts/Inter-Regular-400.ttf",
font_SemiBold : "fonts/Inter-SemiBold-600.ttf",
font_Bold: "fonts/Inter-Bold-700.ttf",
font_Medium: "fonts/Inter-Medium-500.ttf",
font_Regular: "fonts/Inter-Regular-400.ttf",
font_SemiBold: "fonts/Inter-SemiBold-600.ttf",
// ===============================
bg_done: "images/bg_done.png",
@@ -64,22 +64,20 @@ export const respath = {
home_top_dc_bg_finish: "images/bg_dc_top2.png",
dc_top_bg_normal: "images/img_dc_bg2.png",
dc_top_bg_finish: "images/img_dc_finished.png",
dc_lights: new Array(),
get_dc_lights: function func(): string[] {
const dc_lights: Array<string> = []
const prefix = "sequences/lottie_trophy_light_2x/lottie_trophy_light_2x_00"
if (respath.dc_lights.length < 1) {
for (let i = 0; i < 120; i++) {
let endStr = i.toString()
if (i < 10) {
endStr = `00${i}`
} else if (i < 100) {
endStr = `0${i}`
}
const path = `${prefix + endStr}.png`
respath.dc_lights.push(path)
for (let i = 0; i < 120; i++) {
let endStr = i.toString()
if (i < 10) {
endStr = `00${i}`
} else if (i < 100) {
endStr = `0${i}`
}
const path = `${prefix + endStr}.png`
dc_lights.push(path)
}
return respath.dc_lights
return dc_lights
},
trophy_bg_light_gold: "trophys/img_trophy_bg_light_gold.png",