mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[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:
parent
c89518ead4
commit
36073586e7
@ -177,6 +177,8 @@ static bool egl_filterFFXCASImguiConfig(EGL_Filter * filter)
|
|||||||
igGetStyle()->WindowPadding.x);
|
igGetStyle()->WindowPadding.x);
|
||||||
|
|
||||||
igSliderFloat("##casSharpness", &casSharpness, 0.0f, 1.0f, NULL, 0);
|
igSliderFloat("##casSharpness", &casSharpness, 0.0f, 1.0f, NULL, 0);
|
||||||
|
if (igIsItemHovered(ImGuiHoveredFlags_None))
|
||||||
|
igSetTooltip("Ctrl+Click to enter a value");
|
||||||
igPopItemWidth();
|
igPopItemWidth();
|
||||||
|
|
||||||
if (casSharpness != this->sharpness)
|
if (casSharpness != this->sharpness)
|
||||||
|
@ -280,6 +280,8 @@ static bool egl_filterFFXFSR1ImguiConfig(EGL_Filter * filter)
|
|||||||
igPushItemWidth(igGetWindowWidth() - igGetCursorPosX() -
|
igPushItemWidth(igGetWindowWidth() - igGetCursorPosX() -
|
||||||
igGetStyle()->WindowPadding.x);
|
igGetStyle()->WindowPadding.x);
|
||||||
igSliderFloat("##fsr1Sharpness", &sharpness, 0.0f, 1.0f, NULL, 0);
|
igSliderFloat("##fsr1Sharpness", &sharpness, 0.0f, 1.0f, NULL, 0);
|
||||||
|
if (igIsItemHovered(ImGuiHoveredFlags_None))
|
||||||
|
igSetTooltip("Ctrl+Click to enter a value");
|
||||||
igPopItemWidth();
|
igPopItemWidth();
|
||||||
|
|
||||||
if (sharpness != this->sharpness)
|
if (sharpness != this->sharpness)
|
||||||
|
Loading…
Reference in New Issue
Block a user