Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_MonkyTree
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_MonkyTree
Commits
1c30537a
Commit
1c30537a
authored
Sep 15, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
e15f0666
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
NJ_MonkyTree.ts
assets/NJ_MonkyTree/scene/NJ_MonkyTree.ts
+11
-10
No files found.
assets/NJ_MonkyTree/scene/NJ_MonkyTree.ts
View file @
1c30537a
...
...
@@ -216,13 +216,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
richText
.
font
=
cc
.
find
(
"
Canvas/res/font/BRLNSDB
"
).
getComponent
(
cc
.
Label
).
font
;
//
titleNode.getComponent(cc.RichText).string = `<outline align=top color=${outline}
//
width=4>${name}</outline>`
titleNode
.
getComponent
(
cc
.
RichText
).
string
=
`<outline align=top color=
${
outline
}
width=4>
${
name
}
</outline>`
const
label
=
titleNode
.
addComponent
(
cc
.
Label
);
label
.
string
=
name
;
label
.
fontSize
=
richText
.
fontSize
;
label
.
font
=
richText
.
font
;
});
...
...
@@ -283,12 +279,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
console
.
log
(
'
idx:
'
,
idx
);
console
.
log
(
"
传入按钮名1:
"
,
name
);
// titleNode.getComponent(cc.Label).string = `<outline align=top color=${outline}
// width=4>${name}</outline>`;
titleNode
.
getComponent
(
cc
.
Label
).
string
=
name
;
titleNode
.
getComponent
(
cc
.
RichText
).
string
=
`<outline align=top color=
${
outline
}
width=4>
${
name
}
</outline>`
;
console
.
log
(
"
显示按钮名1:
"
,
titleNode
.
getComponent
(
cc
.
Label
).
string
);
console
.
log
(
"
显示按钮名1:
"
,
titleNode
.
getComponent
(
cc
.
RichText
).
string
);
console
.
log
(
'
titleNode.x:
'
,
titleNode
.
x
);
console
.
log
(
'
titleNode.y:
'
,
titleNode
.
y
);
console
.
log
(
'
titleNode.active:
'
,
titleNode
.
active
);
console
.
log
(
'
titleNode.parent.x:
'
,
titleNode
.
parent
.
x
);
console
.
log
(
'
titleNode.parent.y:
'
,
titleNode
.
parent
.
y
);
console
.
log
(
'
titleNode.parent.active:
'
,
titleNode
.
parent
.
active
);
// delayCall(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