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
4ef73e77
Commit
4ef73e77
authored
Oct 31, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f5413af0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
71 deletions
+52
-71
turnable_icon1.png
egret/resource/assets/turntable/turnable_icon1.png
+0
-0
turnable_icon2.png
egret/resource/assets/turntable/turnable_icon2.png
+0
-0
turnable_icon3.png
egret/resource/assets/turntable/turnable_icon3.png
+0
-0
IconBase.ts
egret/src/mapScene/icon/IconBase.ts
+50
-21
turnablebaseInfo.json
mock/happyclear/turnablebaseInfo.json
+2
-50
No files found.
egret/resource/assets/turntable/turnable_icon1.png
View replaced file @
f5413af0
View file @
4ef73e77
18.5 KB
|
W:
|
H:
16.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/turntable/turnable_icon2.png
View replaced file @
f5413af0
View file @
4ef73e77
16.7 KB
|
W:
|
H:
18.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/turntable/turnable_icon3.png
View replaced file @
f5413af0
View file @
4ef73e77
18.2 KB
|
W:
|
H:
18.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/src/mapScene/icon/IconBase.ts
View file @
4ef73e77
...
...
@@ -24,27 +24,6 @@ export default class IconBase {
this
.
start
();
}
protected
start
()
{
this
.
initEvents
();
}
protected
initEvents
()
{
this
.
iconBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchBtn
,
this
);
}
protected
onTouchBtn
(
e
:
egret
.
TouchEvent
)
{
}
protected
removeEvents
()
{
this
.
iconBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchBtn
,
this
);
}
protected
destory
()
{
this
.
removeEvents
();
}
/**
* 设置图标提示的隐藏与显示
* @param visible
...
...
@@ -67,4 +46,54 @@ export default class IconBase {
this
.
iconTipsBg
.
visible
=
visible
;
this
.
iconTips
.
visible
=
visible
;
}
public
get
postion
()
{
return
{
x
:
this
.
iconGroup
.
x
,
y
:
this
.
iconGroup
.
y
};
}
// public set postion(pos: {x, y}, y?:number) {
// this.iconGroup.x = pos.x,
//
// }
public
get
x
()
{
return
this
.
iconGroup
.
x
;
}
public
set
x
(
x
:
number
)
{
this
.
iconGroup
.
x
=
x
;
}
public
get
y
()
{
return
this
.
iconGroup
.
y
;
}
public
set
y
(
y
:
number
)
{
this
.
iconGroup
.
y
=
y
;
}
protected
start
()
{
this
.
initEvents
();
}
protected
initEvents
()
{
this
.
iconBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchBtn
,
this
);
}
protected
onTouchBtn
(
e
:
egret
.
TouchEvent
)
{
}
protected
removeEvents
()
{
this
.
iconBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchBtn
,
this
);
}
protected
destory
()
{
this
.
removeEvents
();
}
}
\ No newline at end of file
mock/happyclear/turnablebaseInfo.json
View file @
4ef73e77
...
...
@@ -8,7 +8,7 @@
"costCoinJoinTimes"
:
0
,
"nextTimeNeedCoin"
:
20
,
"luckyDrawInfo"
:
{
"enable"
:
fals
e
,
"enable"
:
tru
e
,
"id"
:
null
,
"baseCount"
:
20
,
"bonusCount"
:
0
,
...
...
@@ -70,55 +70,7 @@
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"propType"
:
2
,
"num"
:
null
,
"img"
:
""
,
"appItemId"
:
null
,
"name"
:
""
,
"value"
:
""
},
{
"id"
:
""
,
"day"
:
null
,
"categoryType"
:
3
,
"title"
:
"11"
,
"rate"
:
"11"
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"propType"
:
2
,
"num"
:
null
,
"img"
:
""
,
"appItemId"
:
null
,
"name"
:
""
,
"value"
:
""
},
{
"id"
:
""
,
"day"
:
null
,
"categoryType"
:
2
,
"title"
:
"11"
,
"rate"
:
"1"
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"propType"
:
null
,
"num"
:
2
,
"img"
:
""
,
"appItemId"
:
null
,
"name"
:
""
,
"value"
:
""
},
{
"id"
:
""
,
"day"
:
null
,
"categoryType"
:
3
,
"title"
:
"1111"
,
"rate"
:
"11"
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"propType"
:
2
,
"propType"
:
3
,
"num"
:
null
,
"img"
:
""
,
"appItemId"
:
null
,
...
...
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