更新ui
This commit is contained in:
@@ -12,6 +12,8 @@ const { ccclass, property } = _decorator;
|
||||
export class ThemeItem extends Component {
|
||||
@property(Sprite)
|
||||
lockImg: Sprite;
|
||||
@property(Sprite)
|
||||
lockCover: Sprite;
|
||||
@property(Label)
|
||||
titleName: Label;
|
||||
|
||||
@@ -35,7 +37,8 @@ export class ThemeItem extends Component {
|
||||
}
|
||||
|
||||
refresh(themeData: Theme) {
|
||||
this.lockImg.node.active = !themeData.isRelease;
|
||||
this.lockImg.node.active = this.lockCover.node.active =
|
||||
!themeData.isRelease;
|
||||
this.isLocked = !themeData.isRelease;
|
||||
this.key = themeData.key;
|
||||
this.titleName.string = LanguageUtils.getText(themeData.key);
|
||||
|
||||
Reference in New Issue
Block a user