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
b5077a43
Commit
b5077a43
authored
Aug 23, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
ec91ad3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+2
-1
PropGuide.ts
egret/src/something/uis/PropGuide.ts
+8
-2
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
b5077a43
...
...
@@ -448,6 +448,7 @@ export class NetManager extends ABNetManager {
dataType
:
'json'
,
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
orderId
:
orderId
,
gameData
:
gameData
,
sign
:
sign
,
dynamicData
:
JSON
.
stringify
([]),
...
...
@@ -834,7 +835,7 @@ export class NetManager extends ABNetManager {
public
hc_exchange
(
callback
:
Function
,
propType
?:
number
):
void
{
const
d
:
any
=
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
};
if
(
propType
)
{
d
.
propType
=
propType
;
...
...
egret/src/something/uis/PropGuide.ts
View file @
b5077a43
...
...
@@ -12,6 +12,7 @@ export class PropGuide extends egret.DisplayObjectContainer {
hammerBtn
:
egret
.
Bitmap
;
stepBtn
:
egret
.
Bitmap
;
msgTxt
:
egret
.
TextField
;
stepCircle
:
egret
.
Shape
;
constructor
()
{
super
()
this
.
bg
=
new
egret
.
Shape
();
...
...
@@ -33,12 +34,17 @@ export class PropGuide extends egret.DisplayObjectContainer {
text
.
text
=
"为本次增加额外5次步数"
;
text
.
textColor
=
0xffffff
;
text
.
size
=
20
;
text
.
x
=
(
750
-
500
)
/
2
;
text
.
x
=
(
750
-
500
)
/
2
;
text
.
y
=
1008
;
text
.
textAlign
=
egret
.
HorizontalAlign
.
CENTER
;
text
.
width
=
500
;
this
.
addChild
(
text
);
this
.
msgTxt
=
text
;
//步数的圆
this
.
stepCircle
=
new
egret
.
Shape
();
this
.
stepCircle
.
graphics
.
beginFill
(
0xff0000
,
0.5
);
this
.
stepCircle
.
graphics
.
drawCircle
(
123
,
98
,
72
);
this
.
stepCircle
.
graphics
.
endFill
();
this
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
this
.
parent
)
this
.
parent
.
removeChild
(
this
)
...
...
@@ -74,7 +80,7 @@ export class PropGuide extends egret.DisplayObjectContainer {
this
.
bg
.
graphics
.
lineTo
(
0
,
0
);
this
.
bg
.
graphics
.
drawArc
(
123
,
98
,
72
,
0
,
Math
.
PI
*
2
,
true
)
this
.
bg
.
graphics
.
endFill
();
this
.
msgTxt
.
text
=
"为本次增加额外5次步数"
;
this
.
msgTxt
.
text
=
"
点击左上方步数,
为本次增加额外5次步数"
;
// this.msgTxt.x = 320;
}
}
...
...
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