Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
wildfirecode13
xiaoxiaole
Commits
ab422df7
Commit
ab422df7
authored
Aug 26, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5ef0d708
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
8 deletions
+26
-8
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+4
-2
MapScene.ts
egret/src/mapScene/MapScene.ts
+16
-0
QuitPanel.ts
egret/src/panels/QuitPanel.ts
+6
-6
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
ab422df7
...
...
@@ -495,7 +495,9 @@ export class NetManager extends ABNetManager {
type
:
'post'
,
dataType
:
'json'
,
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
detect
:
window
[
'detect'
],
deviceSessionId
:
window
[
'_device_session_id'
]
},
hideMsg
:
true
,
callback
:
callback
...
...
@@ -912,7 +914,7 @@ export class NetManager extends ABNetManager {
dataType
:
'json'
,
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
propType
:
propType
propType
:
propType
},
callback
:
callback
};
...
...
egret/src/mapScene/MapScene.ts
View file @
ab422df7
...
...
@@ -73,6 +73,17 @@ export default class MapScene extends Scene {
MapScene
[
'firstPlayBgTag'
]
=
true
;
}
},
this
);
this
.
scroll
.
viewport
.
scrollV
=
this
.
getScrollV
();
//按钮放置在stage height的中间 stage height/2
}
getScrollV
(){
const
homeData
=
getHomeData
();
if
(
homeData
.
levels
)
{
}
return
0
;
}
disableIcon
(
level
)
{
...
...
@@ -179,6 +190,11 @@ export default class MapScene extends Scene {
this
[
'boxani'
].
touchEnabled
=
false
;
this
[
'boxani'
].
touchChildren
=
false
;
await
this
.
playAni
();
try
{
if
(
window
[
'getRST'
])
window
[
'getRST'
]();
}
catch
(
error
)
{
console
.
warn
(
error
)
}
NetManager
.
ins
.
hc_openTreasureBox
((
success
)
=>
{
this
[
'boxani'
].
touchEnabled
=
true
;
this
[
'boxani'
].
touchChildren
=
true
;
...
...
egret/src/panels/QuitPanel.ts
View file @
ab422df7
...
...
@@ -10,13 +10,13 @@ export default class QuitPanel extends Panel {
super
.
start
();
if
(
data
)
this
.
_level
=
data
.
level
;
this
[
'resumeBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
this
.
_level
)
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
,
{
level
:
this
.
_level
});
else
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
);
//
this['resumeBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
//
if (this._level)
//
SceneCtrl.instance.change(ModuleTypes.START_SCENE, { level: this._level });
//
else
//
SceneCtrl.instance.change(ModuleTypes.START_SCENE);
},
this
);
//
}, this);
this
[
'quitBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
18
));
...
...
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