aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/xmrvizzy/skyblocker/skyblock
diff options
context:
space:
mode:
authorJulienraptor01 <julienraptor01@gmail.com>2023-03-18 09:07:35 +0100
committerGitHub <noreply@github.com>2023-03-18 09:07:35 +0100
commitb6c8fee9891d39c8d2af690757852a123c8ad4c2 (patch)
treee203e0dd40aecdf90ca659660902035805b73f51 /src/main/java/me/xmrvizzy/skyblocker/skyblock
parent8d40101b685c3cf9380ca6e2606b86dab46cdd4b (diff)
parentf10097bb85de0c4c649ff04a2f6e742188e5d69b (diff)
downloadSkyblocker-b6c8fee9891d39c8d2af690757852a123c8ad4c2.tar.gz
Skyblocker-b6c8fee9891d39c8d2af690757852a123c8ad4c2.tar.bz2
Skyblocker-b6c8fee9891d39c8d2af690757852a123c8ad4c2.zip
Merge pull request #4 from AzureAaron/1.19.3
Small QuickNav Fixes
Diffstat (limited to 'src/main/java/me/xmrvizzy/skyblocker/skyblock')
-rw-r--r--src/main/java/me/xmrvizzy/skyblocker/skyblock/quicknav/QuickNavButton.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/main/java/me/xmrvizzy/skyblocker/skyblock/quicknav/QuickNavButton.java b/src/main/java/me/xmrvizzy/skyblocker/skyblock/quicknav/QuickNavButton.java
index e1ac3c5f..f35e60b2 100644
--- a/src/main/java/me/xmrvizzy/skyblocker/skyblock/quicknav/QuickNavButton.java
+++ b/src/main/java/me/xmrvizzy/skyblocker/skyblock/quicknav/QuickNavButton.java
@@ -69,17 +69,13 @@ public class QuickNavButton extends ClickableWidget {
RenderSystem.disableDepthTest();
// render button background
if (!this.toggled) {
- //Move buttons 1 pixel up if they aren't selected
- matrices.push();
- matrices.translate(0f, -1f, 0f);
if (this.index >= 6)
// this.drawTexture(matrices, this.x, this.y + 4, this.u, this.v + 4, this.width, this.height - 4);
this.drawTexture(matrices, this.getX(), this.getY() + 4, this.u, this.v + 4, this.width, this.height - 4);
else
// this.drawTexture(matrices, this.x, this.y, this.u, this.v, this.width, this.height - 4);
- this.drawTexture(matrices, this.getX(), this.getY(), this.u, this.v, this.width, this.height - 4);
+ this.drawTexture(matrices, this.getX(), this.getY() - 2, this.u, this.v, this.width, this.height - 4);
// } else this.drawTexture(matrices, this.x, this.y, this.u, this.v, this.width, this.height);
- matrices.pop();
} else {
matrices.push();
//Move the top buttons 2 pixels up if they're selected
@@ -91,17 +87,17 @@ public class QuickNavButton extends ClickableWidget {
if (!this.toggled) {
if (this.index >= 6)
// CLIENT.getItemRenderer().renderInGui(this.icon,this.x + 6, this.y + 6);
- CLIENT.getItemRenderer().renderInGui(this.icon,this.getX() + 5, this.getY() + 5);
+ CLIENT.getItemRenderer().renderInGui(this.icon,this.getX() + 5, this.getY() + 6);
else
// CLIENT.getItemRenderer().renderInGui(this.icon,this.x + 6, this.y + 9);
- CLIENT.getItemRenderer().renderInGui(this.icon,this.getX() + 5, this.getY() + 8);
+ CLIENT.getItemRenderer().renderInGui(this.icon,this.getX() + 5, this.getY() + 7);
} else {
if (this.index >= 6)
// CLIENT.getItemRenderer().renderInGui(this.icon,this.x + 6, this.y + 9);
- CLIENT.getItemRenderer().renderInGui(this.icon,this.getX() + 5, this.getY() + 8);
+ CLIENT.getItemRenderer().renderInGui(this.icon,this.getX() + 5, this.getY() + 9);
else
// CLIENT.getItemRenderer().renderInGui(this.icon,this.x + 6, this.y + 6);
- CLIENT.getItemRenderer().renderInGui(this.icon,this.getX() + 5, this.getY() + 5);
+ CLIENT.getItemRenderer().renderInGui(this.icon,this.getX() + 5, this.getY() + 6);
}
RenderSystem.enableDepthTest();
}