Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sl
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
任建锋
sl
Commits
d9a09126
Commit
d9a09126
authored
Jul 03, 2018
by
任建锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some code
parent
70a3f4ff
Changes
25
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
1425 additions
and
140 deletions
+1425
-140
GameEndRankModule_20180703101118.ts
.history/src/module/game/GameEndRankModule_20180703101118.ts
+128
-0
GameEndRankModule_20180703102702.ts
.history/src/module/game/GameEndRankModule_20180703102702.ts
+103
-0
GameOptionModule_20180703101356.ts
.history/src/module/game/GameOptionModule_20180703101356.ts
+104
-0
GameOptionModule_20180703102702.ts
.history/src/module/game/GameOptionModule_20180703102702.ts
+104
-0
GameOptionModule_20180703103012.ts
.history/src/module/game/GameOptionModule_20180703103012.ts
+101
-0
GameOptionModule_20180703103056.ts
.history/src/module/game/GameOptionModule_20180703103056.ts
+107
-0
GameOptionModule_20180703103312.ts
.history/src/module/game/GameOptionModule_20180703103312.ts
+90
-0
GameRealTimeRankModule_20180703103128.ts
.../src/module/game/GameRealTimeRankModule_20180703103128.ts
+99
-0
GameRealTimeRankModule_20180703103136.ts
.../src/module/game/GameRealTimeRankModule_20180703103136.ts
+99
-0
GameRealTimeRankModule_20180703103141.ts
.../src/module/game/GameRealTimeRankModule_20180703103141.ts
+99
-0
GameRealTimeRankModule_20180703103216.ts
.../src/module/game/GameRealTimeRankModule_20180703103216.ts
+112
-0
GameRealTimeRankModule_20180703103245.ts
.../src/module/game/GameRealTimeRankModule_20180703103245.ts
+105
-0
GameRealTimeRankModule_20180703103312.ts
.../src/module/game/GameRealTimeRankModule_20180703103312.ts
+95
-0
GameEndRankModule.js
dist/module/game/GameEndRankModule.js
+3
-23
GameEndRankModule.js.map
dist/module/game/GameEndRankModule.js.map
+1
-1
GameOptionModule.js
dist/module/game/GameOptionModule.js
+14
-17
GameOptionModule.js.map
dist/module/game/GameOptionModule.js.map
+1
-1
GameRealTimeRankModule.js
dist/module/game/GameRealTimeRankModule.js
+19
-18
GameRealTimeRankModule.js.map
dist/module/game/GameRealTimeRankModule.js.map
+1
-1
GameEndRankModule.ts
src/module/game/GameEndRankModule.ts
+2
-27
GameOptionModule.ts
src/module/game/GameOptionModule.ts
+11
-17
GameRealTimeRankModule.ts
src/module/game/GameRealTimeRankModule.ts
+17
-18
GameEndRankModule.d.ts
types/module/game/GameEndRankModule.d.ts
+0
-7
GameOptionModule.d.ts
types/module/game/GameOptionModule.d.ts
+3
-5
GameRealTimeRankModule.d.ts
types/module/game/GameRealTimeRankModule.d.ts
+7
-5
No files found.
.history/src/module/game/GameEndRankModule_20180703101118.ts
0 → 100644
View file @
d9a09126
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
.history/src/module/game/GameEndRankModule_20180703102702.ts
0 → 100644
View file @
d9a09126
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
.history/src/module/game/GameOptionModule_20180703101356.ts
0 → 100644
View file @
d9a09126
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
.history/src/module/game/GameOptionModule_20180703102702.ts
0 → 100644
View file @
d9a09126
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
.history/src/module/game/GameOptionModule_20180703103012.ts
0 → 100644
View file @
d9a09126
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
.history/src/module/game/GameOptionModule_20180703103056.ts
0 → 100644
View file @
d9a09126
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
.history/src/module/game/GameOptionModule_20180703103312.ts
0 → 100644
View file @
d9a09126
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
.history/src/module/game/GameRealTimeRankModule_20180703103128.ts
0 → 100644
View file @
d9a09126
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
.history/src/module/game/GameRealTimeRankModule_20180703103136.ts
0 → 100644
View file @
d9a09126
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
.history/src/module/game/GameRealTimeRankModule_20180703103141.ts
0 → 100644
View file @
d9a09126
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
.history/src/module/game/GameRealTimeRankModule_20180703103216.ts
0 → 100644
View file @
d9a09126
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
.history/src/module/game/GameRealTimeRankModule_20180703103245.ts
0 → 100644
View file @
d9a09126
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
.history/src/module/game/GameRealTimeRankModule_20180703103312.ts
0 → 100644
View file @
d9a09126
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
dist/module/game/GameEndRankModule.js
View file @
d9a09126
...
@@ -12,10 +12,6 @@ var __extends = (this && this.__extends) || (function () {
...
@@ -12,10 +12,6 @@ var __extends = (this && this.__extends) || (function () {
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
var
yt_1
=
require
(
"yt"
);
var
yt_1
=
require
(
"yt"
);
var
yt_2
=
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
ModuleName_1
=
require
(
"../../enum/ModuleName"
);
var
tw_1
=
require
(
"tw"
);
var
tw_1
=
require
(
"tw"
);
var
GameEndRankModule
=
/** @class */
(
function
(
_super
)
{
var
GameEndRankModule
=
/** @class */
(
function
(
_super
)
{
...
@@ -32,28 +28,12 @@ var GameEndRankModule = /** @class */ (function (_super) {
...
@@ -32,28 +28,12 @@ var GameEndRankModule = /** @class */ (function (_super) {
};
};
//事件
//事件
_this
.
doEvents
=
[];
_this
.
doEvents
=
[];
//面板隐藏显示实例
_this
.
panelsAn
=
new
yt_4
.
AnimationGui
(
yt_1
.
SceneManager
.
ins
.
scene
,
yt_2
.
GuiManager
.
ins
.
fullscreenUI
);
_this
.
initUI
();
_this
.
initUI
();
return
_this
;
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
()
{
GameEndRankModule
.
prototype
.
initModel
=
function
()
{
this
.
model
=
new
tw_1
.
GameEndRankModel
();
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) {
...
@@ -62,10 +42,10 @@ var GameEndRankModule = /** @class */ (function (_super) {
for
(
var
_i
=
0
;
_i
<
arguments
.
length
;
_i
++
)
{
for
(
var
_i
=
0
;
_i
<
arguments
.
length
;
_i
++
)
{
args
[
_i
]
=
arguments
[
_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
()
{
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) {
...
@@ -115,6 +95,6 @@ var GameEndRankModule = /** @class */ (function (_super) {
}
}
};
};
return
GameEndRankModule
;
return
GameEndRankModule
;
}(
yt_
3
.
PanelModule
));
}(
yt_
1
.
PanelModule
));
exports
.
GameEndRankModule
=
GameEndRankModule
;
exports
.
GameEndRankModule
=
GameEndRankModule
;
//# sourceMappingURL=GameEndRankModule.js.map
//# sourceMappingURL=GameEndRankModule.js.map
\ No newline at end of file
dist/module/game/GameEndRankModule.js.map
View file @
d9a09126
{"version":3,"file":"GameEndRankModule.js","sourceRoot":"","sources":["../../../src/module/game/GameEndRankModule.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yBAAgC;AAChC,yBAA8B;AAC9B,yBAA+B;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game/GameOptionModule.js
View file @
d9a09126
...
@@ -12,8 +12,6 @@ var __extends = (this && this.__extends) || (function () {
...
@@ -12,8 +12,6 @@ var __extends = (this && this.__extends) || (function () {
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
var
yt_1
=
require
(
"yt"
);
var
yt_1
=
require
(
"yt"
);
var
yt_2
=
require
(
"yt"
);
var
yt_2
=
require
(
"yt"
);
var
yt_3
=
require
(
"yt"
);
var
yt_4
=
require
(
"yt"
);
var
ModuleName_1
=
require
(
"../../enum/ModuleName"
);
var
ModuleName_1
=
require
(
"../../enum/ModuleName"
);
var
tw_1
=
require
(
"tw"
);
var
tw_1
=
require
(
"tw"
);
var
GameOptionModule
=
/** @class */
(
function
(
_super
)
{
var
GameOptionModule
=
/** @class */
(
function
(
_super
)
{
...
@@ -30,29 +28,21 @@ var GameOptionModule = /** @class */ (function (_super) {
...
@@ -30,29 +28,21 @@ var GameOptionModule = /** @class */ (function (_super) {
};
};
return
_this
;
return
_this
;
}
}
//页面模板
GameOptionModule
.
prototype
.
listTemplate
=
function
(
config
,
data
)
{
var
item
=
new
BABYLON
.
GUI
.
Rectangle
(
"item"
);
return
item
;
};
;
GameOptionModule
.
prototype
.
initModel
=
function
()
{
GameOptionModule
.
prototype
.
initModel
=
function
()
{
this
.
model
=
new
tw_1
.
GameOptionModel
();
this
.
model
=
new
tw_1
.
GameOptionModel
();
};
};
/**
/**
* 打开前
* 打开后
* */
* */
GameOptionModule
.
prototype
.
onOpen
=
function
()
{
GameOptionModule
.
prototype
.
onOpen
ed
=
function
()
{
var
args
=
[];
var
args
=
[];
for
(
var
_i
=
0
;
_i
<
arguments
.
length
;
_i
++
)
{
for
(
var
_i
=
0
;
_i
<
arguments
.
length
;
_i
++
)
{
args
[
_i
]
=
arguments
[
_i
];
args
[
_i
]
=
arguments
[
_i
];
}
}
this
.
optionsList
=
yt_3
.
GuiCreate
.
ins
.
optionsListCon
(
this
.
uiConfig
,
this
.
model
.
optionList
,
this
.
listTemplate
);
this
.
htmlView
=
this
.
htmlCreate
(
this
.
uiConfig
,
this
.
model
.
optionList
);
this
.
view
.
view
.
addControl
(
this
.
optionsList
);
yt_1
.
GuiManager
.
ins
.
appendGui
(
this
.
parent
);
};
};
GameOptionModule
.
prototype
.
init
=
function
()
{
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) {
...
@@ -91,9 +81,16 @@ var GameOptionModule = /** @class */ (function (_super) {
* 关闭前
* 关闭前
* */
* */
GameOptionModule
.
prototype
.
onClose
=
function
()
{
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
;
return
GameOptionModule
;
}(
yt_
2
.
PanelModule
));
}(
yt_
1
.
PanelModule
));
exports
.
GameOptionModule
=
GameOptionModule
;
exports
.
GameOptionModule
=
GameOptionModule
;
//# sourceMappingURL=GameOptionModule.js.map
//# sourceMappingURL=GameOptionModule.js.map
\ No newline at end of file
dist/module/game/GameOptionModule.js.map
View file @
d9a09126
{"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;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;QACD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,GAAC,IAAI,CAAC;IAC7C,CAAC;IAED;;SAEK;IACK,kCAAO,GAAjB;QACE,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;IACL,uBAAC;AAAD,CAAC,AAhFD,CAAsC,gBAAW,GAgFhD;AAhFY,4CAAgB"}
\ No newline at end of file
\ No newline at end of file
dist/module/game/GameRealTimeRankModule.js
View file @
d9a09126
...
@@ -12,8 +12,6 @@ var __extends = (this && this.__extends) || (function () {
...
@@ -12,8 +12,6 @@ var __extends = (this && this.__extends) || (function () {
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
var
yt_1
=
require
(
"yt"
);
var
yt_1
=
require
(
"yt"
);
var
yt_2
=
require
(
"yt"
);
var
yt_2
=
require
(
"yt"
);
var
yt_3
=
require
(
"yt"
);
var
yt_4
=
require
(
"yt"
);
var
ModuleName_1
=
require
(
"../../enum/ModuleName"
);
var
ModuleName_1
=
require
(
"../../enum/ModuleName"
);
var
tw_1
=
require
(
"tw"
);
var
tw_1
=
require
(
"tw"
);
var
GameRealTimeRankModule
=
/** @class */
(
function
(
_super
)
{
var
GameRealTimeRankModule
=
/** @class */
(
function
(
_super
)
{
...
@@ -28,33 +26,23 @@ var GameRealTimeRankModule = /** @class */ (function (_super) {
...
@@ -28,33 +26,23 @@ var GameRealTimeRankModule = /** @class */ (function (_super) {
bodyLeft
:
"260px"
,
bodyLeft
:
"260px"
,
isVertical
:
true
,
isVertical
:
true
,
};
};
_this
.
initUI
();
return
_this
;
return
_this
;
}
}
//页面模板
GameRealTimeRankModule
.
prototype
.
listTemplate
=
function
(
config
,
data
)
{
var
item
=
new
BABYLON
.
GUI
.
Rectangle
(
"item"
);
return
item
;
};
;
GameRealTimeRankModule
.
prototype
.
initModel
=
function
()
{
GameRealTimeRankModule
.
prototype
.
initModel
=
function
()
{
this
.
model
=
new
tw_1
.
GameRealTimeRankModel
();
this
.
model
=
new
tw_1
.
GameRealTimeRankModel
();
};
};
/**
/**
* 打开前
* 打开后
* */
* */
GameRealTimeRankModule
.
prototype
.
onOpen
=
function
()
{
GameRealTimeRankModule
.
prototype
.
onOpen
ed
=
function
()
{
var
args
=
[];
var
args
=
[];
for
(
var
_i
=
0
;
_i
<
arguments
.
length
;
_i
++
)
{
for
(
var
_i
=
0
;
_i
<
arguments
.
length
;
_i
++
)
{
args
[
_i
]
=
arguments
[
_i
];
args
[
_i
]
=
arguments
[
_i
];
}
}
_super
.
prototype
.
onOpen
.
apply
(
this
,
args
);
this
.
htmlView
=
this
.
htmlCreate
(
this
.
uiConfig
,
this
.
model
.
userList
);
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
);
};
};
GameRealTimeRankModule
.
prototype
.
init
=
function
()
{
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) {
...
@@ -89,7 +77,20 @@ var GameRealTimeRankModule = /** @class */ (function (_super) {
}
}
this
.
view
.
closeBtn
.
isHitTestVisible
=
true
;
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
;
return
GameRealTimeRankModule
;
}(
yt_
2
.
PanelModule
));
}(
yt_
1
.
PanelModule
));
exports
.
GameRealTimeRankModule
=
GameRealTimeRankModule
;
exports
.
GameRealTimeRankModule
=
GameRealTimeRankModule
;
//# sourceMappingURL=GameRealTimeRankModule.js.map
//# sourceMappingURL=GameRealTimeRankModule.js.map
\ No newline at end of file
dist/module/game/GameRealTimeRankModule.js.map
View file @
d9a09126
{"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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;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
\ No newline at end of file
src/module/game/GameEndRankModule.ts
View file @
d9a09126
...
@@ -10,22 +10,8 @@ import { GameEndRankModel, TwFun } from "tw";
...
@@ -10,22 +10,8 @@ import { GameEndRankModel, TwFun } from "tw";
export
class
GameEndRankModule
extends
PanelModule
{
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 {
...
@@ -48,34 +34,23 @@ export class GameEndRankModule extends PanelModule {
//事件
//事件
protected
doEvents
=
[];
protected
doEvents
=
[];
//面板隐藏显示实例
protected
panelsAn
=
new
AnimationGui
(
SceneManager
.
ins
.
scene
,
GuiManager
.
ins
.
fullscreenUI
)
constructor
(){
constructor
(){
super
()
super
()
this
.
initUI
();
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
){
protected
onOpened
(...
args
){
this
.
optionsList
=
this
.
htmlCreate
(
this
.
uiConfig
,
this
.
model
.
rankList
)
this
.
htmlView
=
this
.
htmlCreate
(
this
.
uiConfig
,
this
.
model
.
rankList
)
}
}
public
init
(){
public
init
(){
DisplayPool
.
ins
.
displayPool
[
ModuleName
.
GAME_END_RANK_PANEL
]
=
this
;
DisplayPool
.
ins
.
displayPool
[
ModuleName
.
GAME_END_RANK_PANEL
]
=
this
;
}
}
/**
/**
* 添加事件
* 添加事件
* */
* */
...
...
src/module/game/GameOptionModule.ts
View file @
d9a09126
...
@@ -9,16 +9,6 @@ import { GameOptionModel, TwFun } from "tw";
...
@@ -9,16 +9,6 @@ import { GameOptionModel, TwFun } from "tw";
export
class
GameOptionModule
extends
PanelModule
{
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 {
...
@@ -39,12 +29,10 @@ export class GameOptionModule extends PanelModule {
}
}
/**
/**
* 打开
前
* 打开
后
* */
* */
protected
onOpen
(...
args
){
protected
onOpened
(...
args
){
this
.
optionsList
=
GuiCreate
.
ins
.
optionsListCon
(
this
.
uiConfig
,
this
.
model
.
optionList
,
this
.
listTemplate
)
this
.
htmlView
=
this
.
htmlCreate
(
this
.
uiConfig
,
this
.
model
.
optionList
)
this
.
view
.
view
.
addControl
(
this
.
optionsList
)
GuiManager
.
ins
.
appendGui
(
this
.
parent
);
}
}
public
init
(){
public
init
(){
...
@@ -91,6 +79,12 @@ export class GameOptionModule extends PanelModule {
...
@@ -91,6 +79,12 @@ export class GameOptionModule extends PanelModule {
* 关闭前
* 关闭前
* */
* */
protected
onClose
(){
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
src/module/game/GameRealTimeRankModule.ts
View file @
d9a09126
...
@@ -7,15 +7,6 @@ import { GameRealTimeRankModel, TwFun } from "tw";
...
@@ -7,15 +7,6 @@ import { GameRealTimeRankModel, TwFun } from "tw";
export
class
GameRealTimeRankModule
extends
PanelModule
{
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 {
...
@@ -38,21 +29,16 @@ export class GameRealTimeRankModule extends PanelModule {
constructor
(){
constructor
(){
super
()
super
()
this
.
initUI
();
}
}
/**
/**
* 打开
前
* 打开
后
* */
* */
protected
onOpen
(...
args
){
protected
onOpened
(...
args
){
super
.
onOpen
(...
args
)
this
.
htmlView
=
this
.
htmlCreate
(
this
.
uiConfig
,
this
.
model
.
userList
)
this
.
optionsList
=
GuiCreate
.
ins
.
optionsListCon
(
this
.
uiConfig
,
this
.
model
.
userList
,
this
.
listTemplate
)
this
.
view
.
view
.
addControl
(
this
.
optionsList
)
GuiManager
.
ins
.
appendGui
(
this
.
parent
);
}
}
public
init
(){
public
init
(){
DisplayPool
.
ins
.
displayPool
[
ModuleName
.
GAME_REAL_TIME_RANK_PANEL
]
=
this
;
DisplayPool
.
ins
.
displayPool
[
ModuleName
.
GAME_REAL_TIME_RANK_PANEL
]
=
this
;
}
}
...
@@ -93,4 +79,17 @@ export class GameRealTimeRankModule extends PanelModule {
...
@@ -93,4 +79,17 @@ export class GameRealTimeRankModule extends PanelModule {
}
}
this
.
view
.
closeBtn
.
isHitTestVisible
=
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
types/module/game/GameEndRankModule.d.ts
View file @
d9a09126
import
{
PanelModule
}
from
"yt"
;
import
{
PanelModule
}
from
"yt"
;
import
{
AnimationGui
}
from
"yt"
;
import
{
GameEndRankModel
}
from
"tw"
;
import
{
GameEndRankModel
}
from
"tw"
;
export
declare
class
GameEndRankModule
extends
PanelModule
{
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 {
...
@@ -19,9 +14,7 @@ export declare class GameEndRankModule extends PanelModule {
isVertical
:
boolean
;
isVertical
:
boolean
;
};
};
protected
doEvents
:
any
[];
protected
doEvents
:
any
[];
protected
panelsAn
:
AnimationGui
;
constructor
();
constructor
();
protected
htmlCreate
(
config
:
any
,
data
:
any
):
void
;
/**
/**
* 打开后
* 打开后
* */
* */
...
...
types/module/game/GameOptionModule.d.ts
View file @
d9a09126
import
{
PanelModule
}
from
"yt"
;
import
{
PanelModule
}
from
"yt"
;
import
{
GameOptionModel
}
from
"tw"
;
import
{
GameOptionModel
}
from
"tw"
;
export
declare
class
GameOptionModule
extends
PanelModule
{
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 {
...
@@ -16,9 +14,9 @@ export declare class GameOptionModule extends PanelModule {
isVertical
:
boolean
;
isVertical
:
boolean
;
};
};
/**
/**
* 打开前
* 打开后
* */
* */
protected
onOpen
(...
args
:
any
[]):
void
;
protected
onOpen
ed
(...
args
:
any
[]):
void
;
init
():
void
;
init
():
void
;
/**
/**
* 添加事件
* 添加事件
...
...
types/module/game/GameRealTimeRankModule.d.ts
View file @
d9a09126
import
{
PanelModule
}
from
"yt"
;
import
{
PanelModule
}
from
"yt"
;
import
{
GameRealTimeRankModel
}
from
"tw"
;
import
{
GameRealTimeRankModel
}
from
"tw"
;
export
declare
class
GameRealTimeRankModule
extends
PanelModule
{
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 {
...
@@ -17,9 +15,9 @@ export declare class GameRealTimeRankModule extends PanelModule {
};
};
constructor
();
constructor
();
/**
/**
* 打开前
* 打开后
* */
* */
protected
onOpen
(...
args
:
any
[]):
void
;
protected
onOpen
ed
(...
args
:
any
[]):
void
;
init
():
void
;
init
():
void
;
/**
/**
* 添加事件
* 添加事件
...
@@ -32,4 +30,8 @@ export declare class GameRealTimeRankModule extends PanelModule {
...
@@ -32,4 +30,8 @@ export declare class GameRealTimeRankModule extends PanelModule {
* @param args
* @param args
*/
*/
updateData
(...
args
:
any
[]):
void
;
updateData
(...
args
:
any
[]):
void
;
/**
* 关闭前
* */
protected
onClose
():
void
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment