diff --git a/src/main/java/biomesoplenty/common/config/MiscConfigurationHandler.java b/src/main/java/biomesoplenty/common/config/MiscConfigurationHandler.java index 1cea1c509..b8f1fc006 100644 --- a/src/main/java/biomesoplenty/common/config/MiscConfigurationHandler.java +++ b/src/main/java/biomesoplenty/common/config/MiscConfigurationHandler.java @@ -18,6 +18,7 @@ public class MiscConfigurationHandler public static Configuration config; public static boolean useBoPWorldTypeDefault; + public static boolean overrideTitlePanorama; public static void init(File configFile) { @@ -29,6 +30,7 @@ public class MiscConfigurationHandler //TODO: Make this default to true once all biomes have been implemented useBoPWorldTypeDefault = config.getBoolean("Default to BoP World Type", "GUI Settings", false, "Use the Biomes O' Plenty World Type by default when selecting a world."); + overrideTitlePanorama = config.getBoolean("Enable Biomes O\' Plenty Main Menu Panorama", "GUI Settings", true, "Override the main menu panorama and use ours instead (It\'s nicer!)"); } catch (Exception e) { diff --git a/src/main/java/biomesoplenty/core/ClientProxy.java b/src/main/java/biomesoplenty/core/ClientProxy.java index 864e0fd72..30768b424 100644 --- a/src/main/java/biomesoplenty/core/ClientProxy.java +++ b/src/main/java/biomesoplenty/core/ClientProxy.java @@ -8,12 +8,21 @@ package biomesoplenty.core; +import net.minecraft.client.gui.GuiMainMenu; +import net.minecraft.util.ResourceLocation; +import biomesoplenty.common.config.MiscConfigurationHandler; + public class ClientProxy extends CommonProxy { + public static ResourceLocation[] bopTitlePanoramaPaths = new ResourceLocation[] {new ResourceLocation("biomesoplenty:textures/gui/title/background/panorama_0.png"), new ResourceLocation("biomesoplenty:textures/gui/title/background/panorama_1.png"), new ResourceLocation("biomesoplenty:textures/gui/title/background/panorama_2.png"), new ResourceLocation("biomesoplenty:textures/gui/title/background/panorama_3.png"), new ResourceLocation("biomesoplenty:textures/gui/title/background/panorama_4.png"), new ResourceLocation("biomesoplenty:textures/gui/title/background/panorama_5.png")}; + @Override public void registerRenderers() { + if (MiscConfigurationHandler.overrideTitlePanorama) + GuiMainMenu.titlePanoramaPaths = bopTitlePanoramaPaths; + //Entity rendering and other stuff will go here in future } } diff --git a/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_0.png b/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_0.png new file mode 100644 index 000000000..8eaeb0d80 Binary files /dev/null and b/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_0.png differ diff --git a/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_1.png b/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_1.png new file mode 100644 index 000000000..149166074 Binary files /dev/null and b/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_1.png differ diff --git a/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_2.png b/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_2.png new file mode 100644 index 000000000..2c596e4f6 Binary files /dev/null and b/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_2.png differ diff --git a/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_3.png b/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_3.png new file mode 100644 index 000000000..ff753c455 Binary files /dev/null and b/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_3.png differ diff --git a/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_4.png b/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_4.png new file mode 100644 index 000000000..5b00a94a9 Binary files /dev/null and b/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_4.png differ diff --git a/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_5.png b/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_5.png new file mode 100644 index 000000000..60f4f8f69 Binary files /dev/null and b/src/main/resources/assets/biomesoplenty/textures/gui/title/background/panorama_5.png differ diff --git a/src/main/resources/biomesoplenty_at.cfg b/src/main/resources/biomesoplenty_at.cfg index b0d75a288..9588cc19a 100644 --- a/src/main/resources/biomesoplenty_at.cfg +++ b/src/main/resources/biomesoplenty_at.cfg @@ -1,6 +1,7 @@ public net.minecraft.client.gui.GuiScreen func_146283_a(Ljava/util/List;II)V #drawHoveringText public net.minecraft.client.gui.GuiCreateWorld field_146320_D #field_146320_D public net.minecraft.client.gui.GuiCreateWorld field_146331_K #field_146331_K +public-f net.minecraft.client.gui.GuiMainMenu field_73978_o #field_73978_o public-f net.minecraft.world.biome.BiomeGenBase field_76756_M #biomeID public net.minecraft.world.WorldType func_151358_j()Lnet/minecraft/world/WorldType; #setNotificationData diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info index 8627cfe6c..6e98c1320 100755 --- a/src/main/resources/mcmod.info +++ b/src/main/resources/mcmod.info @@ -5,7 +5,7 @@ "version": "${mod_version}", "mcversion": "${minecraft_version}", "url": "www.minecraftforum.net/topic/1495041-", - "authorList": ["Adubbz", "Amnet", "cheeserolls", "Forstride", "ted80"], + "authorList": ["Adubbz", "Amnet", "Cheeserolls", "Forstride", "ted80"], "credits": "enchilado, gamax92, Soaryn, Tim Rurkowski", "logoFile": "assets/biomesoplenty/textures/gui/logo.png" }]