MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / Show

Method Show

Source/UserPrefsEditor.cpp:104–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void UserPrefsEditor::Show()
105{
106 SetPosition(100 / TheSynth->GetUIScale() - TheSynth->GetDrawOffset().x, 250 / TheSynth->GetUIScale() - TheSynth->GetDrawOffset().y);
107
108 UpdateDropdowns({});
109 SetShowing(true);
110
111 if (TheSynth->HasFatalError())
112 {
113 mSaveButton->SetLabel("save and exit");
114 mCancelButton->SetShowing(false);
115 }
116}
117
118void UserPrefsEditor::CreatePrefsFileIfNonexistent()
119{

Callers 3

ButtonClickedMethod · 0.45
ResetLayoutMethod · 0.45
SetFatalErrorMethod · 0.45

Calls 5

GetUIScaleMethod · 0.80
GetDrawOffsetMethod · 0.80
HasFatalErrorMethod · 0.80
SetLabelMethod · 0.45
SetShowingMethod · 0.45

Tested by

no test coverage detected