@ives_xxz/framework 2.3.12 → 2.3.14

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.
@@ -100,7 +100,7 @@ export class FWAssetManager extends FWManager implements FW.AssetManager {
100
100
  if (err || !asset) {
101
101
  reject(err);
102
102
  }
103
- options.cb?.(asset as T);
103
+ options?.cb?.(asset as T);
104
104
  resolve(asset as T);
105
105
  },
106
106
  );
@@ -97,12 +97,13 @@ export class FWResManager extends FWManager implements FW.ResManager {
97
97
  ext?: string;
98
98
  enableCache?: boolean;
99
99
  maxRetryCount?: number;
100
+ texture?: boolean;
100
101
  cb?: (asset: T) => void;
101
102
  },
102
103
  ): Promise<T> {
103
104
  try {
104
105
  const asset = await this.assetMgr.loadRemote(url, options);
105
- if (options?.ext) {
106
+ if (!options?.texture) {
106
107
  return asset as T;
107
108
  } else {
108
109
  if (asset instanceof cc.Texture2D) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ives_xxz/framework",
3
- "version": "2.3.12",
3
+ "version": "2.3.14",
4
4
  "description": "cocoscreator 2.x mvc framework",
5
5
  "main": "index.js",
6
6
  "keywords": ["123456"],
package/types/FW.d.ts CHANGED
@@ -1080,6 +1080,7 @@ declare namespace FW {
1080
1080
  ext?: string;
1081
1081
  enableCache?: boolean;
1082
1082
  maxRetryCount?: number;
1083
+ texture?:boolean;
1083
1084
  cb?: (asset: T) => void;
1084
1085
  },): Promise<T>;
1085
1086