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
452128d1
Commit
452128d1
authored
Dec 10, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab2.dui88.com/wanghongyuan/yyh
into dev
parents
8ad0a7b6
d8e876cd
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
7 deletions
+25
-7
PKSkin.exml
egret/resource/skins/PKSkin.exml
+1
-1
StartScene.ts
egret/src/startScene/StartScene.ts
+3
-0
GuidePanel.ts
egret/src/yazuwei/GuidePanel.ts
+3
-0
PKScene.ts
egret/src/yazuwei/PKScene.ts
+6
-2
RecordMapScene.ts
egret/src/yazuwei/RecordMapScene.ts
+9
-4
RecordScene.ts
egret/src/yazuwei/RecordScene.ts
+3
-0
No files found.
egret/resource/skins/PKSkin.exml
View file @
452128d1
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<e:Label
id=
"myteamnum"
text=
"总步数:9999"
x=
"112"
y=
"648"
size=
"30"
verticalAlign=
"middle"
textColor=
"0xfe0f5a"
width=
"212"
textAlign=
"center"
/>
<e:Label
id=
"myteamnum"
text=
"总步数:9999"
x=
"112"
y=
"648"
size=
"30"
verticalAlign=
"middle"
textColor=
"0xfe0f5a"
width=
"212"
textAlign=
"center"
/>
<e:Label
id=
"otherteam"
text=
"敌方队伍"
x=
"426"
y=
"738"
size=
"29"
textAlign=
"center"
verticalAlign=
"middle"
textColor=
"0xFCFFFF"
width=
"212"
/>
<e:Label
id=
"otherteam"
text=
"敌方队伍"
x=
"426"
y=
"738"
size=
"29"
textAlign=
"center"
verticalAlign=
"middle"
textColor=
"0xFCFFFF"
width=
"212"
/>
<e:Label
id=
"otherteamnum"
text=
"总步数:9999"
x=
"426"
y=
"772"
size=
"30"
verticalAlign=
"middle"
width=
"212"
textAlign=
"center"
textColor=
"0x93f7fa"
/>
<e:Label
id=
"otherteamnum"
text=
"总步数:9999"
x=
"426"
y=
"772"
size=
"30"
verticalAlign=
"middle"
width=
"212"
textAlign=
"center"
textColor=
"0x93f7fa"
/>
<e:Group
width=
"750"
height=
"1206"
x=
"0"
y=
"209
"
>
<e:Group
width=
"750"
height=
"1206"
horizontalCenter=
"0"
verticalCenter=
"0
"
>
<e:Button
id=
"ruleBtn"
label=
"Button"
skinName=
"ui.IconButtonSkin"
icon=
"pkrulebtn_png"
scaleX=
"1"
scaleY=
"1"
width=
"106"
height=
"40"
anchorOffsetX=
"53"
anchorOffsetY=
"20"
x=
"697"
y=
"36"
/>
<e:Button
id=
"ruleBtn"
label=
"Button"
skinName=
"ui.IconButtonSkin"
icon=
"pkrulebtn_png"
scaleX=
"1"
scaleY=
"1"
width=
"106"
height=
"40"
anchorOffsetX=
"53"
anchorOffsetY=
"20"
x=
"697"
y=
"36"
/>
<e:Image
width=
"575"
height=
"265"
x=
"87"
y=
"80"
scaleX=
"1"
scaleY=
"1"
source=
"pkscorebg2_png"
/>
<e:Image
width=
"575"
height=
"265"
x=
"87"
y=
"80"
scaleX=
"1"
scaleY=
"1"
source=
"pkscorebg2_png"
/>
<e:Label
id=
"allscore"
text=
"100"
x=
"178"
y=
"166"
size=
"43"
textColor=
"0x4cfcfc"
anchorOffsetX=
"0"
width=
"127"
textAlign=
"center"
scaleX=
"1"
scaleY=
"1"
/>
<e:Label
id=
"allscore"
text=
"100"
x=
"178"
y=
"166"
size=
"43"
textColor=
"0x4cfcfc"
anchorOffsetX=
"0"
width=
"127"
textAlign=
"center"
scaleX=
"1"
scaleY=
"1"
/>
...
...
egret/src/startScene/StartScene.ts
View file @
452128d1
...
@@ -66,6 +66,9 @@ export default class StartScene extends Scene {
...
@@ -66,6 +66,9 @@ export default class StartScene extends Scene {
onEnterFrame
(){
onEnterFrame
(){
}
}
initUI
(
data
)
{
initUI
(
data
)
{
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
()
=>
{
this
.
height
=
this
.
stage
.
stageHeight
;
},
this
);
this
.
peolab
.
text
=
"总共有"
+
data
.
activityJoinNum
+
"人参与活动"
;
this
.
peolab
.
text
=
"总共有"
+
data
.
activityJoinNum
+
"人参与活动"
;
this
.
scorelab
.
text
=
"我的分数:"
+
data
.
currentScore
;
this
.
scorelab
.
text
=
"我的分数:"
+
data
.
currentScore
;
if
(
!
GCache
.
readCache
(
"isGuide"
)){
if
(
!
GCache
.
readCache
(
"isGuide"
)){
...
...
egret/src/yazuwei/GuidePanel.ts
View file @
452128d1
...
@@ -40,6 +40,9 @@ export default class GuidePanel extends Panel{
...
@@ -40,6 +40,9 @@ export default class GuidePanel extends Panel{
}
}
initUI
(){
initUI
(){
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
()
=>
{
this
.
height
=
this
.
stage
.
stageHeight
;
},
this
);
this
.
guide1
.
visible
=
true
;
this
.
guide1
.
visible
=
true
;
this
.
guide2
.
visible
=
false
;
this
.
guide2
.
visible
=
false
;
this
.
guide3
.
visible
=
false
;
this
.
guide3
.
visible
=
false
;
...
...
egret/src/yazuwei/PKScene.ts
View file @
452128d1
...
@@ -5,6 +5,7 @@ import { yzwNet } from "../NetConst";
...
@@ -5,6 +5,7 @@ import { yzwNet } from "../NetConst";
import
ToastCtrl
from
"../ctrls/toastCtrl"
;
import
ToastCtrl
from
"../ctrls/toastCtrl"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
GameConst
from
"../GameConst"
;
export
default
class
PKScene
extends
Scene
{
export
default
class
PKScene
extends
Scene
{
protected
get
skinKey
(){
return
'PK'
}
protected
get
skinKey
(){
return
'PK'
}
...
@@ -46,6 +47,9 @@ export default class PKScene extends Scene{
...
@@ -46,6 +47,9 @@ export default class PKScene extends Scene{
}
}
}
}
initUI
(
data
){
initUI
(
data
){
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
()
=>
{
this
.
height
=
this
.
stage
.
stageHeight
;
},
this
);
this
.
addEventListener
(
egret
.
Event
.
ENTER_FRAME
,
this
.
onEnterFrame
,
this
);
this
.
addEventListener
(
egret
.
Event
.
ENTER_FRAME
,
this
.
onEnterFrame
,
this
);
this
.
allscore
.
text
=
data
.
pkTotalScore
;
this
.
allscore
.
text
=
data
.
pkTotalScore
;
this
.
myscore
.
text
=
data
.
pkMyScore
;
this
.
myscore
.
text
=
data
.
pkMyScore
;
...
@@ -68,8 +72,8 @@ export default class PKScene extends Scene{
...
@@ -68,8 +72,8 @@ export default class PKScene extends Scene{
this
.
myline
.
anchorOffsetY
=
this
.
myline
.
height
this
.
myline
.
anchorOffsetY
=
this
.
myline
.
height
this
.
otherline
.
anchorOffsetY
=
this
.
otherline
.
height
this
.
otherline
.
anchorOffsetY
=
this
.
otherline
.
height
this
.
myline
.
y
=
1624
;
this
.
myline
.
y
=
GameConst
.
stage
.
stageHeight
;
this
.
otherline
.
y
=
1624
;
this
.
otherline
.
y
=
GameConst
.
stage
.
stageHeight
;
this
.
myteam
.
y
=
this
.
myline
.
y
-
this
.
myline
.
height
-
70
;
this
.
myteam
.
y
=
this
.
myline
.
y
-
this
.
myline
.
height
-
70
;
this
.
myteamnum
.
y
=
this
.
myline
.
y
-
this
.
myline
.
height
-
35
;
this
.
myteamnum
.
y
=
this
.
myline
.
y
-
this
.
myline
.
height
-
35
;
this
.
otherteam
.
y
=
this
.
otherline
.
y
-
this
.
otherline
.
height
-
70
;
this
.
otherteam
.
y
=
this
.
otherline
.
y
-
this
.
otherline
.
height
-
70
;
...
...
egret/src/yazuwei/RecordMapScene.ts
View file @
452128d1
...
@@ -17,6 +17,9 @@ export default class RecordMapScene extends Scene{
...
@@ -17,6 +17,9 @@ export default class RecordMapScene extends Scene{
}
}
initUI
(
data
){
initUI
(
data
){
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
()
=>
{
this
.
height
=
this
.
stage
.
stageHeight
;
},
this
);
if
(
data
.
num
==
1
){
if
(
data
.
num
==
1
){
this
.
mapBG
.
source
=
"maphz_png"
this
.
mapBG
.
source
=
"maphz_png"
}
else
if
(
data
.
num
==
2
){
}
else
if
(
data
.
num
==
2
){
...
@@ -35,14 +38,16 @@ export default class RecordMapScene extends Scene{
...
@@ -35,14 +38,16 @@ export default class RecordMapScene extends Scene{
this
.
mapBG
.
source
=
"mapmg_png"
this
.
mapBG
.
source
=
"mapmg_png"
}
}
const
arr
=
[
"HZ"
,
"AM"
,
"XG"
,
"TB"
,
"RB"
,
"HG"
,
"CX"
,
"MG"
];
const
arr
=
[
"HZ"
,
"AM"
,
"XG"
,
"TB"
,
"RB"
,
"HG"
,
"CX"
,
"MG"
];
if
(
data
.
data
){
for
(
let
i
=
0
;
i
<
data
.
data
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
data
.
data
.
length
;
i
++
){
if
(
arr
[
data
.
num
-
1
]
==
data
.
data
[
i
]){
if
(
arr
[
data
.
num
-
1
]
==
data
.
data
[
i
]){
this
.
sharelab
.
visible
=
false
;
this
.
sharelab
.
visible
=
false
;
}
}
}
}
}
}
}
initEvents
(){
initEvents
(){
...
...
egret/src/yazuwei/RecordScene.ts
View file @
452128d1
...
@@ -30,6 +30,9 @@ export default class RecordScene extends Scene{
...
@@ -30,6 +30,9 @@ export default class RecordScene extends Scene{
}
}
initUI
(
data
){
initUI
(
data
){
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
()
=>
{
this
.
height
=
this
.
stage
.
stageHeight
;
},
this
);
const
arr
=
[
"hz"
,
"am"
,
"xg"
,
"tb"
,
"rb"
,
"hg"
,
"cx"
,
"mg"
]
const
arr
=
[
"hz"
,
"am"
,
"xg"
,
"tb"
,
"rb"
,
"hg"
,
"cx"
,
"mg"
]
for
(
let
i
=
data
;
i
<
8
;
i
++
){
for
(
let
i
=
data
;
i
<
8
;
i
++
){
this
[
arr
[
i
]].
visible
=
false
;
this
[
arr
[
i
]].
visible
=
false
;
...
...
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