a menu
This commit is contained in:
parent
b5e500d85d
commit
e475b29ec3
5 changed files with 31 additions and 2 deletions
|
|
@ -241,7 +241,27 @@ void FurnaceGUI::drawExportVGM(bool onWindow) {
|
|||
|
||||
void FurnaceGUI::drawExportROM(bool onWindow) {
|
||||
exitDisabledTimer=1;
|
||||
|
||||
|
||||
const DivROMExportDef* def=e->getROMExportDef(romTarget);
|
||||
|
||||
ImGui::Text("select target:");
|
||||
if (ImGui::BeginCombo("##ROMTarget",def==NULL?"<select one>":def->name)) {
|
||||
for (int i=0; i<DIV_ROM_MAX; i++) {
|
||||
const DivROMExportDef* newDef=e->getROMExportDef((DivROMExportOptions)i);
|
||||
if (newDef!=NULL) {
|
||||
if (ImGui::Selectable(newDef->name)) {
|
||||
romTarget=(DivROMExportOptions)i;
|
||||
}
|
||||
}
|
||||
}
|
||||
ImGui::EndCombo();
|
||||
}
|
||||
|
||||
if (def!=NULL) {
|
||||
ImGui::Text("by %s",def->author);
|
||||
|
||||
ImGui::TextWrapped("%s",def->description);
|
||||
}
|
||||
|
||||
if (onWindow) {
|
||||
ImGui::Separator();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue