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
eb630bfa
Commit
eb630bfa
authored
Jun 01, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab2.dui88.com/wanghongyuan/xiaoxiaole
into 樱花825
parents
ded96b53
4fa59434
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
MapScene.ts
egret/src/mapScene/MapScene.ts
+24
-0
No files found.
egret/src/mapScene/MapScene.ts
View file @
eb630bfa
...
@@ -1227,6 +1227,25 @@ export default class MapScene extends Scene {
...
@@ -1227,6 +1227,25 @@ export default class MapScene extends Scene {
// private _avatarsCache = [];
// private _avatarsCache = [];
//清楚地图页面的头像
clearAvatar
(
mappartype
:
string
,
mappart
:
any
){
var
mapnums
:
number
;
if
(
mappartype
==
"top"
){
mapnums
=
MapTopPart
.
LEVEL_NUMS
;
}
else
if
(
mappartype
==
"mid"
){
mapnums
=
MapRpeatPart
.
LEVEL_NUMS
;
}
else
if
(
mappartype
==
"bot"
){
mapnums
=
MapBottomPart
.
LEVEL_NUMS
;
}
for
(
var
i
=
0
;
i
<
mapnums
;
i
++
){
let
icon
=
mappart
.
getIcon
(
i
);
var
avatarname
:
string
=
"avatarank"
;
var
avatar
=
icon
.
getChildByName
(
avatarname
);
if
(
avatar
){
avatar
.
parent
.
removeChild
(
avatar
);
}
}
}
//添加地图页头像
//添加地图页头像
addAvatar
(
level
,
ele
?)
{
addAvatar
(
level
,
ele
?)
{
...
@@ -1256,6 +1275,11 @@ export default class MapScene extends Scene {
...
@@ -1256,6 +1275,11 @@ export default class MapScene extends Scene {
// 更新地图上的排行榜
// 更新地图上的排行榜
updateFriends
()
{
updateFriends
()
{
this
.
maprankdata
=
new
Array
();
this
.
maprankdata
=
new
Array
();
this
.
clearAvatar
(
"top"
,
this
.
maptoppart
);
this
.
clearAvatar
(
"mid"
,
this
.
onemapreppart
);
this
.
clearAvatar
(
"mid"
,
this
.
twomapreppart
);
this
.
clearAvatar
(
"bot"
,
this
.
mapbotpart
);
NetManager
.
ins
.
hc_mapRank
(()
=>
{
NetManager
.
ins
.
hc_mapRank
(()
=>
{
const
hc_mapRank
=
DataManager
.
ins
.
getData
(
'hc_mapRank'
).
data
;
const
hc_mapRank
=
DataManager
.
ins
.
getData
(
'hc_mapRank'
).
data
;
if
(
!
hc_mapRank
)
return
;
if
(
!
hc_mapRank
)
return
;
...
...
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