4jcraft/targets/minecraft/client/gui/inventory/AbstractBeaconButton.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

24 lines
572 B
C++

#pragma once
#include "minecraft/client/gui/Button.h"
class ResourceLocation;
class AbstractBeaconButton : public Button {
protected:
bool hovered;
bool selected;
ResourceLocation* iconRes;
int iconU, iconV;
public:
AbstractBeaconButton(int id, int x, int y);
void setSelected(bool sel) { selected = sel; }
bool isSelected() const { return selected; }
bool isHovered() const { return hovered; }
virtual void renderTooltip(int xm, int ym) = 0;
protected:
virtual void renderBg(Minecraft* minecraft, int xm, int ym) override;
};