Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
crazyflirt
Project
Overview
Details
Activity
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
Shawn Wang
crazyflirt
Commits
8bf8c6da
Commit
8bf8c6da
authored
May 05, 2018
by
Mike Zhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update cid when data.type is entry
parent
1fc27b70
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Main.ts
fe/src/Main.ts
+6
-1
No files found.
fe/src/Main.ts
View file @
8bf8c6da
...
@@ -32,6 +32,7 @@ class Main extends egret.DisplayObjectContainer {
...
@@ -32,6 +32,7 @@ class Main extends egret.DisplayObjectContainer {
public
constructor
()
{
public
constructor
()
{
super
();
super
();
this
.
addEventListener
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onAddToStage
,
this
);
this
.
addEventListener
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onAddToStage
,
this
);
}
}
private
onAddToStage
(
event
:
egret
.
Event
)
{
private
onAddToStage
(
event
:
egret
.
Event
)
{
...
@@ -65,7 +66,7 @@ class Main extends egret.DisplayObjectContainer {
...
@@ -65,7 +66,7 @@ class Main extends egret.DisplayObjectContainer {
const
userInfo
=
await
platform
.
getUserInfo
();
const
userInfo
=
await
platform
.
getUserInfo
();
Store
.
onMessage
({
Store
.
onMessage
({
type
:
'setUserInfo'
,
type
:
'setUserInfo'
,
data
:
userInfo
payload
:
userInfo
})
})
console
.
log
(
userInfo
);
console
.
log
(
userInfo
);
...
@@ -117,6 +118,10 @@ class Main extends egret.DisplayObjectContainer {
...
@@ -117,6 +118,10 @@ class Main extends egret.DisplayObjectContainer {
}
}
if
(
data
.
type
===
'entry'
)
{
if
(
data
.
type
===
'entry'
)
{
Store
.
onMessage
({
type
:
'updateCid'
,
payload
:
data
})
SceneManager
.
getInstance
().
roomScene
.
update
(
data
)
SceneManager
.
getInstance
().
roomScene
.
update
(
data
)
}
}
})
})
...
...
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