Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cake_class_1
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
cake_class_1
Commits
b2c8c214
Commit
b2c8c214
authored
Mar 13, 2022
by
章红平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提示信息
parent
c067e0bd
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
.DS_Store
.DS_Store
+0
-0
panel.prefab
assets/cake_class_1/prefab/panel.prefab
+2
-2
cake_class_1.ts
assets/cake_class_1/scene/cake_class_1.ts
+3
-5
MyCocosSceneComponent.ts
assets/cake_class_1/script/MyCocosSceneComponent.ts
+5
-0
No files found.
.DS_Store
View file @
b2c8c214
No preview for this file type
assets/cake_class_1/prefab/panel.prefab
View file @
b2c8c214
...
@@ -1175,8 +1175,8 @@
...
@@ -1175,8 +1175,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 1
28
0,
"width": 1
50
0,
"height":
72
0
"height":
90
0
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
...
assets/cake_class_1/scene/cake_class_1.ts
View file @
b2c8c214
...
@@ -186,14 +186,12 @@ export default class cake_class_1 extends MyCocosSceneComponent {
...
@@ -186,14 +186,12 @@ export default class cake_class_1 extends MyCocosSceneComponent {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this
.
initData
();;
this
.
initData
();;
this
.
initListener
();
this
.
initListener
();
}
}
start
()
{
dataCallBack
()
{
super
.
start
();
super
.
dataCallBack
();
this
.
stickers
.
node
.
active
=
false
;
this
.
stickers
.
node
.
active
=
false
;
this
.
nowPanel
=
this
.
addPanel
()
this
.
nowPanel
=
this
.
addPanel
()
cc
.
find
(
"
bg/topTittle
"
,
this
.
node
).
getComponentInChildren
(
cc
.
Label
).
string
=
this
.
data
.
title
;
cc
.
find
(
"
bg/topTittle
"
,
this
.
node
).
getComponentInChildren
(
cc
.
Label
).
string
=
this
.
data
.
title
;
// this.playBones(this.candleN,"newAnimation")
}
}
addPanel
()
{
addPanel
()
{
...
...
assets/cake_class_1/script/MyCocosSceneComponent.ts
View file @
b2c8c214
...
@@ -61,12 +61,17 @@ export class MyCocosSceneComponent extends cc.Component {
...
@@ -61,12 +61,17 @@ export class MyCocosSceneComponent extends cc.Component {
this
.
data
=
data
||
this
.
getDefaultData
();
this
.
data
=
data
||
this
.
getDefaultData
();
this
.
data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
data
));
this
.
data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
data
));
this
.
preloadItem
();
this
.
preloadItem
();
this
.
dataCallBack
();
})
})
}
else
{
}
else
{
this
.
data
=
this
.
getDefaultData
();
this
.
data
=
this
.
getDefaultData
();
this
.
preloadItem
();
this
.
preloadItem
();
this
.
dataCallBack
();
}
}
}
}
dataCallBack
(){
}
getDefaultData
()
{
getDefaultData
()
{
return
defaultData
;
return
defaultData
;
...
...
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