GUI: no tooltips in mobile
This commit is contained in:
parent
592bf34bf3
commit
be01c19e3e
|
@ -188,25 +188,16 @@ void FurnaceGUI::drawMobileControls() {
|
||||||
if (ImGui::Button(ICON_FA_PLAY "##Play",buttonSize)) {
|
if (ImGui::Button(ICON_FA_PLAY "##Play",buttonSize)) {
|
||||||
play();
|
play();
|
||||||
}
|
}
|
||||||
if (ImGui::IsItemHovered()) {
|
|
||||||
ImGui::SetTooltip("Play");
|
|
||||||
}
|
|
||||||
popToggleColors();
|
popToggleColors();
|
||||||
if (portrait) ImGui::SameLine();
|
if (portrait) ImGui::SameLine();
|
||||||
if (ImGui::Button(ICON_FA_STOP "##Stop",buttonSize)) {
|
if (ImGui::Button(ICON_FA_STOP "##Stop",buttonSize)) {
|
||||||
stop();
|
stop();
|
||||||
}
|
}
|
||||||
if (ImGui::IsItemHovered()) {
|
|
||||||
ImGui::SetTooltip("Stop");
|
|
||||||
}
|
|
||||||
if (portrait) ImGui::SameLine();
|
if (portrait) ImGui::SameLine();
|
||||||
if (ImGui::Button(ICON_FA_ARROW_DOWN "##StepOne",buttonSize)) {
|
if (ImGui::Button(ICON_FA_ARROW_DOWN "##StepOne",buttonSize)) {
|
||||||
e->stepOne(cursor.y);
|
e->stepOne(cursor.y);
|
||||||
pendingStepUpdate=true;
|
pendingStepUpdate=true;
|
||||||
}
|
}
|
||||||
if (ImGui::IsItemHovered()) {
|
|
||||||
ImGui::SetTooltip("Step one row");
|
|
||||||
}
|
|
||||||
|
|
||||||
bool repeatPattern=e->getRepeatPattern();
|
bool repeatPattern=e->getRepeatPattern();
|
||||||
pushToggleColors(repeatPattern);
|
pushToggleColors(repeatPattern);
|
||||||
|
@ -214,9 +205,6 @@ void FurnaceGUI::drawMobileControls() {
|
||||||
if (ImGui::Button(ICON_FA_REPEAT "##RepeatPattern",buttonSize)) {
|
if (ImGui::Button(ICON_FA_REPEAT "##RepeatPattern",buttonSize)) {
|
||||||
e->setRepeatPattern(!repeatPattern);
|
e->setRepeatPattern(!repeatPattern);
|
||||||
}
|
}
|
||||||
if (ImGui::IsItemHovered()) {
|
|
||||||
ImGui::SetTooltip("Repeat pattern");
|
|
||||||
}
|
|
||||||
popToggleColors();
|
popToggleColors();
|
||||||
|
|
||||||
pushToggleColors(edit);
|
pushToggleColors(edit);
|
||||||
|
@ -224,9 +212,6 @@ void FurnaceGUI::drawMobileControls() {
|
||||||
if (ImGui::Button(ICON_FA_CIRCLE "##Edit",buttonSize)) {
|
if (ImGui::Button(ICON_FA_CIRCLE "##Edit",buttonSize)) {
|
||||||
edit=!edit;
|
edit=!edit;
|
||||||
}
|
}
|
||||||
if (ImGui::IsItemHovered()) {
|
|
||||||
ImGui::SetTooltip("Edit");
|
|
||||||
}
|
|
||||||
popToggleColors();
|
popToggleColors();
|
||||||
|
|
||||||
bool metro=e->getMetronome();
|
bool metro=e->getMetronome();
|
||||||
|
@ -235,9 +220,6 @@ void FurnaceGUI::drawMobileControls() {
|
||||||
if (ImGui::Button(ICON_FA_BELL_O "##Metronome",buttonSize)) {
|
if (ImGui::Button(ICON_FA_BELL_O "##Metronome",buttonSize)) {
|
||||||
e->setMetronome(!metro);
|
e->setMetronome(!metro);
|
||||||
}
|
}
|
||||||
if (ImGui::IsItemHovered()) {
|
|
||||||
ImGui::SetTooltip("Metronome");
|
|
||||||
}
|
|
||||||
popToggleColors();
|
popToggleColors();
|
||||||
}
|
}
|
||||||
if (ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows)) curWindow=GUI_WINDOW_EDIT_CONTROLS;
|
if (ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows)) curWindow=GUI_WINDOW_EDIT_CONTROLS;
|
||||||
|
|
Loading…
Reference in a new issue