Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tx_find_match
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
tx_find_match
Commits
cac2f991
Commit
cac2f991
authored
Mar 09, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
8946bc5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
tx_find_match.js
assets/tx_find_match/scene/tx_find_match.js
+6
-4
No files found.
assets/tx_find_match/scene/tx_find_match.js
View file @
cac2f991
...
@@ -1392,7 +1392,7 @@ cc.Class({
...
@@ -1392,7 +1392,7 @@ cc.Class({
quesBg
.
y
=
this
.
canvas
.
height
+
quesBg
.
height
*
quesBg
.
scale
;
quesBg
.
y
=
this
.
canvas
.
height
+
quesBg
.
height
*
quesBg
.
scale
;
// const label = this.getRichText("你好吗aaaa", 100, "#2e4190", "#ffffff", 0);
// const label = this.getRichText("你好吗aaaa", 100, "#2e4190", "#ffffff", 0);
const
labelNode
=
this
.
getLabel
(
"
你好吗
"
,
100
);
const
labelNode
=
this
.
getLabel
(
"
你好吗
"
,
100
,
false
);
labelNode
.
color
=
cc
.
Color
.
fromHEX
(
new
cc
.
Color
(),
'
#2e4190
'
)
labelNode
.
color
=
cc
.
Color
.
fromHEX
(
new
cc
.
Color
(),
'
#2e4190
'
)
labelNode
.
y
=
-
quesBg
.
height
*
quesBg
.
anchorY
+
250
;
labelNode
.
y
=
-
quesBg
.
height
*
quesBg
.
anchorY
+
250
;
this
.
quesLabel
=
labelNode
.
getComponent
(
cc
.
Label
);
this
.
quesLabel
=
labelNode
.
getComponent
(
cc
.
Label
);
...
@@ -1414,7 +1414,7 @@ cc.Class({
...
@@ -1414,7 +1414,7 @@ cc.Class({
},
},
getLabel
(
text
,
fontSize
=
20
)
{
getLabel
(
text
,
fontSize
=
20
,
isFont
=
true
)
{
const
labelNode
=
new
cc
.
Node
();
const
labelNode
=
new
cc
.
Node
();
const
label
=
labelNode
.
addComponent
(
cc
.
Label
);
const
label
=
labelNode
.
addComponent
(
cc
.
Label
);
label
.
string
=
text
;
label
.
string
=
text
;
...
@@ -1424,7 +1424,9 @@ cc.Class({
...
@@ -1424,7 +1424,9 @@ cc.Class({
label
.
cacheMode
=
cc
.
Label
.
CacheMode
.
CHAR
;
label
.
cacheMode
=
cc
.
Label
.
CacheMode
.
CHAR
;
label
.
font
=
cc
.
find
(
'
Canvas/res/font/MMTB
'
).
getComponent
(
cc
.
Label
).
font
;
if
(
isFont
)
{
label
.
font
=
cc
.
find
(
'
Canvas/res/font/MMTB
'
).
getComponent
(
cc
.
Label
).
font
;
}
return
labelNode
;
return
labelNode
;
},
},
...
@@ -1478,7 +1480,7 @@ cc.Class({
...
@@ -1478,7 +1480,7 @@ cc.Class({
const
optData
=
optionArr
[
i
];
const
optData
=
optionArr
[
i
];
const
labelNode
=
this
.
getLabel
(
optData
.
text_en
,
60
);
const
labelNode
=
this
.
getLabel
(
optData
.
text_en
,
60
,
true
);
const
labelNodeShadow
=
this
.
getLabel
(
optData
.
text_en
,
60
);
const
labelNodeShadow
=
this
.
getLabel
(
optData
.
text_en
,
60
);
if
(
resColor
==
'
yellow
'
)
{
if
(
resColor
==
'
yellow
'
)
{
...
...
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