add 'model' param to SkinViewerOptions (#84)
This commit is contained in:
parent
3de8b09730
commit
32cc449cc9
|
@ -22,6 +22,7 @@ export interface SkinViewerOptions {
|
||||||
width?: number;
|
width?: number;
|
||||||
height?: number;
|
height?: number;
|
||||||
skin?: RemoteImage | TextureSource;
|
skin?: RemoteImage | TextureSource;
|
||||||
|
model?: ModelType | "auto-detect";
|
||||||
cape?: RemoteImage | TextureSource;
|
cape?: RemoteImage | TextureSource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -100,7 +101,7 @@ export class SkinViewer {
|
||||||
this.scene.add(this.playerObject);
|
this.scene.add(this.playerObject);
|
||||||
|
|
||||||
if (options.skin !== undefined) {
|
if (options.skin !== undefined) {
|
||||||
this.loadSkin(options.skin);
|
this.loadSkin(options.skin, options.model);
|
||||||
}
|
}
|
||||||
if (options.cape !== undefined) {
|
if (options.cape !== undefined) {
|
||||||
this.loadCape(options.cape);
|
this.loadCape(options.cape);
|
||||||
|
|
Loading…
Reference in New Issue