Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_YouLeChang
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
NJ_YouLeChang
Commits
079450d0
Commit
079450d0
authored
Feb 09, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加左侧激活按钮
激活动画图标还在制作
parent
7c8f0d91
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
392 additions
and
76 deletions
+392
-76
ipw_finger_click_tex.png.meta
...ragonBones/ipw_finger_click/ipw_finger_click_tex.png.meta
+2
-2
NJ_YouLeChang.fire
assets/NJ_YouLeChang/scene/NJ_YouLeChang.fire
+369
-73
NJ_YouLeChang.ts
assets/NJ_YouLeChang/scene/NJ_YouLeChang.ts
+21
-1
No files found.
assets/NJ_YouLeChang/dragonBones/ipw_finger_click/ipw_finger_click_tex.png.meta
View file @
079450d0
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"premultiplyAlpha": false,
"genMipmaps": false,
"genMipmaps": false,
"packable": true,
"packable": true,
"width":
1024
,
"width":
512
,
"height":
1024
,
"height":
512
,
"platformSettings": {},
"platformSettings": {},
"subMetas": {
"subMetas": {
"ipw_finger_click_tex": {
"ipw_finger_click_tex": {
...
...
assets/NJ_YouLeChang/scene/NJ_YouLeChang.fire
View file @
079450d0
This diff is collapsed.
Click to expand it.
assets/NJ_YouLeChang/scene/NJ_YouLeChang.ts
View file @
079450d0
...
@@ -81,6 +81,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -81,6 +81,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
!
middleLayer
)
{
if
(
!
middleLayer
)
{
return
;
return
;
}
}
if
(
this
.
engineType
==
'
aixuebao
'
)
{
const
showActiveBtn
=
cc
.
find
(
"
Canvas/leftButtons/showActiveBtn
"
);
showActiveBtn
.
active
=
false
;
}
if
(
middleLayer
.
getComponent
(
'
middleLayer
'
).
isLogin
==
false
)
{
if
(
middleLayer
.
getComponent
(
'
middleLayer
'
).
isLogin
==
false
)
{
// 游客
// 游客
cc
.
find
(
"
Canvas/avatar_border/nick_name
"
).
getComponent
(
cc
.
Label
).
string
=
"
游客
"
;
cc
.
find
(
"
Canvas/avatar_border/nick_name
"
).
getComponent
(
cc
.
Label
).
string
=
"
游客
"
;
...
@@ -270,6 +276,20 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -270,6 +276,20 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc
.
find
(
'
Canvas/userInfo
'
).
active
=
false
;
cc
.
find
(
'
Canvas/userInfo
'
).
active
=
false
;
});
});
// 左侧按钮 - 激活
const
showActiveBtn
=
cc
.
find
(
"
Canvas/leftButtons/showActiveBtn
"
);
buttonOnClick
(
showActiveBtn
,
()
=>
{
if
(
middleLayerComponent
.
isLogin
==
false
)
{
// 游客
// 提示先登录后购买
middleLayerComponent
.
showConfirm
(
"
需要登录后才能使用,去登录吗?
"
,
()
=>
{
middleLayerComponent
.
loadOnlineBundle
(
'
NJ_login
'
);
});
}
else
{
// 已经登录 弹出激活框
middleLayerComponent
.
showActiveWindowDirect
&&
middleLayerComponent
.
showActiveWindowDirect
();
}
});
if
(
cc
.
sys
.
isNative
&&
cc
.
sys
.
os
==
cc
.
sys
.
OS_IOS
)
{
if
(
cc
.
sys
.
isNative
&&
cc
.
sys
.
os
==
cc
.
sys
.
OS_IOS
)
{
// 整个IF都是用于IOS过审
// 整个IF都是用于IOS过审
...
...
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