@cc-component/cc-core 1.1.2 → 1.1.4

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.
@@ -21,7 +21,8 @@ export enum HttpType {
21
21
  POST,
22
22
  }
23
23
  export interface IBundleConfig {
24
- layer: LayerType,
24
+ module: string;
25
+ layer: LayerType;
25
26
  path: string;
26
27
  bundle: BundleConfigName;
27
28
  name?: string;
@@ -1,4 +1,4 @@
1
- import { JsonAsset, Layers, Widget } from 'cc';
1
+ import { JsonAsset, Layers, Widget, UITransform } from 'cc';
2
2
  import { _decorator, Node } from 'cc';
3
3
  import { EnvironmentConfig, IConfig } from './IConfig';
4
4
  import { LayerType } from './LayerType';
@@ -11,6 +11,8 @@ import { ISceneParam } from '../interface/ISceneParam';
11
11
  import { BlockInputEvents } from 'cc';
12
12
  import { BaseLaunchComponent } from '../home/BaseLaunchComponent';
13
13
  import { AssetManager } from 'cc';
14
+ import { Sprite } from 'cc';
15
+ import { Color } from 'cc';
14
16
  const { ccclass, property } = _decorator;
15
17
 
16
18
  @ccclass('LayerUI')
@@ -78,6 +80,7 @@ export class LayerUI {
78
80
  w.left = w.right = w.top = w.bottom = 0;
79
81
  w.alignMode = 2;
80
82
  w.enabled = true;
83
+ (new Sprite).color = new Color(0, 0, 0, 130);
81
84
  return node;
82
85
  }
83
86
 
@@ -11,3 +11,15 @@ export class BaseModuleConfig {
11
11
  }
12
12
 
13
13
 
14
+ export abstract class WindowHandler {
15
+ constructor(configMap: any, moduleName: string) {
16
+ Object.keys(configMap).forEach(key => {
17
+ const cof = configMap[key];
18
+ if (cof.module = moduleName) {
19
+ (this as any)[key] = (params: any) => {
20
+ MainModule.OpenWindow(configMap[key], params);
21
+ };
22
+ }
23
+ });
24
+ }
25
+ }
@@ -2,7 +2,7 @@
2
2
  "ver": "4.0.24",
3
3
  "importer": "typescript",
4
4
  "imported": true,
5
- "uuid": "10f538a9-c3bb-459d-bf59-f4d888da759d",
5
+ "uuid": "23ea6ccb-a798-46ea-9093-0d3276dc692d",
6
6
  "files": [],
7
7
  "subMetas": {},
8
8
  "userData": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-core",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",