MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / DisplayDialog

Method DisplayDialog

Goldleaf/source/ui/ui_MainApplication.cpp:201–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199 }
200
201 int MainApplication::DisplayDialog(const std::string &title, const std::string &content, const std::vector<std::string> &opts, const bool use_last_opt_as_cancel, pu::sdl2::TextureHandle::Ref icon) {
202 return this->CreateShowDialog(title, content, opts, use_last_opt_as_cancel, icon, [&](pu::ui::Dialog::Ref &dialog) {
203 dialog->SetTitleColor(g_Settings.GetColorScheme().dialog_title);
204 dialog->SetContentColor(g_Settings.GetColorScheme().dialog_title);
205 dialog->SetOptionColor(g_Settings.GetColorScheme().dialog_opt);
206 dialog->SetDialogColor(g_Settings.GetColorScheme().dialog);
207 dialog->SetOverColor(g_Settings.GetColorScheme().dialog_over);
208 });
209 }
210
211 void MainApplication::UpdateValues() {
212 if(!g_WelcomeShown) {

Callers 15

helpImage_OnClickMethod · 0.95
HandleUpdateMethod · 0.80
StartCopyMethod · 0.80
ShowInstallDialogPageFunction · 0.80
StartInstallMethod · 0.80
DisplayContentInfoMethod · 0.80
StartDumpMethod · 0.80
OnUsbDriveSelectedXMethod · 0.80
OnInputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected