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
529934c1
Commit
529934c1
authored
Nov 08, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5734288e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
MapScene.ts
egret/src/mapScene/MapScene.ts
+6
-0
ActIcon.ts
egret/src/mapScene/icon/ActIcon.ts
+3
-0
IconBase.ts
egret/src/mapScene/icon/IconBase.ts
+6
-0
No files found.
egret/src/mapScene/MapScene.ts
View file @
529934c1
...
@@ -677,6 +677,7 @@ export default class MapScene extends Scene {
...
@@ -677,6 +677,7 @@ export default class MapScene extends Scene {
switch
(
true
)
{
switch
(
true
)
{
case
(
flag
==
0
):
// 未完成 显示倒计时
case
(
flag
==
0
):
// 未完成 显示倒计时
this
[
"inviteGroup"
].
visible
=
true
;
this
[
"inviteGroup"
].
visible
=
true
;
this
[
"inviteGroup"
].
touchEnabled
=
true
;
if
(
!
mapAdvert
||
mapAdvert
.
enable
==
false
)
{
if
(
!
mapAdvert
||
mapAdvert
.
enable
==
false
)
{
this
[
'activitys'
].
y
=
458
;
this
[
'activitys'
].
y
=
458
;
this
[
'guideInner'
].
y
=
185
;
this
[
'guideInner'
].
y
=
185
;
...
@@ -693,6 +694,7 @@ export default class MapScene extends Scene {
...
@@ -693,6 +694,7 @@ export default class MapScene extends Scene {
case
(
flag
==
1
):
// 完成未开奖 待领奖 显示待领奖
case
(
flag
==
1
):
// 完成未开奖 待领奖 显示待领奖
NetManager
.
ins
.
showLog
(
getlogItem
(
33
));
NetManager
.
ins
.
showLog
(
getlogItem
(
33
));
this
[
"inviteGroup"
].
visible
=
true
;
this
[
"inviteGroup"
].
visible
=
true
;
this
[
"inviteGroup"
].
touchEnabled
=
true
;
if
(
!
mapAdvert
||
mapAdvert
.
enable
==
false
)
{
if
(
!
mapAdvert
||
mapAdvert
.
enable
==
false
)
{
this
[
'activitys'
].
y
=
458
;
this
[
'activitys'
].
y
=
458
;
this
[
'guideInner'
].
y
=
185
;
this
[
'guideInner'
].
y
=
185
;
...
@@ -704,6 +706,7 @@ export default class MapScene extends Scene {
...
@@ -704,6 +706,7 @@ export default class MapScene extends Scene {
case
(
flag
==
2
):
// 领奖成功 无角标
case
(
flag
==
2
):
// 领奖成功 无角标
case
(
flag
==
3
):
// 领奖失败 无角标
case
(
flag
==
3
):
// 领奖失败 无角标
this
[
"inviteGroup"
].
visible
=
true
;
this
[
"inviteGroup"
].
visible
=
true
;
this
[
"inviteGroup"
].
touchEnabled
=
true
;
if
(
!
mapAdvert
||
mapAdvert
.
enable
==
false
)
{
if
(
!
mapAdvert
||
mapAdvert
.
enable
==
false
)
{
this
[
'activitys'
].
y
=
458
;
this
[
'activitys'
].
y
=
458
;
this
[
'guideInner'
].
y
=
185
;
this
[
'guideInner'
].
y
=
185
;
...
@@ -714,6 +717,7 @@ export default class MapScene extends Scene {
...
@@ -714,6 +717,7 @@ export default class MapScene extends Scene {
break
;
break
;
case
(
flag
==
4
):
// 可以开启下一次发任务 显示立即到账
case
(
flag
==
4
):
// 可以开启下一次发任务 显示立即到账
this
[
"inviteGroup"
].
visible
=
true
;
this
[
"inviteGroup"
].
visible
=
true
;
this
[
"inviteGroup"
].
touchEnabled
=
true
;
if
(
!
mapAdvert
||
mapAdvert
.
enable
==
false
)
{
if
(
!
mapAdvert
||
mapAdvert
.
enable
==
false
)
{
this
[
'activitys'
].
y
=
458
;
this
[
'activitys'
].
y
=
458
;
this
[
'guideInner'
].
y
=
185
;
this
[
'guideInner'
].
y
=
185
;
...
@@ -725,6 +729,7 @@ export default class MapScene extends Scene {
...
@@ -725,6 +729,7 @@ export default class MapScene extends Scene {
break
;
break
;
case
(
flag
==
5
):
// 等待开启下一次发任务 无角标
case
(
flag
==
5
):
// 等待开启下一次发任务 无角标
this
[
"inviteGroup"
].
visible
=
true
;
this
[
"inviteGroup"
].
visible
=
true
;
this
[
"inviteGroup"
].
touchEnabled
=
true
;
if
(
!
mapAdvert
||
mapAdvert
.
enable
==
false
)
{
if
(
!
mapAdvert
||
mapAdvert
.
enable
==
false
)
{
this
[
'activitys'
].
y
=
458
;
this
[
'activitys'
].
y
=
458
;
this
[
'guideInner'
].
y
=
185
;
this
[
'guideInner'
].
y
=
185
;
...
@@ -735,6 +740,7 @@ export default class MapScene extends Scene {
...
@@ -735,6 +740,7 @@ export default class MapScene extends Scene {
break
;
break
;
case
(
flag
==
6
):
// 无入口
case
(
flag
==
6
):
// 无入口
this
[
"inviteGroup"
].
visible
=
false
;
this
[
"inviteGroup"
].
visible
=
false
;
this
[
"inviteGroup"
].
touchEnabled
=
false
;
this
[
'adBtn'
].
y
=
323.76
;
this
[
'adBtn'
].
y
=
323.76
;
if
(
mapAdvert
&&
mapAdvert
.
enable
)
{
if
(
mapAdvert
&&
mapAdvert
.
enable
)
{
this
[
'guideInner'
].
y
=
185
;
this
[
'guideInner'
].
y
=
185
;
...
...
egret/src/mapScene/icon/ActIcon.ts
View file @
529934c1
...
@@ -53,6 +53,9 @@ export default class ActIcon {
...
@@ -53,6 +53,9 @@ export default class ActIcon {
this
.
actsShowBtn
.
visible
=
visible
;
this
.
actsShowBtn
.
visible
=
visible
;
this
.
actTips
.
visible
=
visible
;
this
.
actTips
.
visible
=
visible
;
this
.
actIconsGroup
.
visible
=
visible
;
this
.
actIconsGroup
.
visible
=
visible
;
this
.
actsShowBtn
.
touchEnabled
=
visible
;
this
.
actTips
.
touchEnabled
=
visible
;
this
.
actIconsGroup
.
touchEnabled
=
visible
;
}
}
private
onTap_actsShowBtn
()
{
private
onTap_actsShowBtn
()
{
...
...
egret/src/mapScene/icon/IconBase.ts
View file @
529934c1
...
@@ -35,9 +35,11 @@ export default class IconBase {
...
@@ -35,9 +35,11 @@ export default class IconBase {
}
}
if
(
this
.
iconTips
){
if
(
this
.
iconTips
){
this
.
iconTips
.
visible
=
visible
;
this
.
iconTips
.
visible
=
visible
;
this
.
iconTips
.
touchEnabled
=
visible
;
}
}
if
(
this
.
iconTipsBg
){
if
(
this
.
iconTipsBg
){
this
.
iconTipsBg
.
visible
=
visible
;
this
.
iconTipsBg
.
visible
=
visible
;
this
.
iconTipsBg
.
touchEnabled
=
visible
;
}
}
}
}
...
@@ -50,6 +52,10 @@ export default class IconBase {
...
@@ -50,6 +52,10 @@ export default class IconBase {
this
.
iconBtn
.
visible
=
visible
;
this
.
iconBtn
.
visible
=
visible
;
// this.iconTipsBg.visible = visible;
// this.iconTipsBg.visible = visible;
// this.iconTips.visible = visible;
// this.iconTips.visible = visible;
this
.
iconGroup
.
touchEnabled
=
visible
;
this
.
iconBtn
.
touchEnabled
=
visible
;
// this.iconTipsBg.touchEnabled = visible;
// this.iconTips.touchEnabled = visible;
GDispatcher
.
dispatchEvent
(
'updateActIcon'
);
GDispatcher
.
dispatchEvent
(
'updateActIcon'
);
}
}
...
...
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