iw4x-client/src/Components/Modules/Toast.hpp
2016-07-11 17:14:58 +02:00

30 lines
532 B
C++

namespace Components
{
class Toast : public Component
{
public:
Toast();
~Toast();
const char* GetName() { return "Toast"; };
static void Show(std::string image, std::string title, std::string description, int length);
private:
class UIToast
{
public:
std::string Image;
std::string Title;
std::string Desc;
int Length;
int Start;
};
static void Handler();
static void Draw(UIToast* toast);
static std::queue<UIToast> Queue;
static std::mutex Mutex;
};
}