GUI: why is the input latch lowercase

This commit is contained in:
tildearrow 2024-01-20 12:41:07 -05:00
parent c2d91a06d3
commit e19cd39e96

View file

@ -2760,7 +2760,7 @@ void FurnaceGUI::editOptions(bool topMenu) {
} else if (latchIns==-1) { } else if (latchIns==-1) {
strcpy(id,"..##LatchIns"); strcpy(id,"..##LatchIns");
} else { } else {
snprintf(id,63,"%.2x##LatchIns",latchIns&0xff); snprintf(id,63,"%.2X##LatchIns",latchIns&0xff);
} }
if (ImGui::Selectable(id,latchTarget==1,ImGuiSelectableFlags_DontClosePopups)) { if (ImGui::Selectable(id,latchTarget==1,ImGuiSelectableFlags_DontClosePopups)) {
latchTarget=1; latchTarget=1;
@ -2780,7 +2780,7 @@ void FurnaceGUI::editOptions(bool topMenu) {
if (latchVol==-1) { if (latchVol==-1) {
strcpy(id,"..##LatchVol"); strcpy(id,"..##LatchVol");
} else { } else {
snprintf(id,63,"%.2x##LatchVol",latchVol&0xff); snprintf(id,63,"%.2X##LatchVol",latchVol&0xff);
} }
if (ImGui::Selectable(id,latchTarget==2,ImGuiSelectableFlags_DontClosePopups)) { if (ImGui::Selectable(id,latchTarget==2,ImGuiSelectableFlags_DontClosePopups)) {
latchTarget=2; latchTarget=2;
@ -2796,7 +2796,7 @@ void FurnaceGUI::editOptions(bool topMenu) {
ImGui::PushStyleColor(ImGuiCol_Text,uiColors[GUI_COLOR_PATTERN_INACTIVE]); ImGui::PushStyleColor(ImGuiCol_Text,uiColors[GUI_COLOR_PATTERN_INACTIVE]);
} else { } else {
const unsigned char data=latchEffect; const unsigned char data=latchEffect;
snprintf(id,63,"%.2x##LatchFX",data); snprintf(id,63,"%.2X##LatchFX",data);
ImGui::PushStyleColor(ImGuiCol_Text,uiColors[fxColors[data]]); ImGui::PushStyleColor(ImGuiCol_Text,uiColors[fxColors[data]]);
} }
@ -2811,7 +2811,7 @@ void FurnaceGUI::editOptions(bool topMenu) {
if (latchEffectVal==-1) { if (latchEffectVal==-1) {
strcpy(id,"..##LatchFXV"); strcpy(id,"..##LatchFXV");
} else { } else {
snprintf(id,63,"%.2x##LatchFXV",latchEffectVal&0xff); snprintf(id,63,"%.2X##LatchFXV",latchEffectVal&0xff);
} }
if (ImGui::Selectable(id,latchTarget==4,ImGuiSelectableFlags_DontClosePopups)) { if (ImGui::Selectable(id,latchTarget==4,ImGuiSelectableFlags_DontClosePopups)) {
latchTarget=4; latchTarget=4;