This commit is contained in:
2025-07-30 21:52:26 +08:00
parent 2d5c7e91d7
commit f91430728f
33 changed files with 10727 additions and 320 deletions
@@ -0,0 +1,34 @@
import { _decorator, Component, Label, Node, Sprite } from 'cc';
import {Theme} from "db://assets/Scripts/Main/Config/Config18x";
import {GButton} from "db://assets/Scripts/Main/Common/GButton";
import {DemoManager} from "db://assets/Scripts/test/DemoManager";
const { ccclass, property } = _decorator;
@ccclass('ThemeItem')
export class ThemeItem extends Component {
@property(Sprite)
lockImg: Sprite;
@property(Label)
titleName:Label;
private id:number;
start()
{
}
refresh(themeData:Theme)
{
this.lockImg.node.active = !themeData.isRelease;
this.titleName.string = themeData.name;
this.id = themeData.themeId;
GButton.RemoveAndBandClick(this.node,this.OnClickThis,this);
}
OnClickThis()
{
DemoManager.getInstance().EnterGirlList(this.id);
}
}