iw4x-client/src/Components/Modules/Toast.hpp

30 lines
503 B
C++
Raw Normal View History

2016-06-24 08:49:46 -04:00
namespace Components
{
class Toast : public Component
{
public:
Toast();
~Toast();
const char* GetName() { return "Toast"; };
static void Show(const char* image, const char* title, const char* description, int length);
private:
2016-06-30 13:38:48 -04:00
class UIToast
2016-06-24 08:49:46 -04:00
{
2016-06-30 13:38:48 -04:00
public:
2016-06-24 08:49:46 -04:00
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;
};
}