Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
722 B · 30 lines
C
at main
12345678910111213141516171819202122232425262728293031#pragma once#include "GuiComponent.h"using namespace std;
class Button : public GuiComponent{protected: int w; int h;public: int x, y; wstring msg; int id; bool active; bool visible;
Button(int id, int x, int y, const wstring& msg); Button(int id, int x, int y, int w, int h, const wstring& msg); void init(int id, int x, int y, int w, int h, const wstring& msg); // 4J - addedprotected: virtual int getYImage(bool hovered);public: virtual void render(Minecraft *minecraft, int xm, int ym);
protected: virtual void renderBg(Minecraft *minecraft, int xm, int ym);public: virtual void released(int mx, int my); virtual bool clicked(Minecraft *minecraft, int mx, int my);};