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

Method ButtonClicked

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

Source from the content-addressed store, hash-verified

102}
103
104void SaveStateLoader::ButtonClicked(ClickButton* button, double time)
105{
106 for (int i = 0; i < (int)mLoadButtons.size(); ++i)
107 {
108 if (button == mLoadButtons[i].mButton)
109 {
110 if (HasValidFile(i) && !(GetKeyModifiers() & kModifier_Shift))
111 TheSynth->LoadState(mLoadButtons[i].mFilePath);
112 else
113 mLoadButtons[i].mShouldShowSelectDialog = true;
114 }
115 }
116}
117
118void SaveStateLoader::UpdateButtonLabel(int index)
119{

Callers

nothing calls this directly

Calls 3

GetKeyModifiersFunction · 0.85
sizeMethod · 0.80
LoadStateMethod · 0.45

Tested by

no test coverage detected