Compare commits

...
Author SHA1 Message Date
Martin Robertz 0289b37536 update 2024-06-01 12:59:09 +02:00
Alastors bfef4186de shift nei mana pool 2024-06-01 03:36:08 -04:00
3 changed files with 16 additions and 3 deletions

No files matched your search

+3 -2
View File
@@ -7,12 +7,13 @@ dependencies {
compileOnly('com.github.GTNewHorizons:Railcraft:9.15.8:api') {transitive=false}
compileOnly('com.github.GTNewHorizons:StorageDrawers:1.13.5-GTNH:api') {transitive=false}
compileOnly('com.github.GTNewHorizons:ForgeMultipart:1.4.8:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:NotEnoughItems:2.6.0-GTNH:dev')
compileOnly('com.github.GTNewHorizons:ForgeMultipart:1.5.0:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:NotEnoughItems:2.6.1-GTNH:dev')
compileOnly('com.github.GTNewHorizons:BuildCraft:7.1.39:api') {transitive=false}
compile('com.github.GTNewHorizons:GTNHLib:0.2.11:dev')
compileOnly('curse.maven:cofh-lib-220333:2388748')
compileOnly('curse.maven:minefactory-reloaded-66672:2366150')
devOnlyNonPublishable('com.github.GTNewHorizons:NotEnoughItems:2.6.1-GTNH:dev')
}
@@ -5,6 +5,9 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
@@ -49,6 +52,7 @@ public class RecipeHandlerManaPool extends TemplateRecipeHandler {
otherStacks.add(new PositionedStack(new ItemStack(ModBlocks.conjurationCatalyst), 10, 37));
output = new PositionedStack(recipe.getOutput(), 101, 37);
// This value is where the mana bar is stored initially
mana = recipe.getManaToConsume();
}
@@ -94,9 +98,16 @@ public class RecipeHandlerManaPool extends TemplateRecipeHandler {
super.drawBackground(recipe);
GL11.glEnable(GL11.GL_BLEND);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.5F);
// Mana infusion is the mana pool, super weird.
GuiDraw.changeTexture(LibResources.GUI_MANA_INFUSION_OVERLAY);
GuiDraw.drawTexturedModalRect(45, 20, 38, 35, 92, 50);
HUDHandler.renderManaBar(32, 80, 0x0000FF, 0.75F, ((CachedManaPoolRecipe) arecipes.get(recipe)).mana, TilePool.MAX_MANA / 10);
// Below is where the mana bar actually drawn.
int tempMana = ((CachedManaPoolRecipe) arecipes.get(recipe)).mana;
HUDHandler.renderManaBar(32, 80, 0x0000FF, 0.75F, GuiScreen.isShiftKeyDown() ? tempMana : tempMana * 10, TilePool.MAX_MANA / 10);
FontRenderer font = Minecraft.getMinecraft().fontRenderer;
String size = GuiScreen.isShiftKeyDown() ? "1x " : "10x ";
String localized = StatCollector.translateToLocal("botaniamisc.neiratio");
font.drawString(size + localized, 84 - font.getStringWidth(size + localized) / 2, 71, 0x000000);
RenderTilePool.forceMana = true;
}
@@ -50,6 +50,7 @@ botaniamisc.clickToSee=Click to read
botaniamisc.shiftToRemove=Shift-click to remove
botaniamisc.clickToAdd=Add Bookmark
botaniamisc.ratio=%sx Zoom (hover to zoom out)
botaniamisc.neiratio=Zoom (shift to zoom out)
botaniamisc.bottleTooltip=It has an acquired taste
botaniamisc.coarseDirt0=Coarse Dirt, grass
botaniamisc.coarseDirt1=won't grow on it