Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douyin_xiaoxiaole
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
douyin_xiaoxiaole
Commits
2f4c3ded
Commit
2f4c3ded
authored
Jul 13, 2023
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
602c886e
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
850 additions
and
456 deletions
+850
-456
douyin_xiaoxiaole.js
assets/douyin_xiaoxiaole/scene/douyin_xiaoxiaole.js
+2
-2
wordgame_syllabus.fire
assets/wordgame_syllabus/scene/wordgame_syllabus.fire
+836
-336
wordgame_syllabus.ts
assets/wordgame_syllabus/scene/wordgame_syllabus.ts
+4
-2
btn_bg.png
assets/wordgame_syllabus/textures/btn_bg.png
+0
-0
btn_bg.png.meta
assets/wordgame_syllabus/textures/btn_bg.png.meta
+8
-8
check_all.png
assets/wordgame_syllabus/textures/check_all.png
+0
-0
choice_full.png
assets/wordgame_syllabus/textures/choice_full.png
+0
-0
choice_full.png.meta
assets/wordgame_syllabus/textures/choice_full.png.meta
+0
-36
fanhui.png
assets/wordgame_syllabus/textures/fanhui.png
+0
-0
fanhui.png.meta
assets/wordgame_syllabus/textures/fanhui.png.meta
+0
-36
shouye.png
assets/wordgame_syllabus/textures/shouye.png
+0
-0
shouye.png.meta
assets/wordgame_syllabus/textures/shouye.png.meta
+0
-36
No files found.
assets/douyin_xiaoxiaole/scene/douyin_xiaoxiaole.js
View file @
2f4c3ded
...
@@ -88,8 +88,8 @@ cc.Class({
...
@@ -88,8 +88,8 @@ cc.Class({
this
.
uid
=
res
.
uid
;
this
.
uid
=
res
.
uid
;
// 测试数据
// 测试数据
this
.
role
=
'
anchor
'
;
//
this.role = 'anchor';
this
.
uid
=
'
teacher
'
;
//
this.uid = 'teacher';
// this.role = 'audience';
// this.role = 'audience';
// this.uid = 'student'
// this.uid = 'student'
...
...
assets/wordgame_syllabus/scene/wordgame_syllabus.fire
View file @
2f4c3ded
This diff is collapsed.
Click to expand it.
assets/wordgame_syllabus/scene/wordgame_syllabus.ts
View file @
2f4c3ded
...
@@ -144,9 +144,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -144,9 +144,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc
.
find
(
`syllabus_item/label`
,
itemClone
).
getComponent
(
cc
.
Label
).
string
=
row
.
text_en
;
cc
.
find
(
`syllabus_item/label`
,
itemClone
).
getComponent
(
cc
.
Label
).
string
=
row
.
text_en
;
cc
.
find
(
`syllabus_item/label_disable`
,
itemClone
).
getComponent
(
cc
.
Label
).
string
=
row
.
text_en
;
cc
.
find
(
`syllabus_item/label_disable`
,
itemClone
).
getComponent
(
cc
.
Label
).
string
=
row
.
text_en
;
if
(
row
.
has_child
)
{
if
(
row
.
has_child
)
{
cc
.
find
(
`Canvas/check_all`
).
active
=
false
;
cc
.
find
(
`Canvas/
mainpage/toolbar/
check_all`
).
active
=
false
;
}
else
{
}
else
{
cc
.
find
(
`Canvas/check_all`
).
active
=
true
;
cc
.
find
(
`Canvas/
mainpage/toolbar/
check_all`
).
active
=
true
;
}
}
itemClone
.
attr
({
treeNodeId
:
row
.
id
,
treeNodePid
:
row
.
pid
,
hasChild
:
row
.
has_child
});
itemClone
.
attr
({
treeNodeId
:
row
.
id
,
treeNodePid
:
row
.
pid
,
hasChild
:
row
.
has_child
});
}
}
...
@@ -185,6 +185,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -185,6 +185,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
!
this
.
canTouch
)
{
if
(
!
this
.
canTouch
)
{
return
;
return
;
}
}
cc
.
find
(
`Canvas/mainpage/toolbar/fanhui`
).
active
=
true
;
this
.
canTouch
=
false
;
this
.
canTouch
=
false
;
this
.
pid
=
node
.
treeNodeId
;
this
.
pid
=
node
.
treeNodeId
;
this
.
nodePath
.
push
(
node
);
this
.
nodePath
.
push
(
node
);
...
@@ -204,6 +205,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -204,6 +205,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
node
&&
node
.
treeNodePid
)
{
if
(
node
&&
node
.
treeNodePid
)
{
this
.
pid
=
node
.
treeNodePid
;
this
.
pid
=
node
.
treeNodePid
;
}
else
{
}
else
{
cc
.
find
(
`Canvas/mainpage/toolbar/fanhui`
).
active
=
false
;
this
.
pid
=
null
;
this
.
pid
=
null
;
}
}
await
this
.
loadData
();
await
this
.
loadData
();
...
...
assets/wordgame_syllabus/textures/btn_bg.png
0 → 100644
View file @
2f4c3ded
3.46 KB
assets/wordgame_syllabus/textures/
check_all
.png.meta
→
assets/wordgame_syllabus/textures/
btn_bg
.png.meta
View file @
2f4c3ded
{
{
"ver": "2.3.5",
"ver": "2.3.5",
"uuid": "
934f1798-35d0-4290-b7b4-25f6127bf7f8
",
"uuid": "
ff16768f-fa8c-4aaf-905f-26dd86bae56c
",
"type": "sprite",
"type": "sprite",
"wrapMode": "clamp",
"wrapMode": "clamp",
"filterMode": "bilinear",
"filterMode": "bilinear",
...
@@ -11,10 +11,10 @@
...
@@ -11,10 +11,10 @@
"height": 133,
"height": 133,
"platformSettings": {},
"platformSettings": {},
"subMetas": {
"subMetas": {
"
check_all
": {
"
btn_bg
": {
"ver": "1.0.4",
"ver": "1.0.4",
"uuid": "
943ada31-1a12-4bcc-a46b-f4fadc5c3ae2
",
"uuid": "
ebf98170-4e8c-4c9d-ae3d-ceed8967eb51
",
"rawTextureUuid": "
934f1798-35d0-4290-b7b4-25f6127bf7f8
",
"rawTextureUuid": "
ff16768f-fa8c-4aaf-905f-26dd86bae56c
",
"trimType": "auto",
"trimType": "auto",
"trimThreshold": 1,
"trimThreshold": 1,
"rotated": false,
"rotated": false,
...
@@ -22,10 +22,10 @@
...
@@ -22,10 +22,10 @@
"offsetY": 0,
"offsetY": 0,
"trimX": 0,
"trimX": 0,
"trimY": 0,
"trimY": 0,
"width":
219
,
"width":
110
,
"height":
133
,
"height":
67
,
"rawWidth":
219
,
"rawWidth":
110
,
"rawHeight":
133
,
"rawHeight":
67
,
"borderTop": 0,
"borderTop": 0,
"borderBottom": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderLeft": 0,
...
...
assets/wordgame_syllabus/textures/check_all.png
deleted
100644 → 0
View file @
602c886e
6.38 KB
assets/wordgame_syllabus/textures/choice_full.png
deleted
100644 → 0
View file @
602c886e
2.55 KB
assets/wordgame_syllabus/textures/choice_full.png.meta
deleted
100644 → 0
View file @
602c886e
{
"ver": "2.3.5",
"uuid": "a5571db3-4eb8-4d89-8713-f3e594c861c2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 102,
"height": 97,
"platformSettings": {},
"subMetas": {
"choice_full": {
"ver": "1.0.4",
"uuid": "f76d87a7-42b4-40ba-9665-258847535224",
"rawTextureUuid": "a5571db3-4eb8-4d89-8713-f3e594c861c2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 102,
"height": 97,
"rawWidth": 102,
"rawHeight": 97,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/wordgame_syllabus/textures/fanhui.png
deleted
100644 → 0
View file @
602c886e
2.46 KB
assets/wordgame_syllabus/textures/fanhui.png.meta
deleted
100644 → 0
View file @
602c886e
{
"ver": "2.3.5",
"uuid": "f3f9b0b3-7d40-48eb-9d26-e3558714e243",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 102,
"height": 97,
"platformSettings": {},
"subMetas": {
"fanhui": {
"ver": "1.0.4",
"uuid": "cc812fa0-2b12-462e-9965-aa493a88c678",
"rawTextureUuid": "f3f9b0b3-7d40-48eb-9d26-e3558714e243",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 102,
"height": 97,
"rawWidth": 102,
"rawHeight": 97,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/wordgame_syllabus/textures/shouye.png
deleted
100644 → 0
View file @
602c886e
2.79 KB
assets/wordgame_syllabus/textures/shouye.png.meta
deleted
100644 → 0
View file @
602c886e
{
"ver": "2.3.5",
"uuid": "64161b86-3191-439f-a0e0-3f0f04e30e18",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 102,
"height": 97,
"platformSettings": {},
"subMetas": {
"shouye": {
"ver": "1.0.4",
"uuid": "78eee72b-6f40-4087-9957-530bb18497b0",
"rawTextureUuid": "64161b86-3191-439f-a0e0-3f0f04e30e18",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 102,
"height": 97,
"rawWidth": 102,
"rawHeight": 97,
"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