ConfigManager改全局单例

This commit is contained in:
2025-08-15 15:24:31 +08:00
parent 30e8effe86
commit 599c98f135
9 changed files with 361 additions and 376 deletions
@@ -71,14 +71,14 @@ export class ThemePanel extends li_BaseView {
this.cache.push(item);
this.content.addChild(newNode);
}
const rectInfo = cfgs[0];
const rectInfo = ConfigManager.tables.TbGirls.get(10001);
this.recId = rectInfo.id;
this.rectNameKey = rectInfo.key;
this.rectNameKey = rectInfo.nameKey;
//this.recName.string = LanguageUtils.getText(this.rectNameKey);
ResManager.I.changeBundleSpriteFrame(
this.recSprite,
rectInfo.path,
rectInfo.avatarPath,
"Chat18x",
() => {
let sizeTran = this.recSprite.node.parent.getComponent(UITransform);