@cc-component/cc-core 1.5.6 → 1.5.8

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.
@@ -92,6 +92,7 @@ export class EffectSingleCase {
92
92
 
93
93
  for (let i = 0; i < count; i++) {
94
94
  let node = instantiate(App.GetAsset(params.bundle, params.path))//ViewUtil.createPrefabNode(path, bundleName);
95
+ node.asset_path = App.res.getAssetKey(params.path, params.bundle)
95
96
  np.put(node);
96
97
  }
97
98
  resolve();
@@ -268,7 +269,8 @@ export class EffectSingleCase {
268
269
 
269
270
  /**获取节点 */
270
271
  getNode(params: IPoolParams): Node {
271
- var np = this.effects.get(params.path);
272
+ const name = params.path.split(':').pop();
273
+ var np = this.effects.get(name);
272
274
  const node = np?.get() ?? null
273
275
  this.updateNode(node, params)
274
276
  return node
@@ -1,44 +1,44 @@
1
- import { _decorator, Component, find, Label, Node, Tween, tween, v3 } from 'cc';
2
- const { ccclass, property } = _decorator;
3
-
4
- @ccclass('LoadingWindow')
5
- export class LoadingWindow extends Component {
6
-
7
- message: Label;
8
- loadingSpin: Node
9
- loadingSpin2: Node
10
-
11
- protected onLoad(): void {
12
- this.InitView()
13
- }
14
- InitView() {
15
- this.message = find("root/Label", this.node).getComponent(Label);
16
- this.loadingSpin = find("root/loadingSpin", this.node)
17
- this.loadingSpin2 = find("root/Loading Wheel", this.node)
18
- this.Show("")
19
- this.node.active = false
20
- }
21
-
22
- Show(message: string) {
23
- this.node.active = true;
24
- this.StartAnim()
25
- this.message.string = message === "" ? "加载中 请稍等..." : message;
26
- }
27
-
28
- Hide() {
29
- Tween.stopAllByTarget(this.node)
30
- this.node.active = false;
31
- }
32
-
33
-
34
- StartAnim() {
35
- Tween.stopAllByTarget(this.node)
36
- tween(this.loadingSpin)
37
- .repeatForever(
38
- tween().by(1, { eulerAngles: v3(0, 0, -360) }) // 每次旋转360度
39
- )
40
- .start();
41
- }
42
-
43
- }
1
+ // import { _decorator, Component, find, Label, Node, Tween, tween, v3 } from 'cc';
2
+ // const { ccclass, property } = _decorator;
3
+
4
+ // @ccclass('LoadingWindow')
5
+ // export class LoadingWindow extends Component {
6
+
7
+ // message: Label;
8
+ // loadingSpin: Node
9
+ // loadingSpin2: Node
10
+
11
+ // protected onLoad(): void {
12
+ // this.InitView()
13
+ // }
14
+ // InitView() {
15
+ // this.message = find("root/Label", this.node).getComponent(Label);
16
+ // this.loadingSpin = find("root/loadingSpin", this.node)
17
+ // this.loadingSpin2 = find("root/Loading Wheel", this.node)
18
+ // this.Show("")
19
+ // this.node.active = false
20
+ // }
21
+
22
+ // Show(message: string) {
23
+ // this.node.active = true;
24
+ // this.StartAnim()
25
+ // this.message.string = message === "" ? "加载中 请稍等..." : message;
26
+ // }
27
+
28
+ // Hide() {
29
+ // Tween.stopAllByTarget(this.node)
30
+ // this.node.active = false;
31
+ // }
32
+
33
+
34
+ // StartAnim() {
35
+ // Tween.stopAllByTarget(this.node)
36
+ // tween(this.loadingSpin)
37
+ // .repeatForever(
38
+ // tween().by(1, { eulerAngles: v3(0, 0, -360) }) // 每次旋转360度
39
+ // )
40
+ // .start();
41
+ // }
42
+
43
+ // }
44
44
 
@@ -95,7 +95,7 @@ export class App {
95
95
  self._res = ResourceManager.instance;
96
96
 
97
97
  if (EDITOR) { return }//编辑器环境,不执行下面逻辑
98
- Logger.setLevel(ELoggerLevel.Error);
98
+ //Logger.setLevel(ELoggerLevel.Error);
99
99
  await self._gui.loadConfig(param);
100
100
  const config: EnvironmentConfig = self._gui.current_config;
101
101
  // 免网络
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-core",
3
- "version": "1.5.6",
3
+ "version": "1.5.8",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",