4jcraft/Minecraft.Client/UI/AbstractBeaconButton.h
2026-03-29 15:52:35 -05:00

24 lines
551 B
C++

#pragma once
#include "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;
};