[client] egl: add tooltip about Ctrl+Click on sharpness sliders

With the new keymap feature, we are now able to properly support letting
the user enter exact values into the sliders. This commit adds a tooltip
to help the user discover this feature.

Note that this currently only works on Wayland. The X11 backend will need
to call app_handleKeyboardModifiers.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-08-15 18:01:03 +10:00
1 parent c89518ead4
commit 36073586e7
2 files changed
+4

No files matched your search

+2
View File
@@ -177,6 +177,8 @@ static bool egl_filterFFXCASImguiConfig(EGL_Filter * filter)
igGetStyle()->WindowPadding.x);
igSliderFloat("##casSharpness", &casSharpness, 0.0f, 1.0f, NULL, 0);
if (igIsItemHovered(ImGuiHoveredFlags_None))
igSetTooltip("Ctrl+Click to enter a value");
igPopItemWidth();
if (casSharpness != this->sharpness)
+2
View File
@@ -280,6 +280,8 @@ static bool egl_filterFFXFSR1ImguiConfig(EGL_Filter * filter)
igPushItemWidth(igGetWindowWidth() - igGetCursorPosX() -
igGetStyle()->WindowPadding.x);
igSliderFloat("##fsr1Sharpness", &sharpness, 0.0f, 1.0f, NULL, 0);
if (igIsItemHovered(ImGuiHoveredFlags_None))
igSetTooltip("Ctrl+Click to enter a value");
igPopItemWidth();
if (sharpness != this->sharpness)