配置全部转移luban

This commit is contained in:
2025-08-12 16:58:02 +08:00
parent 75cc583a44
commit 83370bd0ef
47 changed files with 423 additions and 4340 deletions
@@ -1,9 +1,9 @@
import { _decorator, Component, Label, Node, Sprite, UITransform } from "cc";
import { Theme } from "db://assets/Scripts/Main/Config/Config18x";
import { GButton } from "db://assets/Scripts/Main/Common/GButton";
import ResManager from "db://assets/Scripts/Main/Manager/ResManager";
import Utils from "db://assets/Scripts/Main/Common/Utils";
import { NavigationManager } from "../../manager/NavigationManager";
import { TbThemes, Theme } from "../../../schema/schema";
const { ccclass, property } = _decorator;
@ccclass("ThemeItem")
@@ -16,7 +16,7 @@ export class ThemeItem extends Component {
@property(Sprite)
img: Sprite;
private id: number;
private category: number;
private isLocked: boolean;
start() {}
@@ -24,10 +24,10 @@ export class ThemeItem extends Component {
this.lockImg.node.active = !themeData.isRelease;
this.isLocked = !themeData.isRelease;
this.titleName.string = themeData.name;
this.id = themeData.themeId;
this.category = themeData.category;
ResManager.I.changeBundleSpriteFrame(
this.img,
themeData.pic.url,
themeData.path,
"Chat18x",
() => {
let sizeTran = this.img.node.parent.getComponent(UITransform);
@@ -41,6 +41,6 @@ export class ThemeItem extends Component {
if (this.isLocked) {
return;
}
NavigationManager.Instance.navigateToGirlList(this.id);
NavigationManager.Instance.navigateToGirlList(this.category);
}
}