BakkesMod Programming Wiki
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

ModalWrapper : ObjectWrapper

View Implementation

void 
ShowModal() const



void 
CloseModal()



void 
SetColor(float r, float g, float b)


Parameter Type Description
r float
g float
b float

void 
SetIcon(const std::string &iconName)


Parameter Type Description
iconName const std::string &

void 
SetBody(const std::string &bodyHtml)


Parameter Type Description
bodyHtml const std::string &

void 
AddButton(const std::string &button_text, bool is_cancel_button, std::function< void()> click_callback=nullptr)


Parameter Type Description
button_text const std::string &
is_cancel_button bool
click_callback std::function< void()>