Rename 'alternative' to 'snap cursor, with ALT or option key (OSX)

This commit is contained in:
Bruno Herbelin
2023-08-31 15:11:35 +02:00
parent 124415363f
commit ccc3c86900
2 changed files with 8 additions and 6 deletions

View File

@@ -4678,7 +4678,7 @@ void Navigator::RenderMousePointerSelector(const ImVec2 &size)
ImVec2 bottom = ImGui::GetCursorScreenPos(); ImVec2 bottom = ImGui::GetCursorScreenPos();
if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) { if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) {
ImGuiToolkit::ToolTip("Alternative cursor", "ALT"); ImGuiToolkit::ToolTip("Snap cursor", ALT_MOD);
counter_menu_timeout=0; counter_menu_timeout=0;
} }
@@ -4734,10 +4734,10 @@ void Navigator::RenderMousePointerSelector(const ImVec2 &size)
ImGui::SetCursorPosY(margin.y); ImGui::SetCursorPosY(margin.y);
ImGui::TextDisabled(" |"); ImGui::TextDisabled(" |");
ImGui::SameLine(0, IMGUI_SAME_LINE); ImGui::SameLine(0, IMGUI_SAME_LINE);
ImGuiToolkit::ButtonToggle(Settings::application.mouse_pointer_lock ? ICON_FA_LOCK " ALT LOCK" : ICON_FA_UNLOCK " ALT LOCK", ImGuiToolkit::ButtonToggle(Settings::application.mouse_pointer_lock ? ICON_FA_LOCK ALT_LOCK : ICON_FA_UNLOCK ALT_LOCK,
&Settings::application.mouse_pointer_lock, &Settings::application.mouse_pointer_lock,
"Activate the selected alternative mouse pointer by pressing the ALT key.\n\n" "Activate the selected snap mouse pointer by pressing the [" ALT_MOD "] key.\n\n"
ICON_FA_LOCK " ALT LOCK keeps the alternative mouse pointer active."); ICON_FA_LOCK ALT_LOCK " keeps the snap mouse pointer active.");
ImGui::PopFont(); ImGui::PopFont();
// timer to close menu like a tooltip // timer to close menu like a tooltip

View File

@@ -132,10 +132,12 @@
#ifdef APPLE #ifdef APPLE
#define CTRL_MOD "Cmd+" #define CTRL_MOD "Cmd+"
#define ALT_MOD "Option+" #define ALT_MOD "option"
#define ALT_LOCK " OPT LOCK"
#else #else
#define CTRL_MOD "Ctrl+" #define CTRL_MOD "Ctrl+"
#define ALT_MOD "Alt+" #define ALT_MOD "Alt"
#define ALT_LOCK " ALT LOCK"
#endif #endif
#define MENU_NEW_FILE ICON_FA_FILE " New" #define MENU_NEW_FILE ICON_FA_FILE " New"