bsnes-libretro/hiro/core/message-window.cpp
byuu 903d1e4012 v107.8
* GB: integrated SameBoy v0.12.1 by Lior Halphon
* SFC: added HG51B169 (Cx4) math tables into bsnes binary
2019-07-17 21:11:46 +09:00

43 lines
975 B
C++
Executable File

#if defined(Hiro_MessageWindow)
MessageWindow::MessageWindow(const string& text) {
state.text = text;
}
auto MessageWindow::error(Buttons buttons) -> Response {
state.buttons = buttons;
return pMessageWindow::error(state);
}
auto MessageWindow::information(Buttons buttons) -> Response {
state.buttons = buttons;
return pMessageWindow::information(state);
}
auto MessageWindow::question(Buttons buttons) -> Response {
state.buttons = buttons;
return pMessageWindow::question(state);
}
auto MessageWindow::setParent(shared_pointer<mWindow> parent) -> type& {
state.parent = parent;
return *this;
}
auto MessageWindow::setText(const string& text) -> type& {
state.text = text;
return *this;
}
auto MessageWindow::setTitle(const string& title) -> type& {
state.title = title;
return *this;
}
auto MessageWindow::warning(MessageWindow::Buttons buttons) -> Response {
state.buttons = buttons;
return pMessageWindow::warning(state);
}
#endif