mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-27 22:04:39 +00:00
fix(jui): put button render method behind ifdef
Fixes build error if using iggy instead of jui
This commit is contained in:
@@ -38,6 +38,7 @@ int Button::getYImage(bool hovered) {
|
||||
}
|
||||
|
||||
void Button::render(Minecraft* minecraft, int xm, int ym) {
|
||||
#ifdef ENABLE_JAVA_GUIS
|
||||
if (!visible) return;
|
||||
|
||||
Font* font = minecraft->font;
|
||||
@@ -64,6 +65,7 @@ void Button::render(Minecraft* minecraft, int xm, int ym) {
|
||||
drawCenteredString(font, msg, x + w / 2, y + (h - 8) / 2, 0xe0e0e0);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void Button::renderBg(Minecraft* minecraft, int xm, int ym) {}
|
||||
|
||||
Reference in New Issue
Block a user