aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTabButton.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2020-12-30 14:12:27 +0900
committersyeyoung <cyong06@naver.com>2020-12-30 14:12:27 +0900
commit876fdf88c580c51dc794188c71e12898e6616dd8 (patch)
treebf25e93f6f95507fd90aacc133f0fd8be801634a /src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTabButton.java
parent00c92d34b5373441f798da15341d5606693be684 (diff)
downloadSkyblock-Dungeons-Guide-876fdf88c580c51dc794188c71e12898e6616dd8.tar.gz
Skyblock-Dungeons-Guide-876fdf88c580c51dc794188c71e12898e6616dd8.tar.bz2
Skyblock-Dungeons-Guide-876fdf88c580c51dc794188c71e12898e6616dd8.zip
use method, instead of field.
using field direct is baaaaaad
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTabButton.java')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTabButton.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTabButton.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTabButton.java
index c21c1ff5..799c68a9 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTabButton.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTabButton.java
@@ -42,12 +42,12 @@ public class MTabButton extends MPanel {
bg = hover;
}
if (bg != null)
- Gui.drawRect(0,0,bounds.width, bounds.height, bg.getRGB());
+ Gui.drawRect(0,0,getBounds().width, getBounds().height, bg.getRGB());
FontRenderer renderer = Minecraft.getMinecraft().fontRendererObj;
int width = renderer.getStringWidth(text);
- int x = (bounds.width - width) / 2;
- int y = (bounds.height - renderer.FONT_HEIGHT) / 2;
+ int x = (getBounds().width - width) / 2;
+ int y = (getBounds().height - renderer.FONT_HEIGHT) / 2;
renderer.drawString(text, x,y, foreground.getRGB());
}