diff --git a/public/images/ui/windows/badlands_panel.png b/public/images/ui/windows/badlands_panel.png new file mode 100644 index 00000000000..c601abc89db Binary files /dev/null and b/public/images/ui/windows/badlands_panel.png differ diff --git a/public/images/ui/windows/cave_panel.png b/public/images/ui/windows/cave_panel.png new file mode 100644 index 00000000000..0dce031b69e Binary files /dev/null and b/public/images/ui/windows/cave_panel.png differ diff --git a/public/images/ui/windows/construction_site_panel.png b/public/images/ui/windows/construction_site_panel.png new file mode 100644 index 00000000000..bb441df064a Binary files /dev/null and b/public/images/ui/windows/construction_site_panel.png differ diff --git a/src/loading-scene.ts b/src/loading-scene.ts index 076b5c3a3b6..0288d2c6c39 100644 --- a/src/loading-scene.ts +++ b/src/loading-scene.ts @@ -78,10 +78,10 @@ export const biomePanelIDs: string[] = [ ] export const allpanels: string[] = [ "abyss", - //"badlands", + "badlands", "beach", - //"cave", - //"construction_site", + "cave", + "construction_site", //"desert", //"dojo", "end", @@ -145,7 +145,7 @@ export class LoadingScene extends SceneBase { } } //this.loadImage(`abyss_panel`, "ui/windows"); - //this.loadImage(`badlands_panel`, "ui/windows"); +// this.loadImage(`badlands_panel`, "ui/windows"); //this.loadImage(`beach_panel`, "ui/windows"); //this.loadImage(`cave_panel`, "ui/windows"); //this.loadImage(`construction_site_panel`, "ui/windows"); @@ -180,7 +180,7 @@ export class LoadingScene extends SceneBase { // this.loadImage(`volcano_panel`, "ui/windows"); // this.loadImage(`wasteland_panel`, "ui/windows"); for (var i = 0; i < allpanels.length; i++) { - this.loadImage(`${allpanels[i]}_panel`, "ui/windows"); + this.loadImageNoLegacy(`${allpanels[i]}_panel`, "ui/windows"); } this.loadAtlas("namebox", "ui"); this.loadImage("pbinfo_player", "ui"); diff --git a/src/scene-base.ts b/src/scene-base.ts index 1d7a2518300..9c757860bf9 100644 --- a/src/scene-base.ts +++ b/src/scene-base.ts @@ -40,6 +40,12 @@ export class SceneBase extends Phaser.Scene { this.load.image(`${key}_legacy`, this.getCachedUrl(`images/${folder}/${filename}`)); } } + loadImageNoLegacy(key: string, folder: string, filename?: string) { + if (!filename) { + filename = `${key}.png`; + } + this.load.image(key, this.getCachedUrl(`images/${folder}/${filename}`)); + } loadSpritesheet(key: string, folder: string, size: integer, filename?: string) { if (!filename) {