2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-09-14 05:54:09 +00:00
|
|
|
|
2019-09-22 21:52:05 +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;
|
2020-04-10 19:11:10 +00:00
|
|
|
bool x18_24_;
|
|
|
|
bool x18_25_;
|
|
|
|
bool x18_26_;
|
|
|
|
bool x18_27_;
|
|
|
|
bool x18_28_;
|
2018-12-08 05:30:43 +00:00
|
|
|
const wchar_t* x1c_msg;
|
|
|
|
|
2016-09-14 05:54:09 +00:00
|
|
|
public:
|
2020-03-26 01:25:11 +00:00
|
|
|
explicit CErrorOutputWindow(bool);
|
2019-08-09 12:45:18 +00:00
|
|
|
EMessageReturn OnMessage(const CArchitectureMessage&, CArchitectureQueue&) override;
|
|
|
|
bool GetIsContinueDraw() const override { return int(x14_state) < 2; }
|
2020-03-30 01:55:58 +00:00
|
|
|
void Draw() override;
|
2016-09-14 05:54:09 +00:00
|
|
|
};
|
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|