GUI: mobile chips view

This commit is contained in:
tildearrow 2022-11-29 16:09:50 -05:00
parent b41a015c4b
commit 2fdce8512a
2 changed files with 13 additions and 0 deletions

View file

@ -3764,6 +3764,11 @@ bool FurnaceGUI::loop() {
drawSampleEdit();
drawPiano();
break;
case GUI_SCENE_CHIPS:
sysManagerOpen=true;
curWindow=GUI_WINDOW_SYS_MANAGER;
drawSysManager();
break;
default:
patternOpen=true;
curWindow=GUI_WINDOW_PATTERN;

View file

@ -30,6 +30,14 @@ void FurnaceGUI::drawSysManager() {
nextWindow=GUI_WINDOW_NOTHING;
}
if (!sysManagerOpen) return;
if (mobileUI) {
patWindowPos=(portrait?ImVec2(0.0f,(mobileMenuPos*-0.65*canvasH)):ImVec2((0.16*canvasH)+0.5*canvasW*mobileMenuPos,0.0f));
patWindowSize=(portrait?ImVec2(canvasW,canvasH-(0.16*canvasW)):ImVec2(canvasW-(0.16*canvasH),canvasH));
ImGui::SetNextWindowPos(patWindowPos);
ImGui::SetNextWindowSize(patWindowSize);
} else {
//ImGui::SetNextWindowSizeConstraints(ImVec2(440.0f*dpiScale,400.0f*dpiScale),ImVec2(canvasW,canvasH));
}
if (ImGui::Begin("Chip Manager",&sysManagerOpen,globalWinFlags)) {
ImGui::Checkbox("Preserve channel order",&preserveChanPos);
if (ImGui::BeginTable("SystemList",3)) {