69 void Show(
const char* title,
const char* text,
bool allow_close,
const char* button1_text,
const char* button2_text);
Central state/object manager and communications hub.
Global forward declarations.
Quake-style console variable, defined in RoR.cfg or crated via Console UI and scripts.
bool * m_close_handle
If nullptr, close button is hidden. Otherwise visible.
void DrawButton(MessageBoxButton const &button)
void Show(MessageBoxConfig const &cfg)
MsgType
Global gameplay message loop, see struct Message in GameContext.h.
float mbc_content_width
Parameter to ImGui::SetContentWidth() - hard limit on content size.
bool * mbc_close_handle
External close handle - not required for mbc_allow_close.
std::vector< MessageBoxButton > mbc_buttons
bool mbc_allow_close
Show close handle even if dbc_close_handle isn't set.
CVar * mbc_always_ask_conf
If set, displays classic checkbox "[x] Always ask".