mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-17 15:48:08 +00:00
feat(jui): add beacon screen
This commit is contained in:
25
Minecraft.Client/UI/BeaconConfirmButton.cpp
Normal file
25
Minecraft.Client/UI/BeaconConfirmButton.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "../../Platform/stdafx.h"
|
||||
#include "BeaconConfirmButton.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
|
||||
|
||||
BeaconConfirmButton::BeaconConfirmButton(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 = 90;
|
||||
this->iconV = 220;
|
||||
}
|
||||
|
||||
void BeaconConfirmButton::renderTooltip(int xm, int ym) {
|
||||
screen->renderTooltip(Language::getInstance()->getElement(L"gui.done"), xm,
|
||||
ym);
|
||||
}
|
||||
Reference in New Issue
Block a user