mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-24 04:22:55 +00:00
fix(jui): put button render method behind ifdef
Fixes build error if using iggy instead of jui
This commit is contained in:
parent
0ce9597e2e
commit
678a186c46
|
|
@ -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) {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue