Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yyh
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
yyh
Commits
b5cd7359
Commit
b5cd7359
authored
Dec 07, 2019
by
wangzhujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
ca3beeae
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
9 deletions
+18
-9
HeadItemSkin.exml
egret/resource/skins/HeadItemSkin.exml
+1
-1
Main.ts
egret/src/Main.ts
+4
-4
PKScorePanel.ts
egret/src/yazuwei/PKScorePanel.ts
+13
-4
No files found.
egret/resource/skins/HeadItemSkin.exml
View file @
b5cd7359
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<e:Image
width=
"100"
height=
"100"
y=
"0"
horizontalCenter=
"0"
source=
"pkcirle_png"
/>
<e:Image
width=
"100"
height=
"100"
y=
"0"
horizontalCenter=
"0"
source=
"pkcirle_png"
/>
<e:Label
id=
"notonline"
text=
"未上线"
y=
"41"
size=
"20"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Label
id=
"notonline"
text=
"未上线"
y=
"41"
size=
"20"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Group
id=
"onGroup"
width=
"110"
height=
"45"
y=
"113"
horizontalCenter=
"1"
>
<e:Group
id=
"onGroup"
width=
"110"
height=
"45"
y=
"113"
horizontalCenter=
"1"
>
<e:Label
id=
"onphone"
text=
"130****1856"
y=
"0"
size=
"20"
scaleX=
"1"
scaleY=
"1"
x=
"1"
/>
<e:Label
id=
"onphone"
text=
"130****1856"
y=
"0"
size=
"20"
scaleX=
"1"
scaleY=
"1"
x=
"1"
width=
"110"
textAlign=
"center"
/>
<e:Label
id=
"onnum"
text=
"+1586步"
y=
"25"
size=
"20"
x=
"0"
scaleX=
"1"
scaleY=
"1"
width=
"110"
textAlign=
"center"
/>
<e:Label
id=
"onnum"
text=
"+1586步"
y=
"25"
size=
"20"
x=
"0"
scaleX=
"1"
scaleY=
"1"
width=
"110"
textAlign=
"center"
/>
</e:Group>
</e:Group>
<e:Group
id=
"notGroup"
width=
"106"
height=
"58"
y=
"111"
horizontalCenter=
"0"
visible=
"false"
>
<e:Group
id=
"notGroup"
width=
"106"
height=
"58"
y=
"111"
horizontalCenter=
"0"
visible=
"false"
>
...
...
egret/src/Main.ts
View file @
b5cd7359
...
@@ -149,11 +149,11 @@ class Main extends MainBase {
...
@@ -149,11 +149,11 @@ class Main extends MainBase {
// 创建游戏场景
// 创建游戏场景
protected
createGameScene
()
{
protected
createGameScene
()
{
super
.
createGameScene
();
super
.
createGameScene
();
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
Share2Scene
);
//
SceneCtrl.instance.change(ModuleTypes.Share2Scene);
// PanelCtrl.instance.show(ModuleTypes.JoinShareScene);
//
//
PanelCtrl.instance.show(ModuleTypes.JoinShareScene);
Waiting
.
instance
.
hide
();
//
Waiting.instance.hide();
return
;
//
return;
//获取UA信息
//获取UA信息
let
userAgent
=
navigator
.
userAgent
.
toLowerCase
();
let
userAgent
=
navigator
.
userAgent
.
toLowerCase
();
console
.
log
(
userAgent
);
console
.
log
(
userAgent
);
...
...
egret/src/yazuwei/PKScorePanel.ts
View file @
b5cd7359
...
@@ -40,16 +40,18 @@ export default class PKScorePanel extends Panel{
...
@@ -40,16 +40,18 @@ export default class PKScorePanel extends Panel{
this
.
light
.
source
=
"pkpeacelight_png"
this
.
light
.
source
=
"pkpeacelight_png"
this
.
title
.
text
=
"未能获得宝箱"
this
.
title
.
text
=
"未能获得宝箱"
this
.
endtitle
.
text
=
"本场助力排行榜"
this
.
endtitle
.
text
=
"本场助力排行榜"
this
.
setColor
(
this
.
box
);
}
else
if
(
data
.
pkResult
.
pkResult
==
1
){
}
else
if
(
data
.
pkResult
.
pkResult
==
1
){
this
.
status
.
source
=
"pkwinlogo_png"
this
.
status
.
source
=
"pkwinlogo_png"
this
.
light
.
source
=
"pkwinlight_png"
this
.
light
.
source
=
"pkwinlight_png"
this
.
title
.
text
=
"宝箱已发
送
到胜利队伍"
this
.
title
.
text
=
"宝箱已发到胜利队伍"
this
.
endtitle
.
text
=
"本场分数奖励"
this
.
endtitle
.
text
=
"本场分数奖励"
}
else
if
(
data
.
pkResult
.
pkResult
==
2
){
}
else
if
(
data
.
pkResult
.
pkResult
==
2
){
this
.
status
.
source
=
"pkloselogo_png"
this
.
status
.
source
=
"pkloselogo_png"
this
.
light
.
source
=
"pkloselight_png"
this
.
light
.
source
=
"pkloselight_png"
this
.
title
.
text
=
"未能获得宝箱"
this
.
title
.
text
=
"未能获得宝箱"
this
.
endtitle
.
text
=
"本场助力排行榜"
this
.
endtitle
.
text
=
"本场助力排行榜"
this
.
setColor
(
this
.
box
);
}
}
for
(
let
i
=
0
;
i
<
data
.
pkResult
.
myTeamMembers
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
data
.
pkResult
.
myTeamMembers
.
length
;
i
++
){
this
[
"team"
+
(
i
+
1
)][
"onGroup"
].
visible
=
true
;
this
[
"team"
+
(
i
+
1
)][
"onGroup"
].
visible
=
true
;
...
@@ -66,11 +68,17 @@ export default class PKScorePanel extends Panel{
...
@@ -66,11 +68,17 @@ export default class PKScorePanel extends Panel{
this
[
"team"
+
(
i
+
1
)][
"onphone"
].
text
=
data
.
pkResult
.
myTeamMembers
[
i
].
phone
this
[
"team"
+
(
i
+
1
)][
"onphone"
].
text
=
data
.
pkResult
.
myTeamMembers
[
i
].
phone
}
}
}
for
(
let
n
=
5
;
n
>
data
.
pkResult
.
myTeamMembers
.
length
;
n
--
){
this
[
"team"
+
n
][
"notonline"
].
visible
=
false
;
this
[
"team"
+
n
][
"onGroup"
].
visible
=
false
;
this
[
"team"
+
n
][
"notGroup"
].
visible
=
false
;
this
[
"team"
+
n
][
"headimg"
].
source
=
"pkadd_png"
this
[
"team"
+
n
][
"nopeople"
].
visible
=
false
;
}
}
this
.
onTap
(
this
.
closeBtn
,
this
.
onTap_PKBtn
)
this
.
onTap
(
this
.
prizeBtn
,
this
.
onTap_PKBtn
)
}
}
onTap_PKBtn
(){
onTap_PKBtn
(){
...
@@ -81,6 +89,7 @@ export default class PKScorePanel extends Panel{
...
@@ -81,6 +89,7 @@ export default class PKScorePanel extends Panel{
}
}
let
data
=
DataManager
.
ins
.
getData
(
"getPkBaseInfo"
).
data
;
let
data
=
DataManager
.
ins
.
getData
(
"getPkBaseInfo"
).
data
;
let
pkdata
=
{
data
:
data
,
startdata
:
this
.
startdata
}
let
pkdata
=
{
data
:
data
,
startdata
:
this
.
startdata
}
this
.
hidePanel
();
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
PK_SCENE
,
pkdata
);
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
PK_SCENE
,
pkdata
);
},
window
[
'projectId'
]);
},
window
[
'projectId'
]);
}
}
...
...
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