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
423161aa
Commit
423161aa
authored
Nov 01, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
7672ae9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
MainScene.ts
egret/src/mainScene/MainScene.ts
+8
-8
ElementTarget.ts
egret/src/something/uis/ElementTarget.ts
+2
-2
No files found.
egret/src/mainScene/MainScene.ts
View file @
423161aa
...
...
@@ -309,7 +309,7 @@ export default class MainScene extends Scene {
//步数
this
.
stepNumber
=
new
StepNumber
();
this
.
stepNumber
.
x
=
123
;
this
.
stepNumber
.
y
=
9
7
;
this
.
stepNumber
.
y
=
9
1
;
this
.
addChild
(
this
.
stepNumber
);
//步数初始化
this
.
steps
=
this
.
chapterData
.
stepCount
;
...
...
@@ -693,9 +693,9 @@ export default class MainScene extends Scene {
this
.
musicBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_musicBtn
,
this
)
this
.
quitBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_quitBtn
,
this
)
this
.
boomBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_boomBtn
,
this
)
this
.
hammerBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_hammerBtn
,
this
)
this
.
stepBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_stepBtn
,
this
)
//
this.boomBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_boomBtn, this)
//
this.hammerBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_hammerBtn, this)
//
this.stepBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_stepBtn, this)
}
removeEvents
()
{
...
...
@@ -706,9 +706,9 @@ export default class MainScene extends Scene {
this
.
musicBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_musicBtn
,
this
)
this
.
quitBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_quitBtn
,
this
)
this
.
boomBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_boomBtn
,
this
)
this
.
hammerBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_hammerBtn
,
this
)
this
.
stepBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_stepBtn
,
this
)
//
this.boomBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_boomBtn, this)
//
this.hammerBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_hammerBtn, this)
//
this.stepBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_stepBtn, this)
this
.
elementContainer
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_BEGIN
,
this
.
mouseDownE
,
this
);
this
.
elementContainer
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_MOVE
,
this
.
mouseMoveE
,
this
);
...
...
@@ -2695,7 +2695,7 @@ export default class MainScene extends Scene {
enableMouseEvt
(
b
:
boolean
)
{
// this.touchEnabled = b;
// this.touchChildren = b;
var
arr
=
[
this
.
elementContainer
,
this
.
boomBtn
,
this
.
hammerBtn
,
this
.
stepBtn
]
var
arr
=
[
this
.
elementContainer
,
/*this.boomBtn, this.hammerBtn, this.stepBtn*/
]
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
arr
[
i
].
touchEnabled
=
b
;
arr
[
i
].
touchChildren
=
b
;
...
...
egret/src/something/uis/ElementTarget.ts
View file @
423161aa
...
...
@@ -47,8 +47,8 @@ export class ElementTarget extends egret.DisplayObjectContainer {
this
.
zeroMark
.
visible
=
false
;
this
.
addChild
(
this
.
zeroMark
);
this
.
countNum
=
new
TargetNumber
();
this
.
countNum
.
x
=
5
0
;
this
.
countNum
.
y
=
38
;
this
.
countNum
.
x
=
5
5
;
this
.
countNum
.
y
=
45
;
this
.
addChild
(
this
.
countNum
);
}
}
\ No newline at end of file
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