Commit d9a09126 authored by 任建锋's avatar 任建锋

add some code

parent 70a3f4ff
import {SceneManager} from "yt";
import {GuiManager} from "yt";
import {PanelModule} from "yt";
import {AnimationGui} from "yt";
import {GuiCreate} from "yt";
import {DisplayPool} from "yt";
import {ModuleName} from "../../enum/ModuleName";
import { GameEndRankModel, TwFun } from "tw";
export class GameEndRankModule extends PanelModule {
//奖品列表
protected optionsList;
//dom模板
protected viewNode;
//页面模板
protected listTemplate(config,data){
var item=new BABYLON.GUI.Rectangle("sssd");
return item
};
//页面HTML模板
protected listTemplateHtml(data,config){
}
/**
* 数据
*/
protected model: GameEndRankModel;
protected initModel(): void {
this.model = new GameEndRankModel();
}
//UI配置
protected uiConfig={
bodyWidth:"440px",
bodyHeight:"680px",
bodyTop:"260px",
bodyLeft:"260px",
isVertical:true,
}
//事件
protected doEvents=[];
//面板隐藏显示实例
protected panelsAn=new AnimationGui(SceneManager.ins.scene,GuiManager.ins.fullscreenUI)
constructor(){
super()
this.initUI();
}
protected htmlCreate(config,data){
this.listTemplateHtml(data,config)
document.body.appendChild(this.viewNode);
GuiCreate.ins.preventDefault(this.viewNode)
}
/**
* 打开后
* */
protected onOpened(...args){
this.optionsList=this.htmlCreate(this.uiConfig,this.model.rankList)
}
public init(){
DisplayPool.ins.displayPool[ModuleName.GAME_END_RANK_PANEL]=this;
}
/**
* 添加事件
* */
protected addEvent(){
if(this.view.closeBtn){
this.addClick(this.view.closeBtn,this.onClick_closeBtn.bind(this))
}
}
protected onClick_closeBtn(e): void {
this.enableMouseEvt(false)
this.hide();
}
protected removeEvent(){
if(this.view.closeBtn){
this.enableMouseEvt(true)
this.removeClick(this.view.closeBtn)
}
}
/**
* 更新页面
* @param args
*/
public updateData(...args): void {
if (!this.isInit) {
this.initUI();
this.isInit = true;
}
// this.viewHtml=this.listTemplateHtml(this.model.rankList,this.uiConfig)
this.view.closeBtn.isHitTestVisible=true;
}
/**
* 关闭前
* */
protected onClose(){
if(document.getElementById("viewNode")){
try {
document.body.removeChild(this.viewNode)
}catch (e) {
console.log(e)
}
}
}
}
\ No newline at end of file
import {SceneManager} from "yt";
import {GuiManager} from "yt";
import {PanelModule} from "yt";
import {AnimationGui} from "yt";
import {GuiCreate} from "yt";
import {DisplayPool} from "yt";
import {ModuleName} from "../../enum/ModuleName";
import { GameEndRankModel, TwFun } from "tw";
export class GameEndRankModule extends PanelModule {
/**
* 数据
*/
protected model: GameEndRankModel;
protected initModel(): void {
this.model = new GameEndRankModel();
}
//UI配置
protected uiConfig={
bodyWidth:"440px",
bodyHeight:"680px",
bodyTop:"260px",
bodyLeft:"260px",
isVertical:true,
}
//事件
protected doEvents=[];
constructor(){
super()
this.initUI();
}
/**
* 打开后
* */
protected onOpened(...args){
this.htmlView=this.htmlCreate(this.uiConfig,this.model.rankList)
}
public init(){
DisplayPool.ins.displayPool[ModuleName.GAME_END_RANK_PANEL]=this;
}
/**
* 添加事件
* */
protected addEvent(){
if(this.view.closeBtn){
this.addClick(this.view.closeBtn,this.onClick_closeBtn.bind(this))
}
}
protected onClick_closeBtn(e): void {
this.enableMouseEvt(false)
this.hide();
}
protected removeEvent(){
if(this.view.closeBtn){
this.enableMouseEvt(true)
this.removeClick(this.view.closeBtn)
}
}
/**
* 更新页面
* @param args
*/
public updateData(...args): void {
if (!this.isInit) {
this.initUI();
this.isInit = true;
}
// this.viewHtml=this.listTemplateHtml(this.model.rankList,this.uiConfig)
this.view.closeBtn.isHitTestVisible=true;
}
/**
* 关闭前
* */
protected onClose(){
if(document.getElementById("viewNode")){
try {
document.body.removeChild(this.viewNode)
}catch (e) {
console.log(e)
}
}
}
}
\ No newline at end of file
import {GuiManager} from "yt";
import {PanelModule} from "yt";
import {GuiCreate} from "yt";
import {DisplayPool} from "yt";
import {ModuleName} from "../../enum/ModuleName";
import { GameOptionModel, TwFun } from "tw";
export class GameOptionModule extends PanelModule {
//奖品列表
protected optionsList;
//页面模板
protected listTemplate(config,data){
var item=new BABYLON.GUI.Rectangle("item");
return item
};
/**
* 数据
*/
protected model: GameOptionModel;
protected initModel(): void {
this.model = new GameOptionModel();
}
//UI配置
protected uiConfig={
bodyWidth:"440px",
bodyHeight:"680px",
bodyTop:"260px",
bodyLeft:"260px",
isVertical:true,
}
/**
* 打开前
* */
/* protected onOpen(...args){
this.optionsList=GuiCreate.ins.optionsListCon(this.uiConfig,this.model.optionList,this.listTemplate)
this.view.view.addControl(this.optionsList)
GuiManager.ins.appendGui(this.parent);
} */
/**
* 打开后
* */
protected onOpened(...args){
this.optionsList=this.htmlCreate(this.uiConfig,this.model.rankList)
}
public init(){
DisplayPool.ins.displayPool[ModuleName.GAME_OPTION_PANEL]=this;
}
/**
* 添加事件
* */
protected addEvent(){
if(this.view.closeBtn){
this.addClick(this.view.closeBtn,this.onClick_closeBtn.bind(this))
}
}
protected onClick_closeBtn(e): void {
this.enableMouseEvt(false)
this.hide();
}
protected removeEvent(){
if(this.view.closeBtn){
this.enableMouseEvt(true)
this.removeClick(this.view.closeBtn)
}
}
/**
* 更新页面
* @param args
*/
public updateData(...args): void {
if (!this.isInit) {
this.initUI();
this.isInit = true;
}
this.view.closeBtn.isHitTestVisible=true;
}
/**
* 关闭前
* */
protected onClose(){
this.view.view.removeControl(this.optionsList)
}
}
\ No newline at end of file
import {GuiManager} from "yt";
import {PanelModule} from "yt";
import {GuiCreate} from "yt";
import {DisplayPool} from "yt";
import {ModuleName} from "../../enum/ModuleName";
import { GameOptionModel, TwFun } from "tw";
export class GameOptionModule extends PanelModule {
//奖品列表
protected optionsList;
//页面模板
protected listTemplate(config,data){
var item=new BABYLON.GUI.Rectangle("item");
return item
};
/**
* 数据
*/
protected model: GameOptionModel;
protected initModel(): void {
this.model = new GameOptionModel();
}
//UI配置
protected uiConfig={
bodyWidth:"440px",
bodyHeight:"680px",
bodyTop:"260px",
bodyLeft:"260px",
isVertical:true,
}
/**
* 打开前
* */
/* protected onOpen(...args){
this.optionsList=GuiCreate.ins.optionsListCon(this.uiConfig,this.model.optionList,this.listTemplate)
this.view.view.addControl(this.optionsList)
GuiManager.ins.appendGui(this.parent);
} */
/**
* 打开后
* */
protected onOpened(...args){
this.optionsList=this.htmlCreate(this.uiConfig,this.model.optionList)
}
public init(){
DisplayPool.ins.displayPool[ModuleName.GAME_OPTION_PANEL]=this;
}
/**
* 添加事件
* */
protected addEvent(){
if(this.view.closeBtn){
this.addClick(this.view.closeBtn,this.onClick_closeBtn.bind(this))
}
}
protected onClick_closeBtn(e): void {
this.enableMouseEvt(false)
this.hide();
}
protected removeEvent(){
if(this.view.closeBtn){
this.enableMouseEvt(true)
this.removeClick(this.view.closeBtn)
}
}
/**
* 更新页面
* @param args
*/
public updateData(...args): void {
if (!this.isInit) {
this.initUI();
this.isInit = true;
}
this.view.closeBtn.isHitTestVisible=true;
}
/**
* 关闭前
* */
protected onClose(){
this.view.view.removeControl(this.optionsList)
}
}
\ No newline at end of file
import {GuiManager} from "yt";
import {PanelModule} from "yt";
import {GuiCreate} from "yt";
import {DisplayPool} from "yt";
import {ModuleName} from "../../enum/ModuleName";
import { GameOptionModel, TwFun } from "tw";
export class GameOptionModule extends PanelModule {
//页面模板
protected listTemplate(config,data){
var item=new BABYLON.GUI.Rectangle("item");
return item
};
/**
* 数据
*/
protected model: GameOptionModel;
protected initModel(): void {
this.model = new GameOptionModel();
}
//UI配置
protected uiConfig={
bodyWidth:"440px",
bodyHeight:"680px",
bodyTop:"260px",
bodyLeft:"260px",
isVertical:true,
}
/**
* 打开前
* */
/* protected onOpen(...args){
this.optionsList=GuiCreate.ins.optionsListCon(this.uiConfig,this.model.optionList,this.listTemplate)
this.view.view.addControl(this.optionsList)
GuiManager.ins.appendGui(this.parent);
} */
/**
* 打开后
* */
protected onOpened(...args){
this.htmlView=this.htmlCreate(this.uiConfig,this.model.optionList)
}
public init(){
DisplayPool.ins.displayPool[ModuleName.GAME_OPTION_PANEL]=this;
}
/**
* 添加事件
* */
protected addEvent(){
if(this.view.closeBtn){
this.addClick(this.view.closeBtn,this.onClick_closeBtn.bind(this))
}
}
protected onClick_closeBtn(e): void {
this.enableMouseEvt(false)
this.hide();
}
protected removeEvent(){
if(this.view.closeBtn){
this.enableMouseEvt(true)
this.removeClick(this.view.closeBtn)
}
}
/**
* 更新页面
* @param args
*/
public updateData(...args): void {
if (!this.isInit) {
this.initUI();
this.isInit = true;
}
this.view.closeBtn.isHitTestVisible=true;
}
/**
* 关闭前
* */
protected onClose(){
this.view.view.removeControl(this.optionsList)
}
}
\ No newline at end of file
import {GuiManager} from "yt";
import {PanelModule} from "yt";
import {GuiCreate} from "yt";
import {DisplayPool} from "yt";
import {ModuleName} from "../../enum/ModuleName";
import { GameOptionModel, TwFun } from "tw";
export class GameOptionModule extends PanelModule {
//页面模板
protected listTemplate(config,data){
var item=new BABYLON.GUI.Rectangle("item");
return item
};
/**
* 数据
*/
protected model: GameOptionModel;
protected initModel(): void {
this.model = new GameOptionModel();
}
//UI配置
protected uiConfig={
bodyWidth:"440px",
bodyHeight:"680px",
bodyTop:"260px",
bodyLeft:"260px",
isVertical:true,
}
/**
* 打开前
* */
/* protected onOpen(...args){
this.optionsList=GuiCreate.ins.optionsListCon(this.uiConfig,this.model.optionList,this.listTemplate)
this.view.view.addControl(this.optionsList)
GuiManager.ins.appendGui(this.parent);
} */
/**
* 打开后
* */
protected onOpened(...args){
this.htmlView=this.htmlCreate(this.uiConfig,this.model.optionList)
}
public init(){
DisplayPool.ins.displayPool[ModuleName.GAME_OPTION_PANEL]=this;
}
/**
* 添加事件
* */
protected addEvent(){
if(this.view.closeBtn){
this.addClick(this.view.closeBtn,this.onClick_closeBtn.bind(this))
}
}
protected onClick_closeBtn(e): void {
this.enableMouseEvt(false)
this.hide();
}
protected removeEvent(){
if(this.view.closeBtn){
this.enableMouseEvt(true)
this.removeClick(this.view.closeBtn)
}
}
/**
* 更新页面
* @param args
*/
public updateData(...args): void {
if (!this.isInit) {
this.initUI();
this.isInit = true;
}
this.view.closeBtn.isHitTestVisible=true;
}
/**
* 关闭前
* */
protected onClose(){
if(document.getElementById("viewNode")){
try {
document.body.removeChild(this.viewNode)
}catch (e) {
console.log(e)
}
}
}
}
\ No newline at end of file
import {GuiManager} from "yt";
import {PanelModule} from "yt";
import {GuiCreate} from "yt";
import {DisplayPool} from "yt";
import {ModuleName} from "../../enum/ModuleName";
import { GameOptionModel, TwFun } from "tw";
export class GameOptionModule extends PanelModule {
/**
* 数据
*/
protected model: GameOptionModel;
protected initModel(): void {
this.model = new GameOptionModel();
}
//UI配置
protected uiConfig={
bodyWidth:"440px",
bodyHeight:"680px",
bodyTop:"260px",
bodyLeft:"260px",
isVertical:true,
}
/**
* 打开后
* */
protected onOpened(...args){
this.htmlView=this.htmlCreate(this.uiConfig,this.model.optionList)
}
public init(){
DisplayPool.ins.displayPool[ModuleName.GAME_OPTION_PANEL]=this;
}
/**
* 添加事件
* */
protected addEvent(){
if(this.view.closeBtn){
this.addClick(this.view.closeBtn,this.onClick_closeBtn.bind(this))
}
}
protected onClick_closeBtn(e): void {
this.enableMouseEvt(false)
this.hide();
}
protected removeEvent(){
if(this.view.closeBtn){
this.enableMouseEvt(true)
this.removeClick(this.view.closeBtn)
}
}
/**
* 更新页面
* @param args
*/
public updateData(...args): void {
if (!this.isInit) {
this.initUI();
this.isInit = true;
}
this.view.closeBtn.isHitTestVisible=true;
}
/**
* 关闭前
* */
protected onClose(){
if(document.getElementById("viewNode")){
try {
document.body.removeChild(this.viewNode)
}catch (e) {
console.log(e)
}
}
}
}
\ No newline at end of file
import {GuiManager} from "yt";
import {PanelModule} from "yt";
import {GuiCreate} from "yt";
import {DisplayPool} from "yt";
import {ModuleName} from "../../enum/ModuleName";
import { GameRealTimeRankModel, TwFun } from "tw";
export class GameRealTimeRankModule extends PanelModule {
//页面模板
protected listTemplate(config,data){
var item=new BABYLON.GUI.Rectangle("item");
return item
};
/**
* 数据
*/
protected model: GameRealTimeRankModel;
protected initModel(): void {
this.model = new GameRealTimeRankModel();
}
//UI配置
protected uiConfig={
bodyWidth:"440px",
bodyHeight:"680px",
bodyTop:"260px",
bodyLeft:"260px",
isVertical:true,
}
constructor(){
super()
this.initUI();
}
/**
* 打开前
* */
/* protected onOpen(...args){
super.onOpen(...args)
this.optionsList=GuiCreate.ins.optionsListCon(this.uiConfig,this.model.userList,this.listTemplate)
this.view.view.addControl(this.optionsList)
GuiManager.ins.appendGui(this.parent);
} */
/**
* 打开后
* */
protected onOpened(...args){
this.htmlView=this.htmlCreate(this.uiConfig,this.model.optionList)
}
public init(){
DisplayPool.ins.displayPool[ModuleName.GAME_REAL_TIME_RANK_PANEL]=this;
}
/**
* 添加事件
* */
protected addEvent(){
if(this.view.closeBtn){
this.addClick(this.view.closeBtn,this.onClick_closeBtn.bind(this))
}
}
protected onClick_closeBtn(e): void {
this.enableMouseEvt(false)
this.hide();
}
protected removeEvent(){
if(this.view.closeBtn){
this.enableMouseEvt(true)
this.removeClick(this.view.closeBtn)
}
}
/**
* 更新页面
* @param args
*/
public updateData(...args): void {
if (!this.isInit) {
this.initUI();
this.isInit = true;
}
this.view.closeBtn.isHitTestVisible=true;
}
}
\ No newline at end of file
import {GuiManager} from "yt";
import {PanelModule} from "yt";
import {GuiCreate} from "yt";
import {DisplayPool} from "yt";
import {ModuleName} from "../../enum/ModuleName";
import { GameRealTimeRankModel, TwFun } from "tw";
export class GameRealTimeRankModule extends PanelModule {
//页面模板
protected listTemplate(config,data){
var item=new BABYLON.GUI.Rectangle("item");
return item
};
/**
* 数据
*/
protected model: GameRealTimeRankModel;
protected initModel(): void {
this.model = new GameRealTimeRankModel();
}
//UI配置
protected uiConfig={
bodyWidth:"440px",
bodyHeight:"680px",
bodyTop:"260px",
bodyLeft:"260px",
isVertical:true,
}
constructor(){
super()
this.initUI();
}
/**
* 打开前
* */
/* protected onOpen(...args){
super.onOpen(...args)
this.optionsList=GuiCreate.ins.optionsListCon(this.uiConfig,this.model.userList,this.listTemplate)
this.view.view.addControl(this.optionsList)
GuiManager.ins.appendGui(this.parent);
} */
/**
* 打开后
* */
protected onOpened(...args){
this.htmlView=this.htmlCreate(this.uiConfig,this.model.listTemplate)
}
public init(){
DisplayPool.ins.displayPool[ModuleName.GAME_REAL_TIME_RANK_PANEL]=this;
}
/**
* 添加事件
* */
protected addEvent(){
if(this.view.closeBtn){
this.addClick(this.view.closeBtn,this.onClick_closeBtn.bind(this))
}
}
protected onClick_closeBtn(e): void {
this.enableMouseEvt(false)
this.hide();
}
protected removeEvent(){
if(this.view.closeBtn){
this.enableMouseEvt(true)
this.removeClick(this.view.closeBtn)
}
}
/**
* 更新页面
* @param args
*/
public updateData(...args): void {
if (!this.isInit) {
this.initUI();
this.isInit = true;
}
this.view.closeBtn.isHitTestVisible=true;
}
}
\ No newline at end of file
import {GuiManager} from "yt";
import {PanelModule} from "yt";
import {GuiCreate} from "yt";
import {DisplayPool} from "yt";
import {ModuleName} from "../../enum/ModuleName";
import { GameRealTimeRankModel, TwFun } from "tw";
export class GameRealTimeRankModule extends PanelModule {
//页面模板
protected listTemplate(config,data){
var item=new BABYLON.GUI.Rectangle("item");
return item
};
/**
* 数据
*/
protected model: GameRealTimeRankModel;
protected initModel(): void {
this.model = new GameRealTimeRankModel();
}
//UI配置
protected uiConfig={
bodyWidth:"440px",
bodyHeight:"680px",
bodyTop:"260px",
bodyLeft:"260px",
isVertical:true,
}
constructor(){
super()
this.initUI();
}
/**
* 打开前
* */
/* protected onOpen(...args){
super.onOpen(...args)
this.optionsList=GuiCreate.ins.optionsListCon(this.uiConfig,this.model.userList,this.listTemplate)
this.view.view.addControl(this.optionsList)
GuiManager.ins.appendGui(this.parent);
} */
/**
* 打开后
* */
protected onOpened(...args){
this.htmlView=this.htmlCreate(this.uiConfig,this.model.userList)
}
public init(){
DisplayPool.ins.displayPool[ModuleName.GAME_REAL_TIME_RANK_PANEL]=this;
}
/**
* 添加事件
* */
protected addEvent(){
if(this.view.closeBtn){
this.addClick(this.view.closeBtn,this.onClick_closeBtn.bind(this))
}
}
protected onClick_closeBtn(e): void {
this.enableMouseEvt(false)
this.hide();
}
protected removeEvent(){
if(this.view.closeBtn){
this.enableMouseEvt(true)
this.removeClick(this.view.closeBtn)
}
}
/**
* 更新页面
* @param args
*/
public updateData(...args): void {
if (!this.isInit) {
this.initUI();
this.isInit = true;
}
this.view.closeBtn.isHitTestVisible=true;
}
}
\ No newline at end of file
import {GuiManager} from "yt";
import {PanelModule} from "yt";
import {GuiCreate} from "yt";
import {DisplayPool} from "yt";
import {ModuleName} from "../../enum/ModuleName";
import { GameRealTimeRankModel, TwFun } from "tw";
export class GameRealTimeRankModule extends PanelModule {
//页面模板
protected listTemplate(config,data){
var item=new BABYLON.GUI.Rectangle("item");
return item
};
/**
* 数据
*/
protected model: GameRealTimeRankModel;
protected initModel(): void {
this.model = new GameRealTimeRankModel();
}
//UI配置
protected uiConfig={
bodyWidth:"440px",
bodyHeight:"680px",
bodyTop:"260px",
bodyLeft:"260px",
isVertical:true,
}
constructor(){
super()
this.initUI();
}
/**
* 打开前
* */
/* protected onOpen(...args){
super.onOpen(...args)
this.optionsList=GuiCreate.ins.optionsListCon(this.uiConfig,this.model.userList,this.listTemplate)
this.view.view.addControl(this.optionsList)
GuiManager.ins.appendGui(this.parent);
} */
/**
* 打开后
* */
protected onOpened(...args){
this.htmlView=this.htmlCreate(this.uiConfig,this.model.userList)
}
public init(){
DisplayPool.ins.displayPool[ModuleName.GAME_REAL_TIME_RANK_PANEL]=this;
}
/**
* 添加事件
* */
protected addEvent(){
if(this.view.closeBtn){
this.addClick(this.view.closeBtn,this.onClick_closeBtn.bind(this))
}
}
protected onClick_closeBtn(e): void {
this.enableMouseEvt(false)
this.hide();
}
protected removeEvent(){
if(this.view.closeBtn){
this.enableMouseEvt(true)
this.removeClick(this.view.closeBtn)
}
}
/**
* 更新页面
* @param args
*/
public updateData(...args): void {
if (!this.isInit) {
this.initUI();
this.isInit = true;
}
this.view.closeBtn.isHitTestVisible=true;
}
/**
* 关闭前
* */
protected onClose(){
if(document.getElementById("viewNode")){
try {
document.body.removeChild(this.viewNode)
}catch (e) {
console.log(e)
}
}
}
}
\ No newline at end of file
import {GuiManager} from "yt";
import {PanelModule} from "yt";
import {GuiCreate} from "yt";
import {DisplayPool} from "yt";
import {ModuleName} from "../../enum/ModuleName";
import { GameRealTimeRankModel, TwFun } from "tw";
export class GameRealTimeRankModule extends PanelModule {
/**
* 数据
*/
protected model: GameRealTimeRankModel;
protected initModel(): void {
this.model = new GameRealTimeRankModel();
}
//UI配置
protected uiConfig={
bodyWidth:"440px",
bodyHeight:"680px",
bodyTop:"260px",
bodyLeft:"260px",
isVertical:true,
}
constructor(){
super()
}
/**
* 打开前
* */
/* protected onOpen(...args){
super.onOpen(...args)
this.optionsList=GuiCreate.ins.optionsListCon(this.uiConfig,this.model.userList,this.listTemplate)
this.view.view.addControl(this.optionsList)
GuiManager.ins.appendGui(this.parent);
} */
/**
* 打开后
* */
protected onOpened(...args){
this.htmlView=this.htmlCreate(this.uiConfig,this.model.userList)
}
public init(){
DisplayPool.ins.displayPool[ModuleName.GAME_REAL_TIME_RANK_PANEL]=this;
}
/**
* 添加事件
* */
protected addEvent(){
if(this.view.closeBtn){
this.addClick(this.view.closeBtn,this.onClick_closeBtn.bind(this))
}
}
protected onClick_closeBtn(e): void {
this.enableMouseEvt(false)
this.hide();
}
protected removeEvent(){
if(this.view.closeBtn){
this.enableMouseEvt(true)
this.removeClick(this.view.closeBtn)
}
}
/**
* 更新页面
* @param args
*/
public updateData(...args): void {
if (!this.isInit) {
this.initUI();
this.isInit = true;
}
this.view.closeBtn.isHitTestVisible=true;
}
/**
* 关闭前
* */
protected onClose(){
if(document.getElementById("viewNode")){
try {
document.body.removeChild(this.viewNode)
}catch (e) {
console.log(e)
}
}
}
}
\ No newline at end of file
import {GuiManager} from "yt";
import {PanelModule} from "yt";
import {GuiCreate} from "yt";
import {DisplayPool} from "yt";
import {ModuleName} from "../../enum/ModuleName";
import { GameRealTimeRankModel, TwFun } from "tw";
export class GameRealTimeRankModule extends PanelModule {
/**
* 数据
*/
protected model: GameRealTimeRankModel;
protected initModel(): void {
this.model = new GameRealTimeRankModel();
}
//UI配置
protected uiConfig={
bodyWidth:"440px",
bodyHeight:"680px",
bodyTop:"260px",
bodyLeft:"260px",
isVertical:true,
}
constructor(){
super()
}
/**
* 打开后
* */
protected onOpened(...args){
this.htmlView=this.htmlCreate(this.uiConfig,this.model.userList)
}
public init(){
DisplayPool.ins.displayPool[ModuleName.GAME_REAL_TIME_RANK_PANEL]=this;
}
/**
* 添加事件
* */
protected addEvent(){
if(this.view.closeBtn){
this.addClick(this.view.closeBtn,this.onClick_closeBtn.bind(this))
}
}
protected onClick_closeBtn(e): void {
this.enableMouseEvt(false)
this.hide();
}
protected removeEvent(){
if(this.view.closeBtn){
this.enableMouseEvt(true)
this.removeClick(this.view.closeBtn)
}
}
/**
* 更新页面
* @param args
*/
public updateData(...args): void {
if (!this.isInit) {
this.initUI();
this.isInit = true;
}
this.view.closeBtn.isHitTestVisible=true;
}
/**
* 关闭前
* */
protected onClose(){
if(document.getElementById("viewNode")){
try {
document.body.removeChild(this.viewNode)
}catch (e) {
console.log(e)
}
}
}
}
\ No newline at end of file
......@@ -12,10 +12,6 @@ var __extends = (this && this.__extends) || (function () {
Object.defineProperty(exports, "__esModule", { value: true });
var yt_1 = require("yt");
var yt_2 = require("yt");
var yt_3 = require("yt");
var yt_4 = require("yt");
var yt_5 = require("yt");
var yt_6 = require("yt");
var ModuleName_1 = require("../../enum/ModuleName");
var tw_1 = require("tw");
var GameEndRankModule = /** @class */ (function (_super) {
......@@ -32,28 +28,12 @@ var GameEndRankModule = /** @class */ (function (_super) {
};
//事件
_this.doEvents = [];
//面板隐藏显示实例
_this.panelsAn = new yt_4.AnimationGui(yt_1.SceneManager.ins.scene, yt_2.GuiManager.ins.fullscreenUI);
_this.initUI();
return _this;
}
//页面模板
GameEndRankModule.prototype.listTemplate = function (config, data) {
var item = new BABYLON.GUI.Rectangle("sssd");
return item;
};
;
//页面HTML模板
GameEndRankModule.prototype.listTemplateHtml = function (data, config) {
};
GameEndRankModule.prototype.initModel = function () {
this.model = new tw_1.GameEndRankModel();
};
GameEndRankModule.prototype.htmlCreate = function (config, data) {
this.listTemplateHtml(this.model.rankList, this.uiConfig);
document.body.appendChild(this.viewNode);
yt_5.GuiCreate.ins.preventDefault(this.viewNode);
};
/**
* 打开后
* */
......@@ -62,10 +42,10 @@ var GameEndRankModule = /** @class */ (function (_super) {
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
this.optionsList = this.htmlCreate(this.uiConfig, this.model.rankList);
this.htmlView = this.htmlCreate(this.uiConfig, this.model.rankList);
};
GameEndRankModule.prototype.init = function () {
yt_6.DisplayPool.ins.displayPool[ModuleName_1.ModuleName.GAME_END_RANK_PANEL] = this;
yt_2.DisplayPool.ins.displayPool[ModuleName_1.ModuleName.GAME_END_RANK_PANEL] = this;
};
/**
* 添加事件
......@@ -115,6 +95,6 @@ var GameEndRankModule = /** @class */ (function (_super) {
}
};
return GameEndRankModule;
}(yt_3.PanelModule));
}(yt_1.PanelModule));
exports.GameEndRankModule = GameEndRankModule;
//# sourceMappingURL=GameEndRankModule.js.map
\ No newline at end of file
{"version":3,"file":"GameEndRankModule.js","sourceRoot":"","sources":["../../../src/module/game/GameEndRankModule.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yBAAgC;AAChC,yBAA8B;AAC9B,yBAA+B;AAC/B,yBAAgC;AAChC,yBAA6B;AAC7B,yBAA+B;AAC/B,oDAAiD;AACjD,yBAA6C;AAE7C;IAAuC,qCAAW;IA4C9C;QAAA,YACI,iBAAO,SAEV;QAnBD,MAAM;QAEI,cAAQ,GAAC;YACf,SAAS,EAAC,OAAO;YACjB,UAAU,EAAC,OAAO;YAClB,OAAO,EAAC,OAAO;YACf,QAAQ,EAAC,OAAO;YAChB,UAAU,EAAC,IAAI;SAClB,CAAA;QAED,IAAI;QACM,cAAQ,GAAC,EAAE,CAAC;QAEtB,UAAU;QACA,cAAQ,GAAC,IAAI,iBAAY,CAAC,iBAAY,C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QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;SACrE;IACL,CAAC;IAGS,4CAAgB,GAA1B,UAA2B,CAAC;QACxB,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAA;QAC1B,IAAI,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC;IAGS,uCAAW,GAArB;QACI,IAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAC;YAClB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;YACzB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;SACvC;IACL,CAAC;IAGD;;;OAGG;IACI,sCAAU,GAAjB;QAAkB,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QACrB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YACd,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;SACtB;QACF,yEAAyE;QACxE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,GAAC,IAAI,CAAC;IAC7C,CAAC;IAED;;SAEK;IACK,mCAAO,GAAjB;QACI,IAAG,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,EAAC;YACnC,IAAI;gBACA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;aAC3C;YAAA,OAAO,CAAC,EAAE;gBACP,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;aACjB;SACJ;IACL,CAAC;IACL,wBAAC;AAAD,CAAC,AAtHD,CAAuC,gBAAW,GAsHjD;AAtHY,8CAAiB"}
\ No newline at end of file
{"version":3,"file":"GameEndRankModule.js","sourceRoot":"","sources":["../../../src/module/game/GameEndRankModule.ts"],"names":[],"mappings":";;;;;;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AC,QAAQ,EAAC;YAClB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;YACzB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;SACvC;IACL,CAAC;IAGD;;;OAGG;IACI,sCAAU,GAAjB;QAAkB,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QACrB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YACd,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;SACtB;QACF,yEAAyE;QACxE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,GAAC,IAAI,CAAC;IAC7C,CAAC;IAED;;SAEK;IACK,mCAAO,GAAjB;QACI,IAAG,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,EAAC;YACnC,IAAI;gBACA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;aAC3C;YAAA,OAAO,CAAC,EAAE;gBACP,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;aACjB;SACJ;IACL,CAAC;IACL,wBAAC;AAAD,CAAC,AA7FD,CAAuC,gBAAW,GA6FjD;AA7FY,8CAAiB"}
\ No newline at end of file
......@@ -12,8 +12,6 @@ var __extends = (this && this.__extends) || (function () {
Object.defineProperty(exports, "__esModule", { value: true });
var yt_1 = require("yt");
var yt_2 = require("yt");
var yt_3 = require("yt");
var yt_4 = require("yt");
var ModuleName_1 = require("../../enum/ModuleName");
var tw_1 = require("tw");
var GameOptionModule = /** @class */ (function (_super) {
......@@ -30,29 +28,21 @@ var GameOptionModule = /** @class */ (function (_super) {
};
return _this;
}
//页面模板
GameOptionModule.prototype.listTemplate = function (config, data) {
var item = new BABYLON.GUI.Rectangle("item");
return item;
};
;
GameOptionModule.prototype.initModel = function () {
this.model = new tw_1.GameOptionModel();
};
/**
* 打开前
* 打开后
* */
GameOptionModule.prototype.onOpen = function () {
GameOptionModule.prototype.onOpened = function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
this.optionsList = yt_3.GuiCreate.ins.optionsListCon(this.uiConfig, this.model.optionList, this.listTemplate);
this.view.view.addControl(this.optionsList);
yt_1.GuiManager.ins.appendGui(this.parent);
this.htmlView = this.htmlCreate(this.uiConfig, this.model.optionList);
};
GameOptionModule.prototype.init = function () {
yt_4.DisplayPool.ins.displayPool[ModuleName_1.ModuleName.GAME_OPTION_PANEL] = this;
yt_2.DisplayPool.ins.displayPool[ModuleName_1.ModuleName.GAME_OPTION_PANEL] = this;
};
/**
* 添加事件
......@@ -91,9 +81,16 @@ var GameOptionModule = /** @class */ (function (_super) {
* 关闭前
* */
GameOptionModule.prototype.onClose = function () {
this.view.view.removeControl(this.optionsList);
if (document.getElementById("viewNode")) {
try {
document.body.removeChild(this.viewNode);
}
catch (e) {
console.log(e);
}
}
};
return GameOptionModule;
}(yt_2.PanelModule));
}(yt_1.PanelModule));
exports.GameOptionModule = GameOptionModule;
//# sourceMappingURL=GameOptionModule.js.map
\ No newline at end of file
{"version":3,"file":"GameOptionModule.js","sourceRoot":"","sources":["../../../src/module/game/GameOptionModule.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yBAA8B;AAC9B,yBAA+B;AAE/B,yBAA6B;AAC7B,yBAA+B;AAC/B,oDAAiD;AACjD,yBAA4C;AAE5C;IAAsC,oCAAW;IAAjD;QAAA,qEAsFC;QAjEG,MAAM;QAEI,cAAQ,GAAC;YACf,SAAS,EAAC,OAAO;YACjB,UAAU,EAAC,OAAO;YAClB,OAAO,EAAC,OAAO;YACf,QAAQ,EAAC,OAAO;YAChB,UAAU,EAAC,IAAI;SAClB,CAAA;;IAyDL,CAAC;IAhFG,MAAM;IACI,uCAAY,GAAtB,UAAuB,MAAM,EAAC,IAAI;QAC9B,IAAI,IAAI,GAAC,IAAI,OAAO,CAAC,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AAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;SACvC;IACL,CAAC;IAGD;;;OAGG;IACI,qCAAU,GAAjB;QAAkB,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QACrB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YACd,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;SACtB;QACD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,GAAC,IAAI,CAAC;IAC7C,CAAC;IAED;;SAEK;IACK,kCAAO,GAAjB;QACI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;IAClD,CAAC;IACL,uBAAC;AAAD,CAAC,AAtFD,CAAsC,gBAAW,GAsFhD;AAtFY,4CAAgB"}
\ No newline at end of file
{"version":3,"file":"GameOptionModule.js","sourceRoot":"","sources":["../../../src/module/game/GameOptionModule.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yBAA+B;AAG/B,yBAA+B;AAC/B,oDAAiD;AACjD,yBAA4C;AAE5C;IAAsC,oCAAW;IAAjD;QAAA,qEAgFC;QArEG,MAAM;QAEI,cAAQ,GAAC;YACf,SAAS,EAAC,OAAO;YACjB,UAAU,EAAC,OAAO;YAClB,OAAO,EAAC,OAAO;YACf,QAAQ,EAAC,OAAO;YAChB,UAAU,EAAC,IAAI;SAClB,CAAA;;IA6DL,CAAC;IAzEa,oCAAS,GAAnB;QACI,IAAI,CAAC,KAAK,GAAG,IAAI,oBAAe,EAAE,CAAC;IACvC,CAAC;IAYC;;OAEG;IACK,mCAAQ,GAAlB;QAAmB,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QACtB,IAAI,CAAC,QAAQ,GAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAC,IAAI,CAAC,KAAK,C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ACP,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;aACjB;SACA;IACL,CAAC;IACL,uBAAC;AAAD,CAAC,AAhFD,CAAsC,gBAAW,GAgFhD;AAhFY,4CAAgB"}
\ No newline at end of file
......@@ -12,8 +12,6 @@ var __extends = (this && this.__extends) || (function () {
Object.defineProperty(exports, "__esModule", { value: true });
var yt_1 = require("yt");
var yt_2 = require("yt");
var yt_3 = require("yt");
var yt_4 = require("yt");
var ModuleName_1 = require("../../enum/ModuleName");
var tw_1 = require("tw");
var GameRealTimeRankModule = /** @class */ (function (_super) {
......@@ -28,33 +26,23 @@ var GameRealTimeRankModule = /** @class */ (function (_super) {
bodyLeft: "260px",
isVertical: true,
};
_this.initUI();
return _this;
}
//页面模板
GameRealTimeRankModule.prototype.listTemplate = function (config, data) {
var item = new BABYLON.GUI.Rectangle("item");
return item;
};
;
GameRealTimeRankModule.prototype.initModel = function () {
this.model = new tw_1.GameRealTimeRankModel();
};
/**
* 打开前
* 打开后
* */
GameRealTimeRankModule.prototype.onOpen = function () {
GameRealTimeRankModule.prototype.onOpened = function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
_super.prototype.onOpen.apply(this, args);
this.optionsList = yt_3.GuiCreate.ins.optionsListCon(this.uiConfig, this.model.userList, this.listTemplate);
this.view.view.addControl(this.optionsList);
yt_1.GuiManager.ins.appendGui(this.parent);
this.htmlView = this.htmlCreate(this.uiConfig, this.model.userList);
};
GameRealTimeRankModule.prototype.init = function () {
yt_4.DisplayPool.ins.displayPool[ModuleName_1.ModuleName.GAME_REAL_TIME_RANK_PANEL] = this;
yt_2.DisplayPool.ins.displayPool[ModuleName_1.ModuleName.GAME_REAL_TIME_RANK_PANEL] = this;
};
/**
* 添加事件
......@@ -89,7 +77,20 @@ var GameRealTimeRankModule = /** @class */ (function (_super) {
}
this.view.closeBtn.isHitTestVisible = true;
};
/**
* 关闭前
* */
GameRealTimeRankModule.prototype.onClose = function () {
if (document.getElementById("viewNode")) {
try {
document.body.removeChild(this.viewNode);
}
catch (e) {
console.log(e);
}
}
};
return GameRealTimeRankModule;
}(yt_2.PanelModule));
}(yt_1.PanelModule));
exports.GameRealTimeRankModule = GameRealTimeRankModule;
//# sourceMappingURL=GameRealTimeRankModule.js.map
\ No newline at end of file
{"version":3,"file":"GameRealTimeRankModule.js","sourceRoot":"","sources":["../../../src/module/game/GameRealTimeRankModule.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yBAA8B;AAC9B,yBAA+B;AAC/B,yBAA6B;AAC7B,yBAA+B;AAC/B,oDAAiD;AACjD,yBAAkD;AAElD;IAA4C,0CAAW;IA+BnD;QAAA,YACI,iBAAO,SAEV;QAbD,MAAM;QAEI,cAAQ,GAAC;YACf,SAAS,EAAC,OAAO;YACjB,UAAU,EAAC,OAAO;YAClB,OAAO,EAAC,OAAO;YACf,QAAQ,EAAC,OAAO;YAChB,UAAU,EAAC,IAAI;SAClB,CAAA;QAIG,KAAI,CAAC,MAAM,EAAE,CAAC;;IAClB,CAAC;IA7BD,MAAM;IACI,6CAAY,GAAtB,UAAuB,MAAM,EAAC,IAAI;QAC9B,IAAI,IAAI,GAAC,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC3C,OAAO,IAAI,CAAA;IACf,CAAC;IAAA,CAAC;IAOQ,0CAAS,GAAnB;QACI,IAAI,CAAC,KAAK,GAAG,IAAI,0BAAqB,EAAE,CAAC;IAC7C,CAAC;IAkBD;;SAEK;IACK,uCAAM,GAAhB;QAAiB,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QACpB,iBAAM,MAAM,aAAI,IAAI,EAAC;QACrB,IAAI,CAAC,WAAW,GAAC,cAAS,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAC,IAAI,CAAC,YAAY,CAAC,CAAA;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"}
\ No newline at end of file
{"version":3,"file":"GameRealTimeRankModule.js","sourceRoot":"","sources":["../../../src/module/game/GameRealTimeRankModule.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yBAA+B;AAE/B,yBAA+B;AAC/B,oDAAiD;AACjD,yBAAkD;AAElD;IAA4C,0CAAW;IAsBnD;QAAA,YACI,iBAAO,SACV;QAZD,MAAM;QAEI,cAAQ,GAAC;YACf,SAAS,EAAC,OAAO;YACjB,UAAU,EAAC,OAAO;YAClB,OAAO,EAAC,OAAO;YACf,QAAQ,EAAC,OAAO;YAChB,UAAU,EAAC,IAAI;SAClB,CAAA;;IAID,CAAC;IAjBS,0CAAS,GAAnB;QACI,IAAI,CAAC,KAAK,GAAG,IAAI,0BAAqB,EAAE,CAAC;IAC7C,CAAC;IAiBC;;OAEG;IACK,yCAAQ,GAAlB;QAAmB,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QACtB,IAAI,CAAC,QAAQ,GAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;IACpE,CAAC;IAGM,qCAAI,GAAX;QACI,gBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,uBAAU,CAAC,yBAAyB,CAAC,GAAC,IAAI,CAAC;IAC3E,CAAC;IAGD;;SAEK;IACK,yCAAQ,GAAlB;QACI,IAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAC;YAClB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;SACrE;IACL,CAAC;IAGS,iDAAgB,GAA1B,UAA2B,CAAC;QACxB,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAA;QAC1B,IAAI,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC;IAGS,4CAAW,GAArB;QACI,IAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAC;YAClB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;YACzB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;SACvC;IACL,CAAC;IAGD;;;OAGG;IACI,2CAAU,GAAjB;QAAkB,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QACrB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YACd,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;SACtB;QACD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,GAAC,IAAI,CAAC;IAC7C,CAAC;IAEC;;OAEG;IACK,wCAAO,GAAjB;QACI,IAAG,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,EAAC;YACrC,IAAI;gBACA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;aAC3C;YAAA,OAAO,CAAC,EAAE;gBACP,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;aACjB;SACA;IACL,CAAC;IACP,6BAAC;AAAD,CAAC,AAvFD,CAA4C,gBAAW,GAuFtD;AAvFY,wDAAsB"}
\ No newline at end of file
......@@ -10,22 +10,8 @@ import { GameEndRankModel, TwFun } from "tw";
export class GameEndRankModule extends PanelModule {
//奖品列表
protected optionsList;
//dom模板
protected viewNode;
//页面模板
protected listTemplate(config,data){
var item=new BABYLON.GUI.Rectangle("sssd");
return item
};
//页面HTML模板
protected listTemplateHtml(data,config){
}
/**
* 数据
*/
......@@ -48,34 +34,23 @@ export class GameEndRankModule extends PanelModule {
//事件
protected doEvents=[];
//面板隐藏显示实例
protected panelsAn=new AnimationGui(SceneManager.ins.scene,GuiManager.ins.fullscreenUI)
constructor(){
super()
this.initUI();
}
protected htmlCreate(config,data){
this.listTemplateHtml(this.model.rankList,this.uiConfig)
document.body.appendChild(this.viewNode);
GuiCreate.ins.preventDefault(this.viewNode)
}
/**
* 打开后
* */
protected onOpened(...args){
this.optionsList=this.htmlCreate(this.uiConfig,this.model.rankList)
this.htmlView=this.htmlCreate(this.uiConfig,this.model.rankList)
}
public init(){
DisplayPool.ins.displayPool[ModuleName.GAME_END_RANK_PANEL]=this;
}
/**
* 添加事件
* */
......
......@@ -9,16 +9,6 @@ import { GameOptionModel, TwFun } from "tw";
export class GameOptionModule extends PanelModule {
//奖品列表
protected optionsList;
//页面模板
protected listTemplate(config,data){
var item=new BABYLON.GUI.Rectangle("item");
return item
};
/**
* 数据
*/
......@@ -39,12 +29,10 @@ export class GameOptionModule extends PanelModule {
}
/**
* 打开
* 打开
* */
protected onOpen(...args){
this.optionsList=GuiCreate.ins.optionsListCon(this.uiConfig,this.model.optionList,this.listTemplate)
this.view.view.addControl(this.optionsList)
GuiManager.ins.appendGui(this.parent);
protected onOpened(...args){
this.htmlView=this.htmlCreate(this.uiConfig,this.model.optionList)
}
public init(){
......@@ -91,6 +79,12 @@ export class GameOptionModule extends PanelModule {
* 关闭前
* */
protected onClose(){
this.view.view.removeControl(this.optionsList)
if(document.getElementById("viewNode")){
try {
document.body.removeChild(this.viewNode)
}catch (e) {
console.log(e)
}
}
}
}
\ No newline at end of file
......@@ -7,15 +7,6 @@ import { GameRealTimeRankModel, TwFun } from "tw";
export class GameRealTimeRankModule extends PanelModule {
//排行榜
protected optionsList;
//页面模板
protected listTemplate(config,data){
var item=new BABYLON.GUI.Rectangle("item");
return item
};
/**
* 数据
*/
......@@ -38,21 +29,16 @@ export class GameRealTimeRankModule extends PanelModule {
constructor(){
super()
this.initUI();
}
/**
* 打开
* 打开
* */
protected onOpen(...args){
super.onOpen(...args)
this.optionsList=GuiCreate.ins.optionsListCon(this.uiConfig,this.model.userList,this.listTemplate)
this.view.view.addControl(this.optionsList)
GuiManager.ins.appendGui(this.parent);
protected onOpened(...args){
this.htmlView=this.htmlCreate(this.uiConfig,this.model.userList)
}
public init(){
DisplayPool.ins.displayPool[ModuleName.GAME_REAL_TIME_RANK_PANEL]=this;
}
......@@ -93,4 +79,17 @@ export class GameRealTimeRankModule extends PanelModule {
}
this.view.closeBtn.isHitTestVisible=true;
}
/**
* 关闭前
* */
protected onClose(){
if(document.getElementById("viewNode")){
try {
document.body.removeChild(this.viewNode)
}catch (e) {
console.log(e)
}
}
}
}
\ No newline at end of file
import { PanelModule } from "yt";
import { AnimationGui } from "yt";
import { GameEndRankModel } from "tw";
export declare class GameEndRankModule extends PanelModule {
protected optionsList: any;
protected viewNode: any;
protected listTemplate(config: any, data: any): BABYLON.GUI.Rectangle;
protected listTemplateHtml(data: any, config: any): void;
/**
* 数据
*/
......@@ -19,9 +14,7 @@ export declare class GameEndRankModule extends PanelModule {
isVertical: boolean;
};
protected doEvents: any[];
protected panelsAn: AnimationGui;
constructor();
protected htmlCreate(config: any, data: any): void;
/**
* 打开后
* */
......
import { PanelModule } from "yt";
import { GameOptionModel } from "tw";
export declare class GameOptionModule extends PanelModule {
protected optionsList: any;
protected listTemplate(config: any, data: any): BABYLON.GUI.Rectangle;
/**
* 数据
*/
......@@ -16,9 +14,9 @@ export declare class GameOptionModule extends PanelModule {
isVertical: boolean;
};
/**
* 打开前
* 打开后
* */
protected onOpen(...args: any[]): void;
protected onOpened(...args: any[]): void;
init(): void;
/**
* 添加事件
......
import { PanelModule } from "yt";
import { GameRealTimeRankModel } from "tw";
export declare class GameRealTimeRankModule extends PanelModule {
protected optionsList: any;
protected listTemplate(config: any, data: any): BABYLON.GUI.Rectangle;
/**
* 数据
*/
......@@ -17,9 +15,9 @@ export declare class GameRealTimeRankModule extends PanelModule {
};
constructor();
/**
* 打开前
* 打开后
* */
protected onOpen(...args: any[]): void;
protected onOpened(...args: any[]): void;
init(): void;
/**
* 添加事件
......@@ -32,4 +30,8 @@ export declare class GameRealTimeRankModule extends PanelModule {
* @param args
*/
updateData(...args: any[]): void;
/**
* 关闭前
* */
protected onClose(): void;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment