Skip to content

Commit

Permalink
GUI: don't use ArrowButton
Browse files Browse the repository at this point in the history
  • Loading branch information
tildearrow committed Sep 9, 2023
1 parent 86ffd40 commit c356b03
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/gui/dataList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ void FurnaceGUI::drawInsList(bool asChild) {
}
if (!insListDir) {
ImGui::SameLine();
if (ImGui::ArrowButton("InsUp",ImGuiDir_Up)) {
if (ImGui::Button(ICON_FA_ARROW_UP "##InsUp")) {
if (settings.unifiedDataView) {
switch (lastAssetType) {
case 0:
Expand All @@ -445,7 +445,7 @@ void FurnaceGUI::drawInsList(bool asChild) {
ImGui::SetTooltip("Move up");
}
ImGui::SameLine();
if (ImGui::ArrowButton("InsDown",ImGuiDir_Down)) {
if (ImGui::Button(ICON_FA_ARROW_DOWN "##InsDown")) {
if (settings.unifiedDataView) {
switch (lastAssetType) {
case 0:
Expand Down Expand Up @@ -729,14 +729,14 @@ void FurnaceGUI::drawWaveList(bool asChild) {
}
if (!waveListDir) {
ImGui::SameLine();
if (ImGui::ArrowButton("WaveUp",ImGuiDir_Up)) {
if (ImGui::Button(ICON_FA_ARROW_UP "##WaveUp")) {
doAction(GUI_ACTION_WAVE_LIST_MOVE_UP);
}
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("Move up");
}
ImGui::SameLine();
if (ImGui::ArrowButton("WaveDown",ImGuiDir_Down)) {
if (ImGui::Button(ICON_FA_ARROW_DOWN "##WaveDown")) {
doAction(GUI_ACTION_WAVE_LIST_MOVE_DOWN);
}
if (ImGui::IsItemHovered()) {
Expand Down Expand Up @@ -871,14 +871,14 @@ void FurnaceGUI::drawSampleList(bool asChild) {
}
if (!sampleListDir) {
ImGui::SameLine();
if (ImGui::ArrowButton("SampleUp",ImGuiDir_Up)) {
if (ImGui::Button(ICON_FA_ARROW_UP "##SampleUp")) {
doAction(GUI_ACTION_SAMPLE_LIST_MOVE_UP);
}
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("Move up");
}
ImGui::SameLine();
if (ImGui::ArrowButton("SampleDown",ImGuiDir_Down)) {
if (ImGui::Button(ICON_FA_ARROW_DOWN "##SampleDown")) {
doAction(GUI_ACTION_SAMPLE_LIST_MOVE_DOWN);
}
if (ImGui::IsItemHovered()) {
Expand Down

0 comments on commit c356b03

Please sign in to comment.