ConfigManager改全局单例
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user