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
f5413af0
Commit
f5413af0
authored
Oct 31, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
821ba259
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
ScratchIcon.ts
egret/src/mapScene/icon/ScratchIcon.ts
+5
-0
TurntableIcon.ts
egret/src/mapScene/icon/TurntableIcon.ts
+3
-0
No files found.
egret/src/mapScene/icon/ScratchIcon.ts
View file @
f5413af0
...
@@ -16,6 +16,11 @@ export default class ScratchIcon extends IconBase {
...
@@ -16,6 +16,11 @@ export default class ScratchIcon extends IconBase {
constructor
(
name
:
string
,
group
:
eui
.
Group
,
btn
:
eui
.
Button
,
tipsBg
?:
eui
.
Image
,
tipsLabel
?:
eui
.
Label
)
{
constructor
(
name
:
string
,
group
:
eui
.
Group
,
btn
:
eui
.
Button
,
tipsBg
?:
eui
.
Image
,
tipsLabel
?:
eui
.
Label
)
{
super
(
name
,
group
,
btn
,
tipsBg
,
tipsLabel
);
super
(
name
,
group
,
btn
,
tipsBg
,
tipsLabel
);
NetManager
.
ins
.
showLog
(
getlogItem
(
49
));
NetManager
.
ins
.
showLog
(
getlogItem
(
49
));
GDispatcher
.
addEvent
(
'updateScratchPosition'
,
this
.
updateScratchPosition
,
this
)
}
updateScratchPosition
(){
this
[
'iconGroup'
].
y
=
318
;
}
}
protected
start
()
{
protected
start
()
{
...
...
egret/src/mapScene/icon/TurntableIcon.ts
View file @
f5413af0
...
@@ -27,6 +27,7 @@ export default class TurntableIcon extends IconBase {
...
@@ -27,6 +27,7 @@ export default class TurntableIcon extends IconBase {
NetManager
.
ins
.
clickLog
(
getlogItem
(
43
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
43
));
if
(
!
success
){
if
(
!
success
){
this
.
visible
=
false
;
this
.
visible
=
false
;
GDispatcher
.
dispatchEvent
(
'updateScratchPosition'
);
return
;
return
;
}
}
let
data
=
res
.
data
;
let
data
=
res
.
data
;
...
@@ -37,6 +38,8 @@ export default class TurntableIcon extends IconBase {
...
@@ -37,6 +38,8 @@ export default class TurntableIcon extends IconBase {
this
.
tipsVisible
=
false
;
this
.
tipsVisible
=
false
;
}
}
this
.
visible
=
res
.
data
.
luckyDrawInfo
.
enable
;
this
.
visible
=
res
.
data
.
luckyDrawInfo
.
enable
;
if
(
!
res
.
data
.
luckyDrawInfo
.
enable
)
GDispatcher
.
dispatchEvent
(
'updateScratchPosition'
);
})
})
}
}
...
...
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