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
e6efb93b
Commit
e6efb93b
authored
Nov 05, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8b323578
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
IconBase.ts
egret/src/mapScene/icon/IconBase.ts
+2
-2
TurntableIcon.ts
egret/src/mapScene/icon/TurntableIcon.ts
+1
-1
No files found.
egret/src/mapScene/icon/IconBase.ts
View file @
e6efb93b
...
@@ -42,8 +42,8 @@ export default class IconBase {
...
@@ -42,8 +42,8 @@ export default class IconBase {
public
set
visible
(
visible
:
boolean
)
{
public
set
visible
(
visible
:
boolean
)
{
this
.
iconGroup
.
visible
=
visible
;
this
.
iconGroup
.
visible
=
visible
;
this
.
iconBtn
.
visible
=
visible
;
this
.
iconBtn
.
visible
=
visible
;
this
.
iconTipsBg
.
visible
=
visible
;
//
this.iconTipsBg.visible = visible;
this
.
iconTips
.
visible
=
visible
;
//
this.iconTips.visible = visible;
}
}
public
get
position
():
{
x
,
y
}
{
public
get
position
():
{
x
,
y
}
{
...
...
egret/src/mapScene/icon/TurntableIcon.ts
View file @
e6efb93b
...
@@ -31,13 +31,13 @@ export default class TurntableIcon extends IconBase {
...
@@ -31,13 +31,13 @@ export default class TurntableIcon extends IconBase {
return
;
return
;
}
}
let
data
=
res
.
data
;
let
data
=
res
.
data
;
this
.
visible
=
res
.
data
.
luckyDrawInfo
.
enable
;
if
(
data
.
remainTimes
>
0
||
(
getHomeData
().
wealth
>
data
.
nextTimeNeedCoin
))
{
if
(
data
.
remainTimes
>
0
||
(
getHomeData
().
wealth
>
data
.
nextTimeNeedCoin
))
{
this
.
tipsVisible
=
true
;
this
.
tipsVisible
=
true
;
this
.
iconTips
.
text
=
"有优惠"
this
.
iconTips
.
text
=
"有优惠"
}
else
{
}
else
{
this
.
tipsVisible
=
false
;
this
.
tipsVisible
=
false
;
}
}
this
.
visible
=
res
.
data
.
luckyDrawInfo
.
enable
;
if
(
!
res
.
data
.
luckyDrawInfo
.
enable
)
if
(
!
res
.
data
.
luckyDrawInfo
.
enable
)
GDispatcher
.
dispatchEvent
(
'updateScratchPosition'
);
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