Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
apk_product
/
ForFun
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
5c44160c
...
5c44160c605ecddbc2c31a5e548d1558c715ae1d
authored
2020-04-08 13:28:04 +0800
by
金学艇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.解决退出挽留框和通用弹窗错乱的问题
1 parent
89afe4b2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
assets/Script/common/TVCanvas.js
assets/Script/common/TVCanvas.js
View file @
5c44160
...
...
@@ -1046,14 +1046,14 @@ cc.Topdraw.TVCanvas =
showComingSoonBox
:
function
(
fiBackend
,
bHideBg
)
{
try
{
this
.
_bShowExitBox
=
true
;
if
(
this
.
_node
System
Prompt
)
{
if
(
this
.
_node
CommonSoon
Prompt
)
{
try
{
this
.
_node
System
Prompt
.
opacity
=
255
;
this
.
_node
CommonSoon
Prompt
.
opacity
=
255
;
if
(
null
==
this
.
_aFocusTargets
[
1
])
{
//focus放到第二层级,避免冲突
this
.
_aFocusTargets
[
1
]
=
[];
}
this
.
_aFocusTargets
[
1
][
'coming_soon_confirm_btn'
]
=
cc
.
find
(
"PromptBox/ComingSoonConfirm"
,
this
.
_node
System
Prompt
);
this
.
_aFocusTargets
[
1
][
'coming_soon_cancel_btn'
]
=
cc
.
find
(
"PromptBox/ComingSoonCancel"
,
this
.
_node
System
Prompt
);
this
.
_aFocusTargets
[
1
][
'coming_soon_confirm_btn'
]
=
cc
.
find
(
"PromptBox/ComingSoonConfirm"
,
this
.
_node
CommonSoon
Prompt
);
this
.
_aFocusTargets
[
1
][
'coming_soon_cancel_btn'
]
=
cc
.
find
(
"PromptBox/ComingSoonCancel"
,
this
.
_node
CommonSoon
Prompt
);
this
.
_fiBeforeDetainBox
=
this
.
_fiCurrentFocus
;
this
.
_fiBackend
=
fiBackend
;
this
.
_iSceneStatus
=
1
;
...
...
@@ -1067,13 +1067,13 @@ cc.Topdraw.TVCanvas =
//初始弹框
Common
.
loadRes
(
'Prefab/pfbComingSoonPrompt'
,
//提示预制
function
(
loadedResource
)
{
this
.
_node
System
Prompt
=
cc
.
instantiate
(
loadedResource
);
this
.
_node
System
Prompt
.
parent
=
this
.
node
;
this
.
_node
CommonSoon
Prompt
=
cc
.
instantiate
(
loadedResource
);
this
.
_node
CommonSoon
Prompt
.
parent
=
this
.
node
;
if
(
bHideBg
)
{
this
.
_node
System
Prompt
.
getChildByName
(
"Background"
).
opacity
=
0
;
this
.
_node
CommonSoon
Prompt
.
getChildByName
(
"Background"
).
opacity
=
0
;
}
let
nodeConfirm
=
cc
.
find
(
"PromptBox/ComingSoonConfirm"
,
this
.
_node
System
Prompt
);
let
nodeCancel
=
cc
.
find
(
"PromptBox/ComingSoonCancel"
,
this
.
_node
System
Prompt
);
let
nodeConfirm
=
cc
.
find
(
"PromptBox/ComingSoonConfirm"
,
this
.
_node
CommonSoon
Prompt
);
let
nodeCancel
=
cc
.
find
(
"PromptBox/ComingSoonCancel"
,
this
.
_node
CommonSoon
Prompt
);
nodeConfirm
.
getComponent
(
cc
.
Sprite
).
spriteFrame
.
setRect
(
cc
.
rect
(
0
,
0
,
nodeConfirm
.
width
,
nodeConfirm
.
height
));
nodeCancel
.
getComponent
(
cc
.
Sprite
).
spriteFrame
.
setRect
(
cc
.
rect
(
0
,
0
,
nodeCancel
.
width
,
nodeCancel
.
height
));
let
fiConfirm
=
nodeConfirm
.
addComponent
(
FocusInfo
);
...
...
@@ -1096,7 +1096,7 @@ cc.Topdraw.TVCanvas =
},
hideComingSoonBox
:
function
()
{
try
{
this
.
_node
System
Prompt
.
opacity
=
0
;
this
.
_node
CommonSoon
Prompt
.
opacity
=
0
;
delete
this
.
_aFocusTargets
[
1
][
'system_confirm_btn'
];
delete
this
.
_aFocusTargets
[
1
][
'system_cancel_btn'
];
this
.
_iSceneStatus
=
0
;
...
...
Please
register
or
sign in
to post a comment