This commit is contained in:
2025-08-13 15:37:15 +08:00
parent 53e2687546
commit 8048584f38
27 changed files with 15071 additions and 1511 deletions
+4 -1
View File
@@ -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);