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

Method UpdateHitDirectoryDropdown

Source/DrumPlayer.cpp:162–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void DrumPlayer::DrumHit::UpdateHitDirectoryDropdown()
163{
164 mHitCategoryDropdown->Clear();
165 for (auto dir : sHitDirectories)
166 mHitCategoryDropdown->AddLabel(dir, mHitCategoryDropdown->GetNumValues());
167 mHitCategoryIndex = -1;
168 for (int i = 0; i < mHitCategoryDropdown->GetNumValues(); ++i)
169 {
170 if (mHitCategory == mHitCategoryDropdown->GetLabel(i))
171 mHitCategoryIndex = i;
172 }
173}
174
175void DrumPlayer::Poll()
176{

Callers 2

SetUpNewDrumPlayerMethod · 0.80
LoadStateMethod · 0.80

Calls 4

ClearMethod · 0.45
AddLabelMethod · 0.45
GetNumValuesMethod · 0.45
GetLabelMethod · 0.45

Tested by

no test coverage detected