mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 04:55:13 +00:00
GUI: mobile chips view
This commit is contained in:
parent
b41a015c4b
commit
2fdce8512a
2 changed files with 13 additions and 0 deletions
|
@ -3764,6 +3764,11 @@ bool FurnaceGUI::loop() {
|
||||||
drawSampleEdit();
|
drawSampleEdit();
|
||||||
drawPiano();
|
drawPiano();
|
||||||
break;
|
break;
|
||||||
|
case GUI_SCENE_CHIPS:
|
||||||
|
sysManagerOpen=true;
|
||||||
|
curWindow=GUI_WINDOW_SYS_MANAGER;
|
||||||
|
drawSysManager();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
patternOpen=true;
|
patternOpen=true;
|
||||||
curWindow=GUI_WINDOW_PATTERN;
|
curWindow=GUI_WINDOW_PATTERN;
|
||||||
|
|
|
@ -30,6 +30,14 @@ void FurnaceGUI::drawSysManager() {
|
||||||
nextWindow=GUI_WINDOW_NOTHING;
|
nextWindow=GUI_WINDOW_NOTHING;
|
||||||
}
|
}
|
||||||
if (!sysManagerOpen) return;
|
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)) {
|
if (ImGui::Begin("Chip Manager",&sysManagerOpen,globalWinFlags)) {
|
||||||
ImGui::Checkbox("Preserve channel order",&preserveChanPos);
|
ImGui::Checkbox("Preserve channel order",&preserveChanPos);
|
||||||
if (ImGui::BeginTable("SystemList",3)) {
|
if (ImGui::BeginTable("SystemList",3)) {
|
||||||
|
|
Loading…
Reference in a new issue