aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.Client/Gui.h')
-rw-r--r--Minecraft.Client/Gui.h38
1 files changed, 21 insertions, 17 deletions
diff --git a/Minecraft.Client/Gui.h b/Minecraft.Client/Gui.h
index 41762016..9352308f 100644
--- a/Minecraft.Client/Gui.h
+++ b/Minecraft.Client/Gui.h
@@ -1,6 +1,9 @@
#pragma once
+#include "ResourceLocation.h"
#include "GuiComponent.h"
#include "GuiMessage.h"
+#include "ResourceLocation.h"
+
class Random;
class Minecraft;
class ItemRenderer;
@@ -8,21 +11,22 @@ class ItemRenderer;
class Gui : public GuiComponent
{
private:
+ static ResourceLocation PUMPKIN_BLUR_LOCATION;
// 4J-PB - this doesn't account for the safe zone, and the indent applied to messages
//static const int MAX_MESSAGE_WIDTH = 320;
static const int m_iMaxMessageWidth = 280;
- static ItemRenderer *itemRenderer;
- vector<GuiMessage> guiMessages[XUSER_MAX_COUNT];
- Random *random;
+ static ItemRenderer *itemRenderer;
+ vector<GuiMessage> guiMessages[XUSER_MAX_COUNT];
+ Random *random;
- Minecraft *minecraft;
+ Minecraft *minecraft;
public:
wstring selectedName;
private:
int tickCount;
- wstring overlayMessageString;
- int overlayMessageTime;
- bool animateOverlayMessageColor;
+ wstring overlayMessageString;
+ int overlayMessageTime;
+ bool animateOverlayMessageColor;
// 4J Added
float lastTickA;
@@ -33,26 +37,26 @@ public:
float progress;
-// private DecimalFormat df = new DecimalFormat("##.00");
+ // private DecimalFormat df = new DecimalFormat("##.00");
public:
Gui(Minecraft *minecraft);
- void render(float a, bool mouseFree, int xMouse, int yMouse);
- float tbr;
+ void render(float a, bool mouseFree, int xMouse, int yMouse);
+ float tbr;
private:
//void renderBossHealth(void);
void renderPumpkin(int w, int h);
- void renderVignette(float br, int w, int h);
- void renderTp(float br, int w, int h);
- void renderSlot(int slot, int x, int y, float a);
+ void renderVignette(float br, int w, int h);
+ void renderTp(float br, int w, int h);
+ void renderSlot(int slot, int x, int y, float a);
public:
void tick();
- void clearMessages(int iPad=-1);
- void addMessage(const wstring& string, int iPad,bool bIsDeathMessage=false);
- void setNowPlaying(const wstring& string);
- void displayClientMessage(int messageId, int iPad);
+ void clearMessages(int iPad=-1);
+ void addMessage(const wstring& string, int iPad,bool bIsDeathMessage=false);
+ void setNowPlaying(const wstring& string);
+ void displayClientMessage(int messageId, int iPad);
// 4J Added
DWORD getMessagesCount(int iPad) { return (int)guiMessages[iPad].size(); }