feat(jui): add beacon screen

This commit is contained in:
Sally Knight
2026-03-29 20:16:56 +03:00
committed by Tropical
parent 18dd2ed2ca
commit 1ab985805a
18 changed files with 527 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
#include "../../Platform/stdafx.h"
#include "BeaconCancelButton.h"
#include "Screens/BeaconScreen.h"
#include "../../../Minecraft.World/Headers/net.minecraft.locale.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(L"gui.cancel"),
xm, ym);
}