mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 15:15:38 +00:00
28 lines
589 B
C++
28 lines
589 B
C++
#pragma once
|
|
|
|
#include "GuiComponent.h"
|
|
#include "components/NinePatchComponent.h"
|
|
#include "components/ComponentGrid.h"
|
|
#include "Window.h"
|
|
#include "Log.h"
|
|
|
|
|
|
|
|
class GuiInfoPopup : public GuiComponent, public Window::InfoPopup
|
|
{
|
|
public:
|
|
GuiInfoPopup(Window* window, std::string message, int duration);
|
|
~GuiInfoPopup();
|
|
void render(const Transform4x4f& parentTrans) override;
|
|
inline void stop() { running = false; };
|
|
private:
|
|
std::string mMessage;
|
|
int mDuration;
|
|
int alpha;
|
|
bool updateState();
|
|
int mStartTime;
|
|
ComponentGrid* mGrid;
|
|
NinePatchComponent* mFrame;
|
|
bool running;
|
|
};
|