Some label fixes

This commit is contained in:
2026-06-25 19:56:14 -05:00
parent d85737cc08
commit 722fe2ccfb
30 changed files with 290 additions and 105 deletions
+7 -7
View File
@@ -13,24 +13,24 @@
interface AssetEntry {
/** Archive-relative path used as the cache key. */
readonly name: string;
/** Current loading state compare against `AssetEntry.*` state constants. */
/** Current loading state - compare against `AssetEntry.*` state constants. */
readonly state: number;
/** Loader type one of the `AssetEntry.TYPE_*` constants. */
/** Loader type - one of the `AssetEntry.TYPE_*` constants. */
readonly type: number;
/** `true` when the entry has fully loaded (`state === AssetEntry.LOADED`). */
readonly isLoaded: boolean;
/**
* Returns a `Texture` for this entry when it is a loaded texture asset.
* The `Texture` holds its own asset lock independent of this `AssetEntry`.
* The `Texture` holds its own asset lock - independent of this `AssetEntry`.
* Returns `undefined` if the entry is not of type `Asset.TYPE_TEXTURE` or
* is not yet loaded.
*/
readonly texture: Texture | undefined;
/** Event proxy subscribe up to 4 callbacks for when loading completes. */
/** Event proxy - subscribe up to 4 callbacks for when loading completes. */
readonly onLoaded: AssetEventProxy;
/** Event proxy subscribe up to 4 callbacks for when the entry is disposed. */
/** Event proxy - subscribe up to 4 callbacks for when the entry is disposed. */
readonly onUnloaded: AssetEventProxy;
/** Event proxy subscribe up to 4 callbacks for when loading fails. */
/** Event proxy - subscribe up to 4 callbacks for when loading fails. */
readonly onError: AssetEventProxy;
/**
* Returns a Promise that resolves when the entry is loaded, or rejects on
@@ -45,7 +45,7 @@ interface AssetEntry {
requireLoaded(): this;
/**
* Releases the lock immediately.
* After this call the object is invalid do not use it again.
* After this call the object is invalid - do not use it again.
*/
unlock(): void;
toString(): string;