Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Sbox_tracingLetters
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
Sbox_tracingLetters
Commits
bba94278
Commit
bba94278
authored
Dec 14, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test on platform
parent
38759fc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
n_xuan1.js
play/assets/tmpGame/scene/n_xuan1.js
+5
-2
No files found.
play/assets/tmpGame/scene/n_xuan1.js
View file @
bba94278
...
...
@@ -591,8 +591,7 @@ cc.Class({
const
bgNode
=
cc
.
instantiate
(
this
.
bgNode
);
bgNode
.
parent
=
letterNodeBase
;
bgNode
.
zIndex
=
-
1
;
bgNode
.
width
=
cc
.
winSize
.
width
//this.node.width / letterNodeBase.scaleY;
bgNode
.
height
=
cc
.
winSize
.
height
bgNode
.
width
=
this
.
node
.
width
/
letterNodeBase
.
scaleY
;
bgNode
.
addComponent
(
cc
.
Button
);
bgNode
.
on
(
'
click
'
,
()
=>
{
});
...
...
@@ -604,10 +603,14 @@ cc.Class({
for
(
let
i
=
1
;
i
<=
5
;
i
++
)
{
if
(
i
==
this
.
_lastMainBg
)
{
bgNode
.
getChildByName
(
`bgMain (
${
i
}
)`
).
active
=
true
;
bgNode
.
getChildByName
(
`bgMain (
${
i
}
)`
).
width
=
cc
.
winSize
.
width
bgNode
.
getChildByName
(
`bgMain (
${
i
}
)`
).
height
=
cc
.
winSize
.
height
}
else
{
bgNode
.
getChildByName
(
`bgMain (
${
i
}
)`
).
active
=
false
;
}
}
this
.
_lastMainBg
++
;
if
(
this
.
_lastMainBg
==
6
)
{
this
.
_lastMainBg
=
1
;
...
...
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