@muzi-test/cc-ctrl-train-common-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cc-ctrl-train-common-ui.md +12 -0
- package/assets/HomeComponent.ts +15 -0
- package/assets/HomeComponent.ts.meta +9 -0
- package/assets/HomePrefab.prefab +283 -0
- package/assets/HomePrefab.prefab.meta +13 -0
- package/assets.meta +9 -0
- package/index.ts +2 -0
- package/index.ts.meta +9 -0
- package/package.json +19 -0
- package/package.json.meta +11 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { _decorator, Component, Node } from 'cc';
|
|
2
|
+
const { ccclass, property, menu } = _decorator;
|
|
3
|
+
|
|
4
|
+
@ccclass('pkg:HomeComponent')
|
|
5
|
+
@menu('pkg/HomeComponent')
|
|
6
|
+
export class HomeComponent extends Component {
|
|
7
|
+
start() {
|
|
8
|
+
console.log("HomeComponent start");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
update(deltaTime: number) {
|
|
12
|
+
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"__type__": "cc.Prefab",
|
|
4
|
+
"_name": "HomePrefab",
|
|
5
|
+
"_objFlags": 0,
|
|
6
|
+
"__editorExtras__": {},
|
|
7
|
+
"_native": "",
|
|
8
|
+
"data": {
|
|
9
|
+
"__id__": 1
|
|
10
|
+
},
|
|
11
|
+
"optimizationPolicy": 0,
|
|
12
|
+
"persistent": false
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"__type__": "cc.Node",
|
|
16
|
+
"_name": "HomePrefab",
|
|
17
|
+
"_objFlags": 0,
|
|
18
|
+
"__editorExtras__": {},
|
|
19
|
+
"_parent": null,
|
|
20
|
+
"_children": [
|
|
21
|
+
{
|
|
22
|
+
"__id__": 2
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"_active": true,
|
|
26
|
+
"_components": [
|
|
27
|
+
{
|
|
28
|
+
"__id__": 8
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"__id__": 10
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"_prefab": {
|
|
35
|
+
"__id__": 12
|
|
36
|
+
},
|
|
37
|
+
"_lpos": {
|
|
38
|
+
"__type__": "cc.Vec3",
|
|
39
|
+
"x": 0,
|
|
40
|
+
"y": 0,
|
|
41
|
+
"z": 0
|
|
42
|
+
},
|
|
43
|
+
"_lrot": {
|
|
44
|
+
"__type__": "cc.Quat",
|
|
45
|
+
"x": 0,
|
|
46
|
+
"y": 0,
|
|
47
|
+
"z": 0,
|
|
48
|
+
"w": 1
|
|
49
|
+
},
|
|
50
|
+
"_lscale": {
|
|
51
|
+
"__type__": "cc.Vec3",
|
|
52
|
+
"x": 1,
|
|
53
|
+
"y": 1,
|
|
54
|
+
"z": 1
|
|
55
|
+
},
|
|
56
|
+
"_mobility": 0,
|
|
57
|
+
"_layer": 1073741824,
|
|
58
|
+
"_euler": {
|
|
59
|
+
"__type__": "cc.Vec3",
|
|
60
|
+
"x": 0,
|
|
61
|
+
"y": 0,
|
|
62
|
+
"z": 0
|
|
63
|
+
},
|
|
64
|
+
"_id": ""
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"__type__": "cc.Node",
|
|
68
|
+
"_name": "Label",
|
|
69
|
+
"_objFlags": 0,
|
|
70
|
+
"__editorExtras__": {},
|
|
71
|
+
"_parent": {
|
|
72
|
+
"__id__": 1
|
|
73
|
+
},
|
|
74
|
+
"_children": [],
|
|
75
|
+
"_active": true,
|
|
76
|
+
"_components": [
|
|
77
|
+
{
|
|
78
|
+
"__id__": 3
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"__id__": 5
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"_prefab": {
|
|
85
|
+
"__id__": 7
|
|
86
|
+
},
|
|
87
|
+
"_lpos": {
|
|
88
|
+
"__type__": "cc.Vec3",
|
|
89
|
+
"x": 0,
|
|
90
|
+
"y": 0,
|
|
91
|
+
"z": 0
|
|
92
|
+
},
|
|
93
|
+
"_lrot": {
|
|
94
|
+
"__type__": "cc.Quat",
|
|
95
|
+
"x": 0,
|
|
96
|
+
"y": 0,
|
|
97
|
+
"z": 0,
|
|
98
|
+
"w": 1
|
|
99
|
+
},
|
|
100
|
+
"_lscale": {
|
|
101
|
+
"__type__": "cc.Vec3",
|
|
102
|
+
"x": 1,
|
|
103
|
+
"y": 1,
|
|
104
|
+
"z": 1
|
|
105
|
+
},
|
|
106
|
+
"_mobility": 0,
|
|
107
|
+
"_layer": 1073741824,
|
|
108
|
+
"_euler": {
|
|
109
|
+
"__type__": "cc.Vec3",
|
|
110
|
+
"x": 0,
|
|
111
|
+
"y": 0,
|
|
112
|
+
"z": 0
|
|
113
|
+
},
|
|
114
|
+
"_id": ""
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"__type__": "cc.UITransform",
|
|
118
|
+
"_name": "",
|
|
119
|
+
"_objFlags": 0,
|
|
120
|
+
"__editorExtras__": {},
|
|
121
|
+
"node": {
|
|
122
|
+
"__id__": 2
|
|
123
|
+
},
|
|
124
|
+
"_enabled": true,
|
|
125
|
+
"__prefab": {
|
|
126
|
+
"__id__": 4
|
|
127
|
+
},
|
|
128
|
+
"_contentSize": {
|
|
129
|
+
"__type__": "cc.Size",
|
|
130
|
+
"width": 39.99836073439099,
|
|
131
|
+
"height": 50.4
|
|
132
|
+
},
|
|
133
|
+
"_anchorPoint": {
|
|
134
|
+
"__type__": "cc.Vec2",
|
|
135
|
+
"x": 0.5,
|
|
136
|
+
"y": 0.5
|
|
137
|
+
},
|
|
138
|
+
"_id": ""
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"__type__": "cc.CompPrefabInfo",
|
|
142
|
+
"fileId": "e8z7UVphNBOYgF0Wl8B6dM"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"__type__": "cc.Label",
|
|
146
|
+
"_name": "",
|
|
147
|
+
"_objFlags": 0,
|
|
148
|
+
"__editorExtras__": {},
|
|
149
|
+
"node": {
|
|
150
|
+
"__id__": 2
|
|
151
|
+
},
|
|
152
|
+
"_enabled": true,
|
|
153
|
+
"__prefab": {
|
|
154
|
+
"__id__": 6
|
|
155
|
+
},
|
|
156
|
+
"_customMaterial": null,
|
|
157
|
+
"_srcBlendFactor": 2,
|
|
158
|
+
"_dstBlendFactor": 4,
|
|
159
|
+
"_color": {
|
|
160
|
+
"__type__": "cc.Color",
|
|
161
|
+
"r": 255,
|
|
162
|
+
"g": 255,
|
|
163
|
+
"b": 255,
|
|
164
|
+
"a": 255
|
|
165
|
+
},
|
|
166
|
+
"_string": "首页",
|
|
167
|
+
"_horizontalAlign": 1,
|
|
168
|
+
"_verticalAlign": 1,
|
|
169
|
+
"_actualFontSize": 30.53125,
|
|
170
|
+
"_fontSize": 20,
|
|
171
|
+
"_fontFamily": "Arial",
|
|
172
|
+
"_lineHeight": 40,
|
|
173
|
+
"_overflow": 0,
|
|
174
|
+
"_enableWrapText": true,
|
|
175
|
+
"_font": null,
|
|
176
|
+
"_isSystemFontUsed": true,
|
|
177
|
+
"_spacingX": 0,
|
|
178
|
+
"_isItalic": false,
|
|
179
|
+
"_isBold": false,
|
|
180
|
+
"_isUnderline": false,
|
|
181
|
+
"_underlineHeight": 2,
|
|
182
|
+
"_cacheMode": 0,
|
|
183
|
+
"_enableOutline": false,
|
|
184
|
+
"_outlineColor": {
|
|
185
|
+
"__type__": "cc.Color",
|
|
186
|
+
"r": 0,
|
|
187
|
+
"g": 0,
|
|
188
|
+
"b": 0,
|
|
189
|
+
"a": 255
|
|
190
|
+
},
|
|
191
|
+
"_outlineWidth": 2,
|
|
192
|
+
"_enableShadow": false,
|
|
193
|
+
"_shadowColor": {
|
|
194
|
+
"__type__": "cc.Color",
|
|
195
|
+
"r": 0,
|
|
196
|
+
"g": 0,
|
|
197
|
+
"b": 0,
|
|
198
|
+
"a": 255
|
|
199
|
+
},
|
|
200
|
+
"_shadowOffset": {
|
|
201
|
+
"__type__": "cc.Vec2",
|
|
202
|
+
"x": 2,
|
|
203
|
+
"y": 2
|
|
204
|
+
},
|
|
205
|
+
"_shadowBlur": 2,
|
|
206
|
+
"_id": ""
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"__type__": "cc.CompPrefabInfo",
|
|
210
|
+
"fileId": "ef++G+54RE3bsHKct+yK+z"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"__type__": "cc.PrefabInfo",
|
|
214
|
+
"root": {
|
|
215
|
+
"__id__": 1
|
|
216
|
+
},
|
|
217
|
+
"asset": {
|
|
218
|
+
"__id__": 0
|
|
219
|
+
},
|
|
220
|
+
"fileId": "02DtH68JtEooMISXpo18vo",
|
|
221
|
+
"instance": null,
|
|
222
|
+
"targetOverrides": null,
|
|
223
|
+
"nestedPrefabInstanceRoots": null
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"__type__": "cc.UITransform",
|
|
227
|
+
"_name": "",
|
|
228
|
+
"_objFlags": 0,
|
|
229
|
+
"__editorExtras__": {},
|
|
230
|
+
"node": {
|
|
231
|
+
"__id__": 1
|
|
232
|
+
},
|
|
233
|
+
"_enabled": true,
|
|
234
|
+
"__prefab": {
|
|
235
|
+
"__id__": 9
|
|
236
|
+
},
|
|
237
|
+
"_contentSize": {
|
|
238
|
+
"__type__": "cc.Size",
|
|
239
|
+
"width": 100,
|
|
240
|
+
"height": 100
|
|
241
|
+
},
|
|
242
|
+
"_anchorPoint": {
|
|
243
|
+
"__type__": "cc.Vec2",
|
|
244
|
+
"x": 0.5,
|
|
245
|
+
"y": 0.5
|
|
246
|
+
},
|
|
247
|
+
"_id": ""
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"__type__": "cc.CompPrefabInfo",
|
|
251
|
+
"fileId": "6bb1Iw1m9IKJOQJFFqIcFk"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"__type__": "7394eI1kStBLKybRK0y1+cC",
|
|
255
|
+
"_name": "",
|
|
256
|
+
"_objFlags": 0,
|
|
257
|
+
"__editorExtras__": {},
|
|
258
|
+
"node": {
|
|
259
|
+
"__id__": 1
|
|
260
|
+
},
|
|
261
|
+
"_enabled": true,
|
|
262
|
+
"__prefab": {
|
|
263
|
+
"__id__": 11
|
|
264
|
+
},
|
|
265
|
+
"_id": ""
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"__type__": "cc.CompPrefabInfo",
|
|
269
|
+
"fileId": "60vM8JUvdHQLxoSkebcAIi"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"__type__": "cc.PrefabInfo",
|
|
273
|
+
"root": {
|
|
274
|
+
"__id__": 1
|
|
275
|
+
},
|
|
276
|
+
"asset": {
|
|
277
|
+
"__id__": 0
|
|
278
|
+
},
|
|
279
|
+
"fileId": "c46/YsCPVOJYA4mWEpNYRx",
|
|
280
|
+
"instance": null,
|
|
281
|
+
"targetOverrides": null
|
|
282
|
+
}
|
|
283
|
+
]
|
package/assets.meta
ADDED
package/index.ts
ADDED
package/index.ts.meta
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@muzi-test/cc-ctrl-train-common-ui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"engine": ">=3.8.0",
|
|
5
|
+
"description": "儿童训练公共ui部分包",
|
|
6
|
+
"main": "index.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://gitee.com/cocos2d-zp/cococs-creator-frame-3d"
|
|
13
|
+
},
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public",
|
|
16
|
+
"registry": "https://registry.npmjs.org"
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT"
|
|
19
|
+
}
|