metaforce/Runtime/GuiSys/CErrorOutputWindow.hpp

29 lines
601 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 "Runtime/CIOWin.hpp"
#include "Runtime/RetroTypes.hpp"
2016-09-14 05:54:09 +00:00
2021-04-10 08:42:06 +00:00
namespace metaforce {
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;
bool x18_24_;
bool x18_25_;
bool x18_26_;
bool x18_27_;
bool x18_28_;
const char16_t* x1c_msg;
2018-12-08 05:30:43 +00:00
2016-09-14 05:54:09 +00:00
public:
explicit CErrorOutputWindow(bool);
EMessageReturn OnMessage(const CArchitectureMessage&, CArchitectureQueue&) override;
bool GetIsContinueDraw() const override { return int(x14_state) < 2; }
void Draw() override;
2016-09-14 05:54:09 +00:00
};
2021-04-10 08:42:06 +00:00
} // namespace metaforce