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
3e9544b0
Commit
3e9544b0
authored
Aug 19, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
29d75c03
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
MapSkin.exml
egret/resource/skins/MapSkin.exml
+1
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+4
-4
No files found.
egret/resource/skins/MapSkin.exml
View file @
3e9544b0
...
...
@@ -28,7 +28,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"goldBtn"
label=
""
x=
"482.2"
y=
"16.6"
>
<e:Button
id=
"goldBtn"
label=
""
x=
"482.2"
y=
"16.6"
visible=
"false"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"关闭 拷贝_png"
source.down=
"关闭 拷贝_png"
source.disabled=
"关闭 拷贝_png"
/>
...
...
egret/src/mapScene/MapScene.ts
View file @
3e9544b0
...
...
@@ -54,7 +54,7 @@ export default class MapScene extends Scene {
}
protected
initEvents
()
{
this
[
'goldBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_goldBtn
,
this
)
//
this['goldBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_goldBtn, this)
this
[
'bloodBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_bloodBtn
,
this
)
this
[
'settingBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
toggleSettings
,
this
)
this
[
'shopBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_shopBtn
,
this
)
...
...
@@ -73,9 +73,9 @@ export default class MapScene extends Scene {
this
[
'settingGroup'
].
visible
=!
this
[
'settingGroup'
].
visible
;
}
onTap_goldBtn
()
{
PanelCtrl
.
instance
.
show
(
'GoldPanel'
)
}
//
onTap_goldBtn() {
//
PanelCtrl.instance.show('GoldPanel')
//
}
onTap_bloodBtn
()
{
PanelCtrl
.
instance
.
show
(
'bloodPanel'
)
...
...
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