Merge pull request #1330 from tildearrow/gui-radiobuttons

Radio button group indents everywhere.
This commit is contained in:
tildearrow 2023-08-06 04:26:34 -05:00 committed by GitHub
commit a6ad79f686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View File

@ -199,6 +199,7 @@ void FurnaceGUI::drawCompatFlags() {
} }
if (ImGui::BeginTabItem("Pitch/Playback")) { if (ImGui::BeginTabItem("Pitch/Playback")) {
ImGui::Text("Pitch linearity:"); ImGui::Text("Pitch linearity:");
ImGui::Indent();
if (ImGui::RadioButton("None",e->song.linearPitch==0)) { if (ImGui::RadioButton("None",e->song.linearPitch==0)) {
e->song.linearPitch=0; e->song.linearPitch=0;
} }
@ -217,6 +218,7 @@ void FurnaceGUI::drawCompatFlags() {
if (ImGui::IsItemHovered()) { if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("like Impulse Tracker"); ImGui::SetTooltip("like Impulse Tracker");
} }
ImGui::Unindent();
if (e->song.linearPitch==2) { if (e->song.linearPitch==2) {
ImGui::SameLine(); ImGui::SameLine();
@ -228,6 +230,7 @@ void FurnaceGUI::drawCompatFlags() {
} }
ImGui::Text("Loop modality:"); ImGui::Text("Loop modality:");
ImGui::Indent();
if (ImGui::RadioButton("Reset channels",e->song.loopModality==0)) { if (ImGui::RadioButton("Reset channels",e->song.loopModality==0)) {
e->song.loopModality=0; e->song.loopModality=0;
} }
@ -246,8 +249,10 @@ void FurnaceGUI::drawCompatFlags() {
if (ImGui::IsItemHovered()) { if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("select to not reset channels on loop."); ImGui::SetTooltip("select to not reset channels on loop.");
} }
ImGui::Unindent();
ImGui::Text("Cut/delay effect policy:"); ImGui::Text("Cut/delay effect policy:");
ImGui::Indent();
if (ImGui::RadioButton("Strict",e->song.delayBehavior==0)) { if (ImGui::RadioButton("Strict",e->song.delayBehavior==0)) {
e->song.delayBehavior=0; e->song.delayBehavior=0;
} }
@ -266,8 +271,10 @@ void FurnaceGUI::drawCompatFlags() {
if (ImGui::IsItemHovered()) { if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("no checks"); ImGui::SetTooltip("no checks");
} }
ImGui::Unindent();
ImGui::Text("Simultaneous jump (0B+0D) treatment:"); ImGui::Text("Simultaneous jump (0B+0D) treatment:");
ImGui::Indent();
if (ImGui::RadioButton("Normal",e->song.jumpTreatment==0)) { if (ImGui::RadioButton("Normal",e->song.jumpTreatment==0)) {
e->song.jumpTreatment=0; e->song.jumpTreatment=0;
} }
@ -286,6 +293,7 @@ void FurnaceGUI::drawCompatFlags() {
if (ImGui::IsItemHovered()) { if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("only accept 0Dxx"); ImGui::SetTooltip("only accept 0Dxx");
} }
ImGui::Unindent();
ImGui::EndTabItem(); ImGui::EndTabItem();
} }
if (ImGui::BeginTabItem("Other")) { if (ImGui::BeginTabItem("Other")) {

View File

@ -4013,6 +4013,7 @@ bool FurnaceGUI::loop() {
ImGui::Checkbox("loop",&vgmExportLoop); ImGui::Checkbox("loop",&vgmExportLoop);
if (vgmExportLoop && e->song.loopModality==2) { if (vgmExportLoop && e->song.loopModality==2) {
ImGui::Text("loop trail:"); ImGui::Text("loop trail:");
ImGui::Indent();
if (ImGui::RadioButton("auto-detect",vgmExportTrailingTicks==-1)) { if (ImGui::RadioButton("auto-detect",vgmExportTrailingTicks==-1)) {
vgmExportTrailingTicks=-1; vgmExportTrailingTicks=-1;
} }
@ -4028,6 +4029,7 @@ bool FurnaceGUI::loop() {
if (vgmExportTrailingTicks<0) vgmExportTrailingTicks=0; if (vgmExportTrailingTicks<0) vgmExportTrailingTicks=0;
} }
} }
ImGui::Unindent();
} }
ImGui::Checkbox("add pattern change hints",&vgmExportPatternHints); ImGui::Checkbox("add pattern change hints",&vgmExportPatternHints);
if (ImGui::IsItemHovered()) { if (ImGui::IsItemHovered()) {

View File

@ -100,6 +100,7 @@ void FurnaceGUI::drawPiano() {
} }
if (ImGui::BeginPopupContextItem("PianoOptions",ImGuiPopupFlags_MouseButtonLeft)) { if (ImGui::BeginPopupContextItem("PianoOptions",ImGuiPopupFlags_MouseButtonLeft)) {
ImGui::Text("Key layout:"); ImGui::Text("Key layout:");
ImGui::Indent();
if (ImGui::RadioButton("Automatic",pianoView==PIANO_LAYOUT_AUTOMATIC)) { if (ImGui::RadioButton("Automatic",pianoView==PIANO_LAYOUT_AUTOMATIC)) {
pianoView=PIANO_LAYOUT_AUTOMATIC; pianoView=PIANO_LAYOUT_AUTOMATIC;
} }
@ -109,7 +110,9 @@ void FurnaceGUI::drawPiano() {
if (ImGui::RadioButton("Continuous",pianoView==PIANO_LAYOUT_CONTINUOUS)) { if (ImGui::RadioButton("Continuous",pianoView==PIANO_LAYOUT_CONTINUOUS)) {
pianoView=PIANO_LAYOUT_CONTINUOUS; pianoView=PIANO_LAYOUT_CONTINUOUS;
} }
ImGui::Unindent();
ImGui::Text("Value input pad:"); ImGui::Text("Value input pad:");
ImGui::Indent();
if (ImGui::RadioButton("Disabled",pianoInputPadMode==PIANO_INPUT_PAD_DISABLE)) { if (ImGui::RadioButton("Disabled",pianoInputPadMode==PIANO_INPUT_PAD_DISABLE)) {
pianoInputPadMode=PIANO_INPUT_PAD_DISABLE; pianoInputPadMode=PIANO_INPUT_PAD_DISABLE;
} }
@ -122,6 +125,7 @@ void FurnaceGUI::drawPiano() {
if (ImGui::RadioButton("Split (always visible)",pianoInputPadMode==PIANO_INPUT_PAD_SPLIT_VISIBLE)) { if (ImGui::RadioButton("Split (always visible)",pianoInputPadMode==PIANO_INPUT_PAD_SPLIT_VISIBLE)) {
pianoInputPadMode=PIANO_INPUT_PAD_SPLIT_VISIBLE; pianoInputPadMode=PIANO_INPUT_PAD_SPLIT_VISIBLE;
} }
ImGui::Unindent();
ImGui::Checkbox("Share play/edit offset/range",&pianoSharePosition); ImGui::Checkbox("Share play/edit offset/range",&pianoSharePosition);
ImGui::Checkbox("Read-only (can't input notes)",&pianoReadonly); ImGui::Checkbox("Read-only (can't input notes)",&pianoReadonly);
ImGui::EndPopup(); ImGui::EndPopup();