command palette: change instrument menu: better naming
This commit is contained in:
parent
163d1b2153
commit
a49581757d
|
|
@ -152,7 +152,7 @@ void FurnaceGUI::drawPalette() {
|
||||||
bool current=(i==curPaletteChoice);
|
bool current=(i==curPaletteChoice);
|
||||||
int id=paletteSearchResults[i];
|
int id=paletteSearchResults[i];
|
||||||
|
|
||||||
const char* s="???";
|
String s="???";
|
||||||
switch (curPaletteType) {
|
switch (curPaletteType) {
|
||||||
case CMDPAL_TYPE_MAIN:
|
case CMDPAL_TYPE_MAIN:
|
||||||
s=guiActions[id].friendlyName;
|
s=guiActions[id].friendlyName;
|
||||||
|
|
@ -165,7 +165,7 @@ void FurnaceGUI::drawPalette() {
|
||||||
if (id==0) {
|
if (id==0) {
|
||||||
s="- None -";
|
s="- None -";
|
||||||
} else {
|
} else {
|
||||||
s=e->song.ins[id-1]->name.c_str();
|
s=fmt::sprintf("%02d: %s", id-1, e->song.ins[id-1]->name.c_str());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CMDPAL_TYPE_SAMPLES:
|
case CMDPAL_TYPE_SAMPLES:
|
||||||
|
|
@ -179,7 +179,7 @@ void FurnaceGUI::drawPalette() {
|
||||||
break;
|
break;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (ImGui::Selectable(s,current)) {
|
if (ImGui::Selectable(s.c_str(),current)) {
|
||||||
curPaletteChoice=i;
|
curPaletteChoice=i;
|
||||||
accepted=true;
|
accepted=true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue