2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
#include "GuiComponent.h"
|
|
|
|
|
class Achievement;
|
|
|
|
|
class ItemRenderer;
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
class AchievementPopup : public GuiComponent
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
Minecraft *mc;
|
|
|
|
|
int width, height;
|
|
|
|
|
|
|
|
|
|
wstring title;
|
|
|
|
|
wstring desc;
|
|
|
|
|
Achievement *ach;
|
2026-03-02 17:39:35 +07:00
|
|
|
__int64 startTime;
|
2026-03-01 12:16:08 +08:00
|
|
|
ItemRenderer *ir;
|
|
|
|
|
bool isHelper;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
AchievementPopup(Minecraft *mc);
|
|
|
|
|
void popup(Achievement *ach);
|
|
|
|
|
void permanent(Achievement *ach);
|
|
|
|
|
private:
|
|
|
|
|
void prepareWindow();
|
|
|
|
|
public:
|
|
|
|
|
void render();
|
|
|
|
|
};
|