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
831bd3db
Commit
831bd3db
authored
Aug 02, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 数字版的游乐场区分
parent
7ccd081f
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
790 additions
and
191 deletions
+790
-191
NJ_YouLeChang.fire
assets/NJ_YouLeChang/scene/NJ_YouLeChang.fire
+695
-191
NJ_YouLeChang.ts
assets/NJ_YouLeChang/scene/NJ_YouLeChang.ts
+23
-0
qwqd_wz.png
assets/NJ_YouLeChang/textures/qwqd_wz.png
+0
-0
qwqd_wz.png.meta
assets/NJ_YouLeChang/textures/qwqd_wz.png.meta
+36
-0
ydjyz_wz.png
assets/NJ_YouLeChang/textures/ydjyz_wz.png
+0
-0
ydjyz_wz.png.meta
assets/NJ_YouLeChang/textures/ydjyz_wz.png.meta
+36
-0
No files found.
assets/NJ_YouLeChang/scene/NJ_YouLeChang.fire
View file @
831bd3db
This diff is collapsed.
Click to expand it.
assets/NJ_YouLeChang/scene/NJ_YouLeChang.ts
View file @
831bd3db
...
...
@@ -15,6 +15,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
middleLayer
)
{
this
.
orgId
=
middleLayer
.
getComponent
(
'
middleLayer
'
).
ORG_ID
||
507
;
}
if
(
this
.
orgId
!=
507
)
{
// 说明是数字版, 变换一下界面布局
const
nd
=
cc
.
find
(
`Canvas/bg_ground/bg_grass`
);
cc
.
find
(
`qwqd_lite`
,
nd
).
active
=
true
;
cc
.
find
(
`btn_yuedu_lite`
,
nd
).
active
=
true
;
cc
.
find
(
`ydjyz_lite`
,
nd
).
active
=
true
;
cc
.
find
(
`btn_quwen`
,
nd
).
active
=
false
;
cc
.
find
(
`btn_familypindu`
,
nd
).
active
=
false
;
cc
.
find
(
`btn_yuedu`
,
nd
).
active
=
false
;
}
await
this
.
initData
();
await
this
.
initView
();
this
.
initListener
();
...
...
@@ -146,6 +158,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
middleLayerComponent
.
setData
(
'
NJ_YueDuJiaYouZhan
'
,
data
.
id
);
jumpToBundle
(
'
NJ_YueDuJiaYouZhan
'
);
});
const
yuedu_lite
=
cc
.
find
(
'
Canvas/bg_ground/bg_grass/btn_yuedu_lite
'
);
buttonOnClick
(
yuedu_lite
,
()
=>
{
const
data
=
this
.
classData
.
find
(
data
=>
data
.
name
==
'
阅读加油站
'
);
if
(
!
data
)
{
middleLayerComponent
.
showTips
(
"
没有创建‘阅读加油站’
"
);
return
;
}
middleLayerComponent
.
setData
(
'
NJ_YueDuJiaYouZhan
'
,
data
.
id
);
jumpToBundle
(
'
NJ_YueDuJiaYouZhan
'
);
});
const
pindu
=
cc
.
find
(
'
Canvas/bg_ground/bg_grass/btn_pindu
'
);
buttonOnClick
(
pindu
,
()
=>
{
const
data
=
this
.
classData
.
find
(
data
=>
data
.
name
==
'
拼读天地
'
);
...
...
assets/NJ_YouLeChang/textures/qwqd_wz.png
0 → 100644
View file @
831bd3db
17.1 KB
assets/NJ_YouLeChang/textures/qwqd_wz.png.meta
0 → 100644
View file @
831bd3db
{
"ver": "2.3.5",
"uuid": "1f7f43ae-3996-4dfa-b6f7-5c91199839ac",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 260,
"height": 262,
"platformSettings": {},
"subMetas": {
"qwqd_wz": {
"ver": "1.0.4",
"uuid": "90670573-f31a-4258-ab99-7d3cf1e5e8cc",
"rawTextureUuid": "1f7f43ae-3996-4dfa-b6f7-5c91199839ac",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 260,
"height": 262,
"rawWidth": 260,
"rawHeight": 262,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/NJ_YouLeChang/textures/ydjyz_wz.png
0 → 100644
View file @
831bd3db
35.5 KB
assets/NJ_YouLeChang/textures/ydjyz_wz.png.meta
0 → 100644
View file @
831bd3db
{
"ver": "2.3.5",
"uuid": "a5e995c3-860a-4184-b086-2bcc7d9ca506",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 491,
"height": 536,
"platformSettings": {},
"subMetas": {
"ydjyz_wz": {
"ver": "1.0.4",
"uuid": "d15fd62e-a2d5-4068-b637-ea290ae57983",
"rawTextureUuid": "a5e995c3-860a-4184-b086-2bcc7d9ca506",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 491,
"height": 536,
"rawWidth": 491,
"rawHeight": 536,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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