color change a format
This commit is contained in:
parent
e8e78c1099
commit
8233f1ec8f
3 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Loading…
Reference in a new issue