mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
Fixed scripted GUI button text alignments.
This commit is contained in:
1 parent
cacb4ebf85
commit
bcfd44d8fe
2 files changed
+3
-5
No files matched your search
@@ -179,7 +179,7 @@ public class CustomGuiButton extends GuiButton implements IClickListener {
|
||||
j = 16777120;
|
||||
}
|
||||
GL11.glTranslated(0.0D, 0.0D, 0.1D);
|
||||
this.drawCenteredString(fontRenderer, this.displayString, this.xPosition + this.width / 2, this.yPosition + (this.height - 8) / 2, j);
|
||||
this.drawCenteredString(fontRenderer, this.displayString, this.width / 2, (this.height-8)/2, j);
|
||||
}
|
||||
GL11.glPopMatrix();
|
||||
|
||||
|
||||
@@ -11,19 +11,17 @@ public class ScriptGuiButton extends ScriptGuiComponent implements IButton {
|
||||
String texture;
|
||||
int textureX;
|
||||
int textureY;
|
||||
float scale;
|
||||
boolean enabled;
|
||||
float scale = 1.0F;
|
||||
boolean enabled = true;
|
||||
|
||||
public ScriptGuiButton() {
|
||||
this.height = -1;
|
||||
this.textureY = -1;
|
||||
this.scale = 1.0F;
|
||||
}
|
||||
|
||||
public ScriptGuiButton(int id, String label, int x, int y) {
|
||||
this.height = -1;
|
||||
this.textureY = -1;
|
||||
this.scale = 1.0F;
|
||||
this.setID(id);
|
||||
this.setLabel(label);
|
||||
this.setPos(x, y);
|
||||
|
||||
Reference in new issue
Block a user