metaforce/Runtime/GuiSys/CErrorOutputWindow.hpp

34 lines
618 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-09-14 05:54:09 +00:00
#include "CIOWin.hpp"
#include "RetroTypes.hpp"
2018-12-08 05:30:43 +00:00
namespace urde {
2016-09-14 05:54:09 +00:00
2018-12-08 05:30:43 +00:00
class CErrorOutputWindow : public CIOWin {
2016-09-14 05:54:09 +00:00
public:
2018-12-08 05:30:43 +00:00
enum class State { Zero, One, Two };
2016-09-14 05:54:09 +00:00
private:
2018-12-08 05:30:43 +00:00
State x14_state = State::Zero;
union {
struct {
bool x18_24_;
bool x18_25_;
bool x18_26_;
bool x18_27_;
bool x18_28_;
2016-09-14 05:54:09 +00:00
};
2018-12-08 05:30:43 +00:00
u16 dummy = 0;
};
const wchar_t* x1c_msg;
2016-09-14 05:54:09 +00:00
public:
2018-12-08 05:30:43 +00:00
CErrorOutputWindow(bool);
EMessageReturn OnMessage(const CArchitectureMessage&, CArchitectureQueue&);
bool GetIsContinueDraw() const { return int(x14_state) < 2; }
void Draw() const;
2016-09-14 05:54:09 +00:00
};
2018-12-08 05:30:43 +00:00
} // namespace urde