Files

38 lines
976 B
JavaScript
Raw Permalink Normal View History

2026-05-24 10:21:26 +08:00
"use strict";
cc._RF.push(module, 'a04ad+b8fRL6qNdgaqHA24W', 'cmp.heaven.chapter');
// Scripts/mod/pve/heaven/cmp/cmp.heaven.chapter.js
"use strict";
var BridgeWindow = require("bridge.window");
var HEACT = require("heaven_controller");
var NxExpand = require("nx.fx.sv.expand");
cc.Class({
"extends": BridgeWindow,
properties: {
list: {
"default": null,
type: NxExpand
}
},
// LIFE-CYCLE CALLBACKS:
onLoad: function onLoad() {
this.ctrl = HEACT.getInstance();
this.model = this.ctrl.getModel();
},
start: function start() {},
onOpenConfigs: function onOpenConfigs(params) {
var chapter_list = [];
var chapter_datas = game.configs.dungeon_heaven_data.data_chapter;
for (var i in chapter_datas) {
var data = chapter_datas[i];
chapter_list.push(data);
}
this.list.rebuild(chapter_list);
},
onPreClosed: function onPreClosed() {
this.list.rebuild([]);
} // update (dt) {},
});
cc._RF.pop();