diff options
| author | efefury <69400149+efefury@users.noreply.github.com> | 2023-02-06 13:54:31 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-06 14:54:31 +0100 |
| commit | fc576576b8aa18476766e166718d98a6c0fb4575 (patch) | |
| tree | 3f57cc62eac197a9bf2f1d3e179ce7332e82e018 /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java | |
| parent | 5e77a5d07faa6bfced80eef06ce34d43661fcba4 (diff) | |
| download | notenoughupdates-fc576576b8aa18476766e166718d98a6c0fb4575.tar.gz notenoughupdates-fc576576b8aa18476766e166718d98a6c0fb4575.tar.bz2 notenoughupdates-fc576576b8aa18476766e166718d98a6c0fb4575.zip | |
Align level in Basic PV page to center (#586)
Fixes https://github.com/NotEnoughUpdates/NotEnoughUpdates/issues/584
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java index 8a48dd2c..7be94f86 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java @@ -572,7 +572,7 @@ public class BasicPage extends GuiProfileViewerPage { ); } - // sb lvlL + // sb lvl int sbLevelX = guiLeft + 162; int sbLevelY = guiTop + 90; @@ -585,8 +585,8 @@ public class BasicPage extends GuiProfileViewerPage { GlStateManager.scale(1.5f, 1.5f, 1); Utils.drawItemStack(skull, 0, 0); GlStateManager.popMatrix(); - Utils.drawStringScaled(skyblockLevelColour.toString() + (int) skyblockLevel, fr, - sbLevelX - 2, sbLevelY - 15, true, 0, 1.5f + Utils.drawStringCenteredScaled(skyblockLevelColour.toString() + (int) skyblockLevel, fr, + sbLevelX + 9, sbLevelY - 12, true, 1.5f ); float progress = (float) (skyblockLevel - (long) skyblockLevel); |
