123456789101112131415161718192021222324252627 |
- import AudioMng from "../../gcommon/AudioMng";
- import GBaseUI from "../../gcommon/GBaseUI";
- import { GameMng } from "../../GameMng";
- import diffCell from "./diffCell";
- import { _decorator,Node,instantiate } from "cc";
- const {ccclass, property} = _decorator;
- @ccclass
- export default class UIDiffSel extends GBaseUI {
- public static lvArr=['普通','中等','困难'];
- public static selectIndex:number=0;
- @property({ type: Node })
- public content: Node | null = null;
-
- start(){
-
- for(let i=0;i<UIDiffSel.lvArr.length;i++){
- let gnode=instantiate(GameMng.Instance.chessselCell);
- gnode.getComponent(diffCell).setData(i);
- this.content.addChild(gnode);
-
- }
- }
- }
|