mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-12-02 22:28:14 +00:00
[client] imgui: darken background when rendering overlays
This replaces the alert that says whether the overlay is enabled or not. Also, we now always display the help menu in overlay mode.
This commit is contained in:
@@ -671,6 +671,13 @@ int app_renderOverlay(struct Rect * rects, int maxRects)
|
||||
|
||||
igNewFrame();
|
||||
|
||||
if (g_state.overlayInput)
|
||||
{
|
||||
totalDamage = true;
|
||||
ImDrawList_AddRectFilled(igGetBackgroundDrawListNil(), (ImVec2) { 0.0f , 0.0f },
|
||||
g_state.io->DisplaySize, 0xCC000000, 0, 0);
|
||||
}
|
||||
|
||||
// render the overlays
|
||||
for (ll_reset(g_state.overlays);
|
||||
ll_walk(g_state.overlays, (void **)&overlay); )
|
||||
|
||||
Reference in New Issue
Block a user