Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_NGT
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_NGT
Commits
5b271f93
Commit
5b271f93
authored
Oct 03, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
02578590
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
193 additions
and
156 deletions
+193
-156
middleLayer_for_NGT.fire
assets/middleLayer_for_NGT/scene/middleLayer_for_NGT.fire
+182
-152
middleLayer.ts
assets/middleLayer_for_NGT/script/middleLayer.ts
+4
-4
middleLayerBase.ts
assets/middleLayer_for_NGT/script/middleLayerBase.ts
+7
-0
No files found.
assets/middleLayer_for_NGT/scene/middleLayer_for_NGT.fire
View file @
5b271f93
This diff is collapsed.
Click to expand it.
assets/middleLayer_for_NGT/script/middleLayer.ts
View file @
5b271f93
...
@@ -153,14 +153,14 @@ export default class NewClass extends middleLayerBase {
...
@@ -153,14 +153,14 @@ export default class NewClass extends middleLayerBase {
if
(
this
.
courseIndex
==
0
)
{
if
(
this
.
courseIndex
==
0
)
{
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
false
;
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
false
;
}
else
{
}
else
{
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
fals
e
;
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
tru
e
;
}
}
if
(
this
.
courseIndex
==
this
.
courses
.
length
-
1
)
{
if
(
this
.
courseIndex
==
this
.
courses
.
length
-
1
)
{
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
false
;
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
false
;
}
else
{
}
else
{
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
true
;
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
true
;
}
}
});
}
,
0.7
);
buttonOnClick
(
cc
.
find
(
'
middleLayer/BtnLeft
'
),
()
=>
{
buttonOnClick
(
cc
.
find
(
'
middleLayer/BtnLeft
'
),
()
=>
{
if
(
this
.
isShowWaiting
)
{
if
(
this
.
isShowWaiting
)
{
...
@@ -170,14 +170,14 @@ export default class NewClass extends middleLayerBase {
...
@@ -170,14 +170,14 @@ export default class NewClass extends middleLayerBase {
if
(
this
.
courseIndex
==
0
)
{
if
(
this
.
courseIndex
==
0
)
{
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
false
;
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
false
;
}
else
{
}
else
{
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
fals
e
;
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
tru
e
;
}
}
if
(
this
.
courseIndex
==
this
.
courses
.
length
-
1
)
{
if
(
this
.
courseIndex
==
this
.
courses
.
length
-
1
)
{
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
false
;
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
false
;
}
else
{
}
else
{
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
true
;
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
true
;
}
}
});
}
,
0.7
);
buttonOnClick
(
cc
.
find
(
'
middleLayer/activeLayer/active
'
),
async
()
=>
{
buttonOnClick
(
cc
.
find
(
'
middleLayer/activeLayer/active
'
),
async
()
=>
{
if
(
this
.
isShowWaiting
)
{
if
(
this
.
isShowWaiting
)
{
...
...
assets/middleLayer_for_NGT/script/middleLayerBase.ts
View file @
5b271f93
...
@@ -239,6 +239,12 @@ export abstract class middleLayerBase extends cc.Component {
...
@@ -239,6 +239,12 @@ export abstract class middleLayerBase extends cc.Component {
this
.
courses
=
data
.
rows
;
this
.
courses
=
data
.
rows
;
this
.
courseIndex
=
data
.
index
||
0
;
this
.
courseIndex
=
data
.
index
||
0
;
this
.
courseItem
=
data
.
rows
[
this
.
courseIndex
];
this
.
courseItem
=
data
.
rows
[
this
.
courseIndex
];
console
.
log
(
'
-----------------
'
);
console
.
log
(
"
jfdlisjlfiasjdjl
"
);
console
.
log
(
'
-----------------
'
);
cc
.
find
(
'
middleLayer/Page
'
).
active
=
true
;
cc
.
find
(
`middleLayer/Page`
).
getComponent
(
cc
.
Label
).
string
=
`1/
${
this
.
courses
.
length
}
`
;
}
else
{
}
else
{
this
.
hideWaitingLetters
();
this
.
hideWaitingLetters
();
this
.
showTips
(
`内容还未制作`
);
this
.
showTips
(
`内容还未制作`
);
...
@@ -293,6 +299,7 @@ export abstract class middleLayerBase extends cc.Component {
...
@@ -293,6 +299,7 @@ export abstract class middleLayerBase extends cc.Component {
(
<
any
>
window
).
courseware
.
freeAllOcMethod
();
(
<
any
>
window
).
courseware
.
freeAllOcMethod
();
cc
.
find
(
`middleLayer/Page`
).
getComponent
(
cc
.
Label
).
string
=
`
${
index
+
1
}
/
${
this
.
courses
.
length
}
`
;
this
.
courseIndex
=
index
;
this
.
courseIndex
=
index
;
this
.
courseItem
=
this
.
courses
[
this
.
courseIndex
];
this
.
courseItem
=
this
.
courses
[
this
.
courseIndex
];
this
.
loadPageBundle
();
this
.
loadPageBundle
();
...
...
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