Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_kyxq
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
middleLayer_for_kyxq
Commits
3a228dc9
Commit
3a228dc9
authored
Nov 14, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
过滤单元页关卡状态的confgItem
parent
7ccbfed0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
MissionPage.ts
assets/middleLayer_for_kyxq/script/MissionPage.ts
+16
-3
UnitPage.ts
assets/middleLayer_for_kyxq/script/UnitPage.ts
+3
-0
No files found.
assets/middleLayer_for_kyxq/script/MissionPage.ts
View file @
3a228dc9
...
...
@@ -46,7 +46,8 @@ export default class MissionPageClass extends PageComponentBaseClass {
userInfo
=
null
nameLblStr
=
""
;
handleClickBackBtn
()
{
async
handleClickBackBtn
()
{
await
this
.
hideTeacherAvatar
();
const
vc
=
this
.
Viewer
.
getComponent
(
"
PageViewer
"
);
vc
.
toView
({
name
:
"
UnitPage
"
,
...
...
@@ -87,7 +88,7 @@ export default class MissionPageClass extends PageComponentBaseClass {
this
.
headNode
.
getComponent
(
cc
.
Sprite
).
spriteFrame
=
spr
.
spriteFrame
;
spr
.
node
.
destroy
()
setSprNodeMaxLen
(
this
.
headNode
,
this
.
headNode
.
width
,
this
.
headNode
.
height
);
this
.
show
HeaderAnimation
()
this
.
show
TeacherAvatar
()
});
}
...
...
@@ -351,7 +352,7 @@ export default class MissionPageClass extends PageComponentBaseClass {
}
}
show
HeaderAnimation
()
{
show
TeacherAvatar
()
{
const
width
=
cc
.
find
(
"
/Canvas
"
).
width
/
2
;
this
.
headNode
.
x
=
-
width
/
2
-
this
.
headNode
.
parent
.
width
;
this
.
headNode
.
active
=
true
;
...
...
@@ -360,6 +361,18 @@ export default class MissionPageClass extends PageComponentBaseClass {
},
{
easing
:
"
cubicOut
"
}).
start
()
}
hideTeacherAvatar
()
{
return
new
Promise
(
resovle
=>
{
const
width
=
cc
.
find
(
"
/Canvas
"
).
width
/
2
;
cc
.
tween
(
this
.
headNode
).
to
(
0.3
,
{
x
:
-
width
/
2
-
this
.
headNode
.
parent
.
width
},
{
easing
:
"
cubicOut
"
}).
call
(()
=>
{
this
.
headNode
.
active
=
false
;
resovle
(
true
)
}).
start
()
})
}
onClickOpenLessonPreview
()
{
this
.
LessonPreview
.
active
=
true
this
.
LessonPreview
.
getComponent
(
"
LessonPreview
"
).
setData
(
this
.
getConfigData
())
...
...
assets/middleLayer_for_kyxq/script/UnitPage.ts
View file @
3a228dc9
...
...
@@ -291,6 +291,9 @@ export default class UnitPageClass extends PageComponentBaseClass {
pointBase
.
opacity
=
0
;
for
(
let
k
=
0
;
k
<
subData
.
children
.
length
;
k
++
)
{
const
clsData
=
subData
.
children
[
k
];
if
(
clsData
.
name
==
"
config
"
)
{
continue
}
const
pointNode
=
cc
.
instantiate
(
pointBase
);
pointNode
.
opacity
=
255
;
if
(
clsData
)
{
...
...
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