2020-10-02 13:43:52 +00:00
|
|
|
#ifndef ENGINE_WARNING_H
|
|
|
|
#define ENGINE_WARNING_H
|
|
|
|
|
|
|
|
struct SWarning
|
|
|
|
{
|
2023-10-19 19:01:00 +00:00
|
|
|
SWarning() {}
|
|
|
|
SWarning(const char *pMsg)
|
2020-10-02 13:43:52 +00:00
|
|
|
{
|
2023-10-19 19:01:00 +00:00
|
|
|
str_copy(m_aWarningTitle, "");
|
|
|
|
str_copy(m_aWarningMsg, pMsg);
|
2020-10-02 13:43:52 +00:00
|
|
|
}
|
2023-10-19 19:01:00 +00:00
|
|
|
SWarning(const char *pTitle, const char *pMsg)
|
|
|
|
{
|
|
|
|
str_copy(m_aWarningTitle, pTitle);
|
|
|
|
str_copy(m_aWarningMsg, pMsg);
|
|
|
|
}
|
|
|
|
char m_aWarningTitle[128];
|
2020-11-05 19:38:37 +00:00
|
|
|
char m_aWarningMsg[256];
|
2023-10-19 19:01:00 +00:00
|
|
|
bool m_WasShown = false;
|
|
|
|
bool m_AutoHide = true;
|
2020-10-02 13:43:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|