mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Added a config to change the height of the mana bar for people who use Dual Hotbars or other mods that change the HUD.
This commit is contained in:
1 parent
c58784c154
commit
0e95b606e6
3 files changed
+7
-1
No files matched your search
@@ -54,6 +54,7 @@ import vazkii.botania.common.block.ModBlocks;
|
||||
import vazkii.botania.common.block.tile.corporea.TileCorporeaCrystalCube;
|
||||
import vazkii.botania.common.block.tile.corporea.TileCorporeaIndex;
|
||||
import vazkii.botania.common.block.tile.mana.TilePool;
|
||||
import vazkii.botania.common.core.handler.ConfigHandler;
|
||||
import vazkii.botania.common.item.ItemCraftingHalo;
|
||||
import vazkii.botania.common.item.ItemTwigWand;
|
||||
import vazkii.botania.common.item.ModItems;
|
||||
@@ -203,7 +204,7 @@ public final class HUDHandler {
|
||||
Minecraft mc = Minecraft.getMinecraft();
|
||||
int width = 182;
|
||||
int x = res.getScaledWidth() / 2 - width / 2;
|
||||
int y = res.getScaledHeight() - 29;
|
||||
int y = res.getScaledHeight() - ConfigHandler.manaBarHeight;
|
||||
|
||||
if(!hasCreative) {
|
||||
if(totalMaxMana == 0)
|
||||
|
||||
@@ -42,6 +42,7 @@ public final class ConfigHandler {
|
||||
public static boolean useVanillaParticleLimiter = true;
|
||||
public static boolean silentSpreaders = false;
|
||||
public static boolean renderBaubles = true;
|
||||
public static int manaBarHeight = 29;
|
||||
|
||||
public static boolean altFlowerTextures = false;
|
||||
public static boolean matrixMode = false;
|
||||
@@ -134,6 +135,9 @@ public final class ConfigHandler {
|
||||
desc = "Set this to false to disable rendering of baubles in the player.";
|
||||
renderBaubles = loadPropBool("baubleRender.enabled", desc, renderBaubles);
|
||||
|
||||
desc = "The height of the mana display bar in above the XP bar. You can change this if you have a mod that changes where the XP bar is.";
|
||||
manaBarHeight = loadPropInt("manaBar.height", desc, manaBarHeight);
|
||||
|
||||
desc = "Set this to true to use alternate flower textures by Futureazoo, not all flowers are textured. http://redd.it/2b3o3f";
|
||||
altFlowerTextures = loadPropBool("flowerTextures.alt", desc, altFlowerTextures);
|
||||
|
||||
|
||||
Reference in new issue
Block a user