2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2016-09-13 22:54:09 -07:00
|
|
|
|
2019-09-22 14:52:05 -07:00
|
|
|
#include "Runtime/CIOWin.hpp"
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
2016-09-13 22:54:09 -07:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2016-09-13 22:54:09 -07:00
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
class CErrorOutputWindow : public CIOWin {
|
2016-09-13 22:54:09 -07:00
|
|
|
public:
|
2018-12-07 21:30:43 -08:00
|
|
|
enum class State { Zero, One, Two };
|
|
|
|
|
2016-09-13 22:54:09 -07:00
|
|
|
private:
|
2018-12-07 21:30:43 -08:00
|
|
|
State x14_state = State::Zero;
|
2020-04-10 12:11:10 -07:00
|
|
|
bool x18_24_;
|
|
|
|
bool x18_25_;
|
|
|
|
bool x18_26_;
|
|
|
|
bool x18_27_;
|
|
|
|
bool x18_28_;
|
2021-06-30 11:20:45 -07:00
|
|
|
const char16_t* x1c_msg;
|
2018-12-07 21:30:43 -08:00
|
|
|
|
2016-09-13 22:54:09 -07:00
|
|
|
public:
|
2020-03-25 18:25:11 -07:00
|
|
|
explicit CErrorOutputWindow(bool);
|
2019-08-09 05:45:18 -07:00
|
|
|
EMessageReturn OnMessage(const CArchitectureMessage&, CArchitectureQueue&) override;
|
|
|
|
bool GetIsContinueDraw() const override { return int(x14_state) < 2; }
|
2020-03-29 18:55:58 -07:00
|
|
|
void Draw() override;
|
2016-09-13 22:54:09 -07:00
|
|
|
};
|
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|