Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
comparetree
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
comparetree
Commits
c9b8f250
Commit
c9b8f250
authored
Jun 16, 2021
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整1
parent
4f707d8e
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
377 additions
and
229 deletions
+377
-229
form.component.html
form/src/app/form/form.component.html
+4
-4
data.js
play/assets/scene/scene/data.js
+4
-4
scene.fire
play/assets/scene/scene/scene.fire
+319
-194
scene.js
play/assets/scene/scene/scene.js
+46
-23
btn_replay.png
play/assets/scene/textures/card/btn_replay.png
+0
-0
btn_replay.png.meta
play/assets/scene/textures/card/btn_replay.png.meta
+4
-4
No files found.
form/src/app/form/form.component.html
View file @
c9b8f250
...
...
@@ -4,7 +4,7 @@
<div
style=
"width:100%;vertical-align:middle; padding-top: 10px; padding-bottom: 10px; text-align: left;"
>
<span
style=
"font-weight: 700; font-size: 30px; vertical-align:middle;"
>
标题:
</span>
<input
[(
ngModel
)]="
biaoti
.
title
"
type=
"text"
<input
(
blur
)="
saveItem
()"
[(
ngModel
)]="
biaoti
.
title
"
type=
"text"
style=
"width: 1000px;height:35px;margin-left: 30px; vertical-align:middle;font-size: 30px; border: 1px solid #ccc; border-radius: 10px;"
/>
</div>
...
...
@@ -16,7 +16,7 @@
<div
style=
"width:100%;vertical-align:middle; padding-top: 10px; padding-bottom: 10px; text-align: left;"
>
<span
style=
"font-weight: 700; font-size: 30px; vertical-align:middle;"
>
主类:
</span>
<input
[(
ngModel
)]="
zhulei
.
title
"
type=
"text"
<input
(
blur
)="
saveItem
()"
[(
ngModel
)]="
zhulei
.
title
"
type=
"text"
style=
"width: 1000px;height:35px;margin-left: 30px; vertical-align:middle;font-size: 30px; border: 1px solid #ccc; border-radius: 10px;"
/>
</div>
...
...
@@ -28,7 +28,7 @@
<div
style=
"width:100%;vertical-align:middle; padding-top: 10px; padding-bottom: 10px; text-align: left;"
>
<span
style=
"font-weight: 700; font-size: 30px; vertical-align:middle;"
>
分类{{c+1}}:
</span>
<input
[(
ngModel
)]="
fenlei
.
title
"
type=
"text"
<input
(
blur
)="
saveItem
()"
[(
ngModel
)]="
fenlei
.
title
"
type=
"text"
style=
"width: 1000px;height:35px;margin-left: 30px; vertical-align:middle;font-size: 30px; border: 1px solid #ccc; border-radius: 10px;"
/>
</div>
...
...
@@ -44,7 +44,7 @@
<button
style=
"margin-left: 30px;"
nz-button
nzType=
"danger"
(
click
)="
deleteSon
(
a
,
b
,
c
,
d
)"
>
<span>
删除
</span>
</button>
<input
[(
ngModel
)]="
sonlei
.
title
"
type=
"text"
<input
(
blur
)="
saveItem
()"
[(
ngModel
)]="
sonlei
.
title
"
type=
"text"
style=
"width: 1000px;height:35px;margin-left: 30px; vertical-align:middle;font-size: 30px; border: 1px solid #ccc; border-radius: 10px;"
/>
</div>
...
...
play/assets/scene/scene/data.js
View file @
c9b8f250
...
...
@@ -11,11 +11,11 @@ function retData() {
"
child
"
:
[
{
"
title
"
:
"
sub1
"
,
"
title
"
:
"
sub1
sqinalaa
"
,
"
child
"
:
[
{
"
title
"
:
"
son11
"
,
"
child
"
:
[
{
"
cardId
"
:
""
,
"
title
"
:
"
dd
"
,
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/021d3b3904cb6e675286ac8fcb60da2b.png
"
,
"
audio_url
"
:
""
}]
//{ "cardId": "", "title": "aa", "pic_url": "http://staging-teach.cdn.ireadabc.com/88b1cd55a3e2ff70447331078c0e2941.png", "audio_url": "" }, { "cardId": "", "title": "bb", "pic_url": "http://staging-teach.cdn.ireadabc.com/26524d3fa6a060d80664b40cfb6105f6.png", "audio_url": "" }, { "cardId": "", "title": "cc", "pic_url": "http://staging-teach.cdn.ireadabc.com/0cd859af88f946a66313cc06e4628fd2.png", "audio_url": "" },
"
title
"
:
"
aaaaaadda
"
,
"
child
"
:
[
{
"
cardId
"
:
""
,
"
title
"
:
"
aaaaaadda
"
,
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/021d3b3904cb6e675286ac8fcb60da2b.png
"
,
"
audio_url
"
:
""
}]
//{ "cardId": "", "title": "aa", "pic_url": "http://staging-teach.cdn.ireadabc.com/88b1cd55a3e2ff70447331078c0e2941.png", "audio_url": "" }, { "cardId": "", "title": "bb", "pic_url": "http://staging-teach.cdn.ireadabc.com/26524d3fa6a060d80664b40cfb6105f6.png", "audio_url": "" }, { "cardId": "", "title": "cc", "pic_url": "http://staging-teach.cdn.ireadabc.com/0cd859af88f946a66313cc06e4628fd2.png", "audio_url": "" },
},
// {
// "title": "son12",
...
...
@@ -34,7 +34,7 @@ function retData() {
"
title
"
:
"
sub2
"
,
"
child
"
:
[{
"
title
"
:
"
son21
"
,
"
child
"
:
[
{
"
cardId
"
:
""
,
"
title
"
:
"
e1
"
,
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/021d3b3904cb6e675286ac8fcb60da2b.png
"
,
"
audio_url
"
:
""
}]
//{ "cardId": "", "title": "q1", "pic_url": "http://staging-teach.cdn.ireadabc.com/fde35aaec618529b0b2b6cb3a18d1f85.png", "audio_url": "" }, { "cardId": "", "title": "w1", "pic_url": "http://staging-teach.cdn.ireadabc.com/0cd859af88f946a66313cc06e4628fd2.png", "audio_url": "" },
"
child
"
:
[{
"
cardId
"
:
""
,
"
title
"
:
"
e1
"
,
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/021d3b3904cb6e675286ac8fcb60da2b.png
"
,
"
audio_url
"
:
""
}]
//{ "cardId": "", "title": "q1", "pic_url": "http://staging-teach.cdn.ireadabc.com/fde35aaec618529b0b2b6cb3a18d1f85.png", "audio_url": "" }, { "cardId": "", "title": "w1", "pic_url": "http://staging-teach.cdn.ireadabc.com/0cd859af88f946a66313cc06e4628fd2.png", "audio_url": "" },
},
// {
// "title": "son22",
...
...
play/assets/scene/scene/scene.fire
View file @
c9b8f250
This diff is collapsed.
Click to expand it.
play/assets/scene/scene/scene.js
View file @
c9b8f250
...
...
@@ -174,7 +174,7 @@ cc.Class({
initView
()
{
this
.
btn_replay
=
pg
.
view
.
find
(
this
,
"
btn_replay
"
);
pg
.
view
.
visible
(
this
.
btn_replay
,
false
);
//
pg.view.visible(this.btn_replay, false);
pg
.
view
.
touchOn
(
this
.
btn_replay
,
this
.
onTouchReplay
,
this
);
this
.
initLayout
();
},
...
...
@@ -190,11 +190,27 @@ cc.Class({
//刷新分类
pg
.
view
.
setString
(
pg
.
view
.
find
(
this
,
"
main/sub_0/txt
"
),
this
.
_zhuClass
.
child
[
0
].
title
);
pg
.
view
.
setString
(
pg
.
view
.
find
(
this
,
"
main/sub_1/txt
"
),
this
.
_zhuClass
.
child
[
1
].
title
);
setTimeout
(()
=>
{
this
.
fixTxtSize
([
pg
.
view
.
find
(
this
,
"
main/sub_0/txt
"
),
pg
.
view
.
find
(
this
,
"
main/sub_1/txt
"
)])
},
30
);
this
.
initSon
();
this
.
initLine
();
this
.
initBox
();
this
.
initItems
();
},
fixTxtSize
(
items
)
{
let
minSize
=
100
;
items
.
forEach
(
it
=>
{
let
lb
=
it
.
getComponent
(
cc
.
Label
);
lb
.
fontSize
;
minSize
=
minSize
>
lb
.
actualFontSize
?
lb
.
actualFontSize
:
minSize
;
})
items
.
forEach
(
it
=>
{
let
lb
=
it
.
getComponent
(
cc
.
Label
);
lb
.
actualFontSize
=
minSize
lb
.
fontSize
=
minSize
})
},
initSon
()
{
//刷新子类
let
item
=
pg
.
view
.
find
(
this
,
"
son
"
);
...
...
@@ -226,6 +242,7 @@ cc.Class({
let
x
=
-
480
;
//-291.057
let
addX
=
190
;
let
y
=
75
;
let
txtArr
=
[];
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
let
data
=
list
[
i
];
let
itemClone
=
cc
.
instantiate
(
item
);
...
...
@@ -236,10 +253,14 @@ cc.Class({
itemClone
.
y
=
posY
;
itemClone
.
data
=
data
;
pg
.
view
.
setString
(
pg
.
view
.
find
(
itemClone
,
"
txt
"
),
data
.
title
);
txtArr
.
push
(
pg
.
view
.
find
(
itemClone
,
'
txt
'
));
pg
.
view
.
visible
(
pg
.
view
.
find
(
itemClone
,
"
bg_blue
"
),
data
.
type
==
0
);
pg
.
view
.
visible
(
pg
.
view
.
find
(
itemClone
,
"
bg_green
"
),
data
.
type
==
1
);
parent
.
addChild
(
itemClone
);
}
setTimeout
(()
=>
{
this
.
fixTxtSize
(
txtArr
);
},
30
);
},
initLine
()
{
//刷新子类
...
...
@@ -452,6 +473,7 @@ cc.Class({
pg
.
view
.
setString
(
txt
,
data
.
txt
);
pg
.
view
.
setString
(
pg
.
view
.
find
(
success
,
"
txt
"
),
data
.
txt
);
pg
.
view
.
setString
(
pg
.
view
.
find
(
fail
,
"
txt
"
),
data
.
txt
);
pg
.
view
.
setNetImg
(
icon
,
data
.
img
);
pg
.
view
.
setNetImg
(
pg
.
view
.
find
(
success
,
"
icon
"
),
data
.
img
);
...
...
@@ -655,7 +677,7 @@ cc.Class({
// 游戏结束时需要调用这个方法通知系统作业完成
onHomeworkFinish
();
pg
.
view
.
visible
(
this
.
btn_replay
,
true
);
//
pg.view.visible(this.btn_replay, true);
})
},
...
...
@@ -682,9 +704,10 @@ cc.Class({
onTouchReplay
()
{
this
.
initData
();
this
.
initSingleData
();
pg
.
view
.
visible
(
this
.
btn_replay
,
false
);
//
pg.view.visible(this.btn_replay, false);
// this.initStars();
this
.
initLayout
();
// this.initLayout();
this
.
initItems
();
},
createRightAni
(
pos
)
{
let
right
=
pg
.
view
.
find
(
this
,
'
right
'
);
...
...
@@ -706,28 +729,28 @@ cc.Class({
},
createFireworkAni
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
showAllFirework
(
cc
.
find
(
'
Canvas/firework_ani
'
),
cc
.
find
(
'
Canvas/paperBase
'
).
children
);
setTimeout
(()
=>
{
resolve
(
''
);
},
1000
);
// showFireworks(
// cc.find('Canvas/firework_ani'),
// cc.find('Canvas/RibbonNodeBase').children,
// cc.v2(0, -400), cc.v2(0, 1000), 200, 200
// );
// showFireworks(
// cc.find('Canvas/firework_ani'),
// cc.find('Canvas/RibbonNodeBase').children,
// cc.v2(-600, -400), cc.v2(200, 1000), 200, 200
// );
// showFireworks(
// cc.find('Canvas/firework_ani'),
// cc.find('Canvas/RibbonNodeBase').children,
// cc.v2(600, -400), cc.v2(-200, 1000), 200, 200
// );
// this.showAllFirework(cc.find('Canvas/firework_ani'), cc.find('Canvas/paperBase').children);
// setTimeout(() => {
// resolve('');
// }, 1000);
showFireworks
(
cc
.
find
(
'
Canvas/firework_ani
'
),
cc
.
find
(
'
Canvas/RibbonNodeBase
'
).
children
,
cc
.
v2
(
0
,
-
400
),
cc
.
v2
(
0
,
1000
),
200
,
200
);
showFireworks
(
cc
.
find
(
'
Canvas/firework_ani
'
),
cc
.
find
(
'
Canvas/RibbonNodeBase
'
).
children
,
cc
.
v2
(
-
600
,
-
400
),
cc
.
v2
(
200
,
1000
),
200
,
200
);
showFireworks
(
cc
.
find
(
'
Canvas/firework_ani
'
),
cc
.
find
(
'
Canvas/RibbonNodeBase
'
).
children
,
cc
.
v2
(
600
,
-
400
),
cc
.
v2
(
-
200
,
1000
),
200
,
200
);
setTimeout
(()
=>
{
resolve
(
''
);
},
1000
);
});
},
playSFX
(
name
)
{
...
...
play/assets/scene/textures/card/btn_replay.png
View replaced file @
4f707d8e
View file @
c9b8f250
12.5 KB
|
W:
|
H:
2.29 KB
|
W:
|
H:
2-up
Swipe
Onion skin
play/assets/scene/textures/card/btn_replay.png.meta
View file @
c9b8f250
...
...
@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 3
03
,
"height":
13
2,
"rawWidth": 3
03
,
"rawHeight":
13
2,
"width": 3
6
,
"height":
4
2,
"rawWidth": 3
6
,
"rawHeight":
4
2,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
...
...
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