Fix the preview in voice tab (#3142)

I forgot to add seq_voice to a line also fixed voice count and fixed the capitalization on voice

Co-authored-by: LuigiXHero <LuigiXHero@gmail.com>
This commit is contained in:
LuigiXHero 2023-08-25 10:59:16 -07:00 committed by GitHub
parent f0035e3090
commit 188ec26f5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ s8 reverbAdd = 0;
#define SEQ_COUNT_BGM_EVENT 17
#define SEQ_COUNT_INSTRUMENT 6
#define SEQ_COUNT_SFX 57
#define SEQ_COUNT_VOICE 78
#define SEQ_COUNT_VOICE 107
size_t AuthenticCountBySequenceType(SeqType type) {
switch (type) {
@ -220,7 +220,7 @@ void Draw_SfxTab(const std::string& tabId, SeqType type) {
}
ImGui::TableNextColumn();
ImGui::PushItemWidth(-FLT_MIN);
DrawPreviewButton((type == SEQ_SFX || type == SEQ_INSTRUMENT) ? defaultValue : currentValue, seqData.sfxKey, type);
DrawPreviewButton((type == SEQ_SFX || type == SEQ_VOICE || type == SEQ_INSTRUMENT) ? defaultValue : currentValue, seqData.sfxKey, type);
ImGui::SameLine();
ImGui::PushItemWidth(-FLT_MIN);
if (ImGui::Button(resetButton.c_str())) {
@ -273,7 +273,7 @@ std::string GetSequenceTypeName(SeqType type) {
case SEQ_SFX:
return "SFX";
case SEQ_VOICE:
return "VOICE";
return "Voice";
case SEQ_INSTRUMENT:
return "Instrument";
case SEQ_BGM_CUSTOM: