| 160 | } |
| 161 | |
| 162 | void 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 | |
| 175 | void DrumPlayer::Poll() |
| 176 | { |
no test coverage detected