mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-21 12:42:10 +00:00
Initial Commit
This commit is contained in:
commit
bd9d0a4eff
149 files changed
+18486
No files matched your search
@@ -0,0 +1,32 @@
|
||||
package codechicken.nei;
|
||||
|
||||
import static codechicken.lib.gui.GuiDraw.drawString;
|
||||
import static codechicken.lib.gui.GuiDraw.drawStringC;
|
||||
|
||||
public class Label extends Widget
|
||||
{
|
||||
boolean centered;
|
||||
int colour;
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user