From 9a39f8da9af8f10d936eee6d969786a1522eb9e5 Mon Sep 17 00:00:00 2001 From: Wojciech Jarosz Date: Tue, 19 Dec 2023 00:06:20 +1100 Subject: [PATCH] fixing release and adding tooltip --- .github/workflows/release.yml | 2 +- src/app.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2bbb285..bb1bf7e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,7 +45,7 @@ jobs: - name: Checking that Samplin Safari runs run: | - ${{github.workspace}}/build/${{ env.BUILD_TYPE }}/Samplin\ Safari.app/Contents/MacOS/Samplin\ Safari --help + ${{github.workspace}}/build/Samplin\ Safari.app/Contents/MacOS/Samplin\ Safari --help - name: Creating dmg run: | diff --git a/src/app.cpp b/src/app.cpp index 7e96d4a..181b188 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -668,6 +668,8 @@ void SampleViewer::draw_editor() } #endif } + tooltip("Load points from a CSV text file with points for rows and individual point coordinates as comma " + "separated values per row."); } int num_points = m_point_count; @@ -717,7 +719,7 @@ void SampleViewer::draw_editor() int strength = oa->strength(); if (ImGui::InputInt("Strength", &strength, 1)) change_strength(std::max(2, strength)); - ImGui::SetItemTooltip("Key: T/t"); + tooltip("Key: T/t"); // Controls for the offset type of the OA auto offset_names = oa->offsetTypeNames(); @@ -783,7 +785,7 @@ void SampleViewer::draw_editor() ImGui::SameLine(); { ImGui::ToggleButton(ICON_FA_COMPRESS, &m_scale_radius_with_points); - ImGui::SetItemTooltip("Scale radius with number of points"); + tooltip("Automatically scale radius with number of points"); } ImGui::Checkbox("1D projections", &m_show_1d_projections);