diff --git a/src/main/java/techreborn/pda/pages/ItemsPage.java b/src/main/java/techreborn/pda/pages/ItemsPage.java index f5a469e5d..5174b32ce 100644 --- a/src/main/java/techreborn/pda/pages/ItemsPage.java +++ b/src/main/java/techreborn/pda/pages/ItemsPage.java @@ -2,6 +2,8 @@ package techreborn.pda.pages; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiButton; +import net.minecraft.client.renderer.entity.RenderItem; +import net.minecraft.client.renderer.texture.TextureManager; import net.minecraft.item.ItemStack; import techreborn.init.ModItems; import techreborn.pda.PageCollection; @@ -29,9 +31,8 @@ public class ItemsPage extends TitledPage{ if (page.getReferenceName() != null && page.getReferenceName().contains(PAGE)){ if (indexName==null && page instanceof CraftingInfoPage) indexName = ttl(((CraftingInfoPage)page).result.getUnlocalizedName()+".name"); else if (indexName==null) indexName = page.getReferenceName(); - int colour = 77777777; - - buttonList.add(new GuiButtonTextOnly(999, getXMin()+5+collum*81, getYMin()+20+(row*7), 82, 7, indexName, page.getReferenceName(), 6666666)); + int colour = 77777777; + buttonList.add(new GuiButtonTextOnly(999, getXMin()+20+collum*120, getYMin()+20+(row*7), 82, 7, indexName, page.getReferenceName(), 6666666)); row++; if (row > 21){ row = 0; diff --git a/src/main/java/techreborn/pda/util/GuiButtonTextOnly.java b/src/main/java/techreborn/pda/util/GuiButtonTextOnly.java index ade8a668e..19bf814d4 100644 --- a/src/main/java/techreborn/pda/util/GuiButtonTextOnly.java +++ b/src/main/java/techreborn/pda/util/GuiButtonTextOnly.java @@ -1,5 +1,7 @@ package techreborn.pda.util; +import java.awt.Color; + import org.lwjgl.opengl.GL11; import net.minecraft.client.Minecraft; @@ -51,7 +53,7 @@ public class GuiButtonTextOnly extends GuiButton{ } GL11.glPushMatrix(); GL11.glScalef(0.7F, 0.7F, 1); - fontrenderer.drawString(trimmedDisplayString, (int)(xPosition*1.45), (int)((yPosition + (height - 8) / 2)*1.45), textColour); + fontrenderer.drawString(trimmedDisplayString, (int)(xPosition*1.45), (int)((yPosition + (height - 8) / 2)*1.45), Color.WHITE.getRGB()); GL11.glPopMatrix(); } } diff --git a/src/main/resources/assets/techreborn/textures/gui/pda.png b/src/main/resources/assets/techreborn/textures/gui/pda1.png similarity index 100% rename from src/main/resources/assets/techreborn/textures/gui/pda.png rename to src/main/resources/assets/techreborn/textures/gui/pda1.png