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
85eb25d3
...
85eb25d39d1a3cfcfed89acb57c3a8a51971fadc
authored
2020-04-08 10:52:48 +0800
by
金学艇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.解决退出挽留框和通用弹窗错乱问题
1 parent
0bd6c189
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
12 deletions
assets/Script/common/TVCanvas.js
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/AndroidManifest.xml
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build.gradle
assets/Script/common/TVCanvas.js
View file @
85eb25d
...
...
@@ -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
;
...
...
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/AndroidManifest.xml
View file @
85eb25d
...
...
@@ -30,7 +30,7 @@
<uses-permission
android:name=
"com.hiveview.cloudscreen.user.WRITE_USERINFO_DB"
/>
<application
android:name=
"
com.topdraw.melody
.MelodyApplication"
android:name=
"
org.cocos2dx.javascript.common
.MelodyApplication"
android:allowBackup=
"true"
android:icon=
"@mipmap/icon"
android:label=
"@string/app_name"
>
...
...
@@ -51,7 +51,7 @@
android:value=
"FJ.CMCC"
/>
<meta-data
android:name=
"TOPDRAW.PLATFORM_SERVER"
android:value=
"http://
eastcity.fj.a176.ottcn.com:81/clutch
"
/>
android:value=
"http://
forfun.fj.a183.ottcn.com
"
/>
<meta-data
android:name=
"TOPDRAW.APPID"
android:value=
"EastCity"
/>
...
...
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build.gradle
View file @
85eb25d
...
...
@@ -138,4 +138,9 @@ dependencies {
implementation
project
(
':libcocos2dx'
)
implementation
files
(
'libs/TopdrawSDK.jar'
)
implementation
files
(
'libs/universal-image-loader-1.9.5.jar'
)
implementation
files
(
'libs/ottlogin.jar'
)
implementation
files
(
'libs/logsdk.jar'
)
implementation
files
(
'libs/KYSDK.jar'
)
implementation
files
(
'libs/icntvplayersdk.jar'
)
implementation
files
(
'libs/adsdk.jar'
)
}
...
...
Please
register
or
sign in
to post a comment