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
3013960d
Commit
3013960d
authored
Aug 23, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
27f0409b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
6 deletions
+22
-6
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+1
-1
MainScene.ts
egret/src/mainScene/MainScene.ts
+19
-4
ElementType.ts
egret/src/something/enum/ElementType.ts
+1
-0
PropGuide.ts
egret/src/something/uis/PropGuide.ts
+1
-1
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
3013960d
...
...
@@ -450,7 +450,7 @@ export class NetManager extends ABNetManager {
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
orderId
:
orderId
,
gameData
:
gameData
,
s
ig
n
:
sign
,
s
gi
n
:
sign
,
dynamicData
:
JSON
.
stringify
([]),
detect
:
window
[
'detect'
],
deviceSessionId
:
window
[
'_device_session_id'
],
...
...
egret/src/mainScene/MainScene.ts
View file @
3013960d
...
...
@@ -187,6 +187,8 @@ export default class MainScene extends Scene {
stepBtnNum
:
PropNumShow
;
//道具使用引导
propGuide
:
PropGuide
;
//步数道具引导时的圆
stepCircle
:
egret
.
Shape
;
start
(
data
)
{
super
.
start
();
//初始化索引信息
...
...
@@ -358,7 +360,7 @@ export default class MainScene extends Scene {
//道具使用引导
this
.
propGuide
=
new
PropGuide
();
this
.
propGuide
.
touchEnabled
=
true
;
// this.addChild(this.propGuide);
}
//初始化格子
initLattices
()
{
...
...
@@ -666,6 +668,9 @@ export default class MainScene extends Scene {
this
.
isShowWarning
=
false
;
this
.
resetWarning
();
}
//添加引导蒙层
this
.
addChild
(
this
.
propGuide
);
this
.
propGuide
.
init
(
prop
);
//如果是炸弹或者锤子
if
(
prop
==
PropType
.
BOOM
||
prop
==
PropType
.
HAMMER
)
{
//去掉元素容器的侦听
...
...
@@ -676,8 +681,18 @@ export default class MainScene extends Scene {
this
.
choosed
.
parent
.
removeChild
(
this
.
choosed
)
}
}
else
{
if
(
!
this
.
stepCircle
){
this
.
stepCircle
=
new
egret
.
Shape
();
this
.
stepCircle
.
graphics
.
beginFill
(
0xff0000
,
0.5
);
this
.
stepCircle
.
graphics
.
drawCircle
(
123
,
98
,
72
);
this
.
stepCircle
.
graphics
.
endFill
();
// this.stepCircle.addEventListener()
}
this
.
addChild
(
this
.
stepCircle
)
}
}
sendPropUse
(
prop
){
}
mouseDownE
(
e
:
egret
.
TextEvent
)
{
// if (!this.enableTouch) return
...
...
@@ -2066,13 +2081,13 @@ export default class MainScene extends Scene {
if
(
!
data
)
{
//错误弹框,网络错误
//提交失败
showToast
(
"网络
错误,
再次连接中"
)
showToast
(
"网络
开小差了
\n
再次连接中"
)
setTimeout
(()
=>
{
this
.
submit
(
json
);
},
1300
)
}
else
{
//提交失败,根据错误码显示错误信息
var
txt
=
codeMsgs
[
data
.
code
]
||
"
提交失败
"
;
var
txt
=
codeMsgs
[
data
.
code
]
||
"
活动太火爆了
\n
请稍后再来
"
;
showToast
(
txt
);
setTimeout
(()
=>
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
MAP_SCENE
);
...
...
egret/src/something/enum/ElementType.ts
View file @
3013960d
...
...
@@ -17,6 +17,7 @@ export const codeMsgs = {
"E1002090015"
:
"关卡目标未完成"
,
"E1002090016"
:
"游戏数据提交异常"
,
"E1002090017"
:
"游戏关卡配置异常或关卡暂未开放"
,
"E1002070002"
:
"游戏分数提交失败~
\n
如有疑问,请联系客服"
}
//提交时候的对应字段字段,分数额外,字段是1
export
const
submitTran
=
{
...
...
egret/src/something/uis/PropGuide.ts
View file @
3013960d
...
...
@@ -45,7 +45,7 @@ export class PropGuide extends egret.DisplayObjectContainer {
this
.
stepCircle
.
graphics
.
beginFill
(
0xff0000
,
0.5
);
this
.
stepCircle
.
graphics
.
drawCircle
(
123
,
98
,
72
);
this
.
stepCircle
.
graphics
.
endFill
();
this
.
addChild
(
this
.
stepCircle
);
this
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
this
.
parent
)
this
.
parent
.
removeChild
(
this
)
},
this
)
...
...
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