GUI: add "Create instrument from sample" option
This commit is contained in:
parent
3b0be2c42a
commit
dae7a9a099
5 changed files with 28 additions and 1 deletions
|
|
@ -29,7 +29,6 @@
|
|||
#include "util.h"
|
||||
|
||||
// TODO:
|
||||
// - add "create instrument using this sample" option
|
||||
// - .dmc loading
|
||||
void FurnaceGUI::drawSampleEdit() {
|
||||
if (nextWindow==GUI_WINDOW_SAMPLE_EDIT) {
|
||||
|
|
@ -528,6 +527,13 @@ void FurnaceGUI::drawSampleEdit() {
|
|||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Stop sample preview");
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button(ICON_FA_UPLOAD "##MakeIns")) {
|
||||
doAction(GUI_ACTION_SAMPLE_MAKE_INS);
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Create instrument from sample");
|
||||
}
|
||||
|
||||
ImGui::SameLine();
|
||||
double zoomPercent=100.0/sampleZoom;
|
||||
|
|
@ -1040,6 +1046,13 @@ void FurnaceGUI::drawSampleEdit() {
|
|||
ImGui::SetTooltip("Stop sample preview");
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button(ICON_FA_UPLOAD "##MakeIns")) {
|
||||
doAction(GUI_ACTION_SAMPLE_MAKE_INS);
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Create instrument from sample");
|
||||
}
|
||||
ImGui::SameLine();
|
||||
double zoomPercent=100.0/sampleZoom;
|
||||
ImGui::Text("Zoom");
|
||||
ImGui::SameLine();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue