mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-12 16:37:45 +00:00
* Update build script * Update build script to import fix for shadow in dev and sources artifacts * Update fixed build script to shadow csv dependency in dev jar as well * Moved jitpack * Move new files
33 lines
684 B
Java
33 lines
684 B
Java
package codechicken.nei;
|
|
|
|
import static codechicken.lib.gui.GuiDraw.drawString;
|
|
import static codechicken.lib.gui.GuiDraw.drawStringC;
|
|
|
|
public class Label extends Widget
|
|
{
|
|
final boolean centered;
|
|
final int colour;
|
|
public String text;
|
|
|
|
public Label(String s, boolean center, int color)
|
|
{
|
|
text = s;
|
|
centered = center;
|
|
colour = color;
|
|
}
|
|
|
|
public Label(String s, boolean center)
|
|
{
|
|
this(s, center, 0xFFFFFFFF);
|
|
}
|
|
|
|
@Override
|
|
public void draw(int mousex, int mousey)
|
|
{
|
|
if(centered)
|
|
drawStringC(text, x, y, colour);
|
|
else
|
|
drawString(text, x, y, colour);
|
|
}
|
|
}
|