mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 10:43:39 +00:00
28 lines
788 B
C++
28 lines
788 B
C++
#include "BeaconCancelButton.h"
|
|
|
|
#include <string>
|
|
|
|
#include "BeaconScreen.h"
|
|
#include "minecraft/client/gui/inventory/AbstractBeaconButton.h"
|
|
#include "minecraft/locale/Language.h"
|
|
|
|
// 4jcraft: referenced from MCP 8.11 (JE 1.6.4)
|
|
#ifdef ENABLE_JAVA_GUIS
|
|
extern ResourceLocation GUI_BEACON_LOCATION;
|
|
#endif
|
|
|
|
BeaconCancelButton::BeaconCancelButton(BeaconScreen* screen, int id, int x,
|
|
int y)
|
|
: AbstractBeaconButton(id, x, y) {
|
|
this->screen = screen;
|
|
#ifdef ENABLE_JAVA_GUIS
|
|
this->iconRes = &GUI_BEACON_LOCATION;
|
|
#endif
|
|
this->iconU = 112;
|
|
this->iconV = 220;
|
|
}
|
|
|
|
void BeaconCancelButton::renderTooltip(int xm, int ym) {
|
|
screen->renderTooltip(Language::getInstance()->getElement("gui.cancel"),
|
|
xm, ym);
|
|
} |