Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hw_lettersort
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
hw_lettersort
Commits
1caa7e64
Commit
1caa7e64
authored
Aug 01, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
0194bd97
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
297 additions
and
159 deletions
+297
-159
hw_lettersort.fire
assets/hw_lettersort/scene/hw_lettersort.fire
+238
-145
hw_lettersort.js
assets/hw_lettersort/scene/hw_lettersort.js
+23
-14
score_item.png
assets/hw_lettersort/texture/score_item.png
+0
-0
score_item.png.meta
assets/hw_lettersort/texture/score_item.png.meta
+36
-0
No files found.
assets/hw_lettersort/scene/hw_lettersort.fire
View file @
1caa7e64
This diff is collapsed.
Click to expand it.
assets/hw_lettersort/scene/hw_lettersort.js
View file @
1caa7e64
...
...
@@ -947,7 +947,7 @@ cc.Class({
this
.
data
.
rows
=
randomSortByArr
(
rows
);
this
.
score
=
0
;
this
.
curDataIndex
=
0
;
...
...
@@ -1164,27 +1164,33 @@ cc.Class({
this
.
initBg
();
this
.
initCurData
();
this
.
initCurWord
();
this
.
initScorePanel
();
this
.
startTiming
();
// // this.data.isDebug = false;
// this.initQuesArr();
// this.initCurQues();
// this.initBg();
// this.initBtn();
// this.initQuesCountLabel();
// this.initCurWordCard();
},
// this.initDebugLayer();
initScorePanel
()
{
const
scorePanel
=
getSprNode
(
"
score_item
"
);
scorePanel
.
x
=
this
.
canvas
.
width
/
2
-
scorePanel
.
width
/
2
-
15
;
scorePanel
.
y
=
this
.
canvas
.
height
/
2
-
scorePanel
.
height
/
2
-
15
;
this
.
canvas
.
addChild
(
scorePanel
);
// scorePanel.active = false;
// c05610
const
scoreLabelNode
=
this
.
getRichText
(
"
0
"
,
35
,
"
#ffffff
"
,
2
,
"
#e6a519
"
);
scoreLabelNode
.
x
=
20
;
scoreLabelNode
.
y
=
5
;
scorePanel
.
addChild
(
scoreLabelNode
);
this
.
scoreLabel
=
scoreLabelNode
.
getComponent
(
cc
.
RichText
);
},
// this.showInsertCard();
addScore
()
{
this
.
score
++
;
this
.
refreshRichText
(
this
.
scoreLabel
.
node
,
this
.
score
);
},
...
...
@@ -9785,6 +9791,9 @@ cc.Class({
},
enterNextGroup
()
{
this
.
addScore
();
this
.
curDataIndex
++
;
this
.
initCurData
();
if
(
!
this
.
curData
)
{
...
...
assets/hw_lettersort/texture/score_item.png
0 → 100644
View file @
1caa7e64
11 KB
assets/hw_lettersort/texture/score_item.png.meta
0 → 100644
View file @
1caa7e64
{
"ver": "2.3.5",
"uuid": "89b2a23b-2242-4770-a839-4c47d724a02d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 231,
"height": 83,
"platformSettings": {},
"subMetas": {
"score_item": {
"ver": "1.0.4",
"uuid": "2a6c5fe8-6fb7-4060-9730-fa6aa21a5b36",
"rawTextureUuid": "89b2a23b-2242-4770-a839-4c47d724a02d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 231,
"height": 83,
"rawWidth": 231,
"rawHeight": 83,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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