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
30344d41
Commit
30344d41
authored
Nov 11, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev
parents
e3d3cbc8
44eb43d6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
37 deletions
+54
-37
Scene.ts
egret/libs/new_wx/components/Scene.ts
+6
-2
sceneCtrl.ts
egret/libs/new_wx/ctrls/sceneCtrl.ts
+4
-2
MapScene.ts
egret/src/mapScene/MapScene.ts
+10
-1
HbRainIcon.ts
egret/src/mapScene/icon/HbRainIcon.ts
+34
-32
No files found.
egret/libs/new_wx/components/Scene.ts
View file @
30344d41
...
...
@@ -10,9 +10,13 @@ export default class Scene extends ComponentBase {
this
.
height
=
this
.
stage
.
stageHeight
;
this
.
playAnimation
();
}
getAllPromise
(){
}
onLoad
(){
return
new
Promise
((
resolve
,
reject
)
=>
{
resolve
();
})
}
updateScene
(){
}
...
...
egret/libs/new_wx/ctrls/sceneCtrl.ts
View file @
30344d41
...
...
@@ -48,8 +48,10 @@ export default class SceneCtrl {
scene
.
addEventListener
(
egret
.
Event
.
ADDED_TO_STAGE
,
()
=>
{
scene
.
start
(
data
);
},
this
);
scene
.
onLoad
().
then
(()
=>
{
this
.
addToStage
(
scene
);
onComplete
&&
onComplete
();
});
}
addMask
()
{
...
...
egret/src/mapScene/MapScene.ts
View file @
30344d41
...
...
@@ -108,6 +108,15 @@ export default class MapScene extends Scene {
private
inviteTimer
:
egret
.
Timer
;
private
cutTime
:
number
;
onLoad
()
{
super
.
onLoad
().
then
(()
=>
{});
return
new
Promise
((
resolve
,
reject
)
=>
{
NetManager
.
ins
.
hbRainBaseInfo
(()
=>
{
resolve
();
});
});
}
async
start
(
data
?)
{
super
.
start
();
...
...
egret/src/mapScene/icon/HbRainIcon.ts
View file @
30344d41
...
...
@@ -4,6 +4,8 @@ import { GDispatcher } from "../../../libs/tc/util/GDispatcher";
import
{
NetManager
}
from
"../../../libs/tw/manager/NetManager"
;
import
{
getlogItem
}
from
"../../Main"
;
import
CutTimer
from
"../../CutTimer"
;
import
{
DataManager
}
from
"../../../libs/tw/manager/DataManager"
;
import
{
NetName
}
from
"../../../libs/tw/enum/NetName"
;
export
default
class
HbRainIcon
extends
IconBase
{
...
...
@@ -15,11 +17,10 @@ export default class HbRainIcon extends IconBase {
this
.
cutTimer
.
callFun
=
()
=>
{
this
.
updateIcon
();
};
this
.
updateIcon
();
let
res
=
DataManager
.
ins
.
getData
(
NetName
.
HBRAIN_BASEINFO
);
if
(
res
)
{
this
.
call
(
res
.
success
,
res
);
}
protected
start
()
{
super
.
start
();
}
public
showLog
()
{
...
...
@@ -28,7 +29,10 @@ export default class HbRainIcon extends IconBase {
}
private
updateIcon
()
{
NetManager
.
ins
.
hbRainBaseInfo
((
success
,
res
)
=>
{
NetManager
.
ins
.
hbRainBaseInfo
((
success
,
res
)
=>
this
.
call
(
success
,
res
));
}
private
call
(
success
,
res
)
{
if
(
!
success
)
{
if
(
res
.
code
==
"600054"
||
res
.
code
==
"600055"
)
{
this
.
visible
=
false
;
...
...
@@ -37,7 +41,6 @@ export default class HbRainIcon extends IconBase {
return
;
}
const
data
=
res
.
data
;
let
time
:
number
;
const
sysTime
=
res
.
timestamp
;
// 当前系统时间
if
(
data
.
currentSession
)
{
...
...
@@ -58,7 +61,6 @@ export default class HbRainIcon extends IconBase {
this
.
visible
=
false
;
}
GDispatcher
.
dispatchEvent
(
'updateActIcon'
);
});
}
...
...
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