mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-07 23:28:25 +00:00
chore: format Minecraft.Client
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
#pragma once
|
||||
#include "GuiComponent.h"
|
||||
|
||||
|
||||
class Button : public GuiComponent
|
||||
{
|
||||
class Button : public GuiComponent {
|
||||
protected:
|
||||
int w;
|
||||
int w;
|
||||
int h;
|
||||
|
||||
public:
|
||||
int x, y;
|
||||
int x, y;
|
||||
std::wstring msg;
|
||||
int id;
|
||||
bool active;
|
||||
@@ -16,15 +15,18 @@ public:
|
||||
|
||||
Button(int id, int x, int y, const std::wstring& msg);
|
||||
Button(int id, int x, int y, int w, int h, const std::wstring& msg);
|
||||
void init(int id, int x, int y, int w, int h, const std::wstring& msg); // 4J - added
|
||||
void init(int id, int x, int y, int w, int h,
|
||||
const std::wstring& msg); // 4J - added
|
||||
protected:
|
||||
virtual int getYImage(bool hovered);
|
||||
virtual int getYImage(bool hovered);
|
||||
|
||||
public:
|
||||
virtual void render(Minecraft *minecraft, int xm, int ym);
|
||||
virtual void render(Minecraft* minecraft, int xm, int ym);
|
||||
|
||||
protected:
|
||||
virtual void renderBg(Minecraft *minecraft, int xm, int ym);
|
||||
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);
|
||||
virtual void released(int mx, int my);
|
||||
virtual bool clicked(Minecraft* minecraft, int mx, int my);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user