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 {
...
@@ -495,7 +495,9 @@ export class NetManager extends ABNetManager {
type
:
'post'
,
type
:
'post'
,
dataType
:
'json'
,
dataType
:
'json'
,
param
:
{
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
detect
:
window
[
'detect'
],
deviceSessionId
:
window
[
'_device_session_id'
]
},
},
hideMsg
:
true
,
hideMsg
:
true
,
callback
:
callback
callback
:
callback
...
@@ -912,7 +914,7 @@ export class NetManager extends ABNetManager {
...
@@ -912,7 +914,7 @@ export class NetManager extends ABNetManager {
dataType
:
'json'
,
dataType
:
'json'
,
param
:
{
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
propType
:
propType
propType
:
propType
},
},
callback
:
callback
callback
:
callback
};
};
...
...
egret/src/mapScene/MapScene.ts
View file @
ab422df7
...
@@ -73,6 +73,17 @@ export default class MapScene extends Scene {
...
@@ -73,6 +73,17 @@ export default class MapScene extends Scene {
MapScene
[
'firstPlayBgTag'
]
=
true
;
MapScene
[
'firstPlayBgTag'
]
=
true
;
}
}
},
this
);
},
this
);
this
.
scroll
.
viewport
.
scrollV
=
this
.
getScrollV
();
//按钮放置在stage height的中间 stage height/2
}
getScrollV
(){
const
homeData
=
getHomeData
();
if
(
homeData
.
levels
)
{
}
return
0
;
}
}
disableIcon
(
level
)
{
disableIcon
(
level
)
{
...
@@ -179,6 +190,11 @@ export default class MapScene extends Scene {
...
@@ -179,6 +190,11 @@ export default class MapScene extends Scene {
this
[
'boxani'
].
touchEnabled
=
false
;
this
[
'boxani'
].
touchEnabled
=
false
;
this
[
'boxani'
].
touchChildren
=
false
;
this
[
'boxani'
].
touchChildren
=
false
;
await
this
.
playAni
();
await
this
.
playAni
();
try
{
if
(
window
[
'getRST'
])
window
[
'getRST'
]();
}
catch
(
error
)
{
console
.
warn
(
error
)
}
NetManager
.
ins
.
hc_openTreasureBox
((
success
)
=>
{
NetManager
.
ins
.
hc_openTreasureBox
((
success
)
=>
{
this
[
'boxani'
].
touchEnabled
=
true
;
this
[
'boxani'
].
touchEnabled
=
true
;
this
[
'boxani'
].
touchChildren
=
true
;
this
[
'boxani'
].
touchChildren
=
true
;
...
...
egret/src/panels/QuitPanel.ts
View file @
ab422df7
...
@@ -10,13 +10,13 @@ export default class QuitPanel extends Panel {
...
@@ -10,13 +10,13 @@ export default class QuitPanel extends Panel {
super
.
start
();
super
.
start
();
if
(
data
)
if
(
data
)
this
.
_level
=
data
.
level
;
this
.
_level
=
data
.
level
;
this
[
'resumeBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
//
this['resumeBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if
(
this
.
_level
)
//
if (this._level)
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
,
{
level
:
this
.
_level
});
//
SceneCtrl.instance.change(ModuleTypes.START_SCENE, { level: this._level });
else
//
else
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
);
//
SceneCtrl.instance.change(ModuleTypes.START_SCENE);
},
this
);
//
}, this);
this
[
'quitBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
'quitBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
18
));
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