mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 14:23:43 +00:00
24 lines
572 B
C++
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;
|
|
}; |