mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
34 lines
572 B
C++
34 lines
572 B
C++
#pragma once
|
|
#include <stdint.h>
|
|
|
|
#include <string>
|
|
|
|
#include "minecraft/client/gui/GuiComponent.h"
|
|
|
|
class Achievement;
|
|
class ItemRenderer;
|
|
class Minecraft;
|
|
|
|
class AchievementPopup : public GuiComponent {
|
|
private:
|
|
Minecraft* mc;
|
|
int width, height;
|
|
|
|
std::string title;
|
|
std::string desc;
|
|
Achievement* ach;
|
|
int64_t startTime;
|
|
ItemRenderer* ir;
|
|
bool isHelper;
|
|
|
|
public:
|
|
AchievementPopup(Minecraft* mc);
|
|
void popup(Achievement* ach);
|
|
void permanent(Achievement* ach);
|
|
|
|
private:
|
|
void prepareWindow();
|
|
|
|
public:
|
|
void render();
|
|
}; |