mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-11-29 12:48:16 +00:00
[client] overlay: cosmetic changes to the overlay display
This commit is contained in:
@@ -60,6 +60,8 @@ static int alert_render(void * udata, bool interactive, struct Rect * windowRect
|
||||
igSetNextWindowPos((ImVec2) { screen->x / 2.0f, screen->y / 2.0f }, 0,
|
||||
(ImVec2) { 0.5f, 0.5f });
|
||||
igPushStyleColorU32(ImGuiCol_WindowBg, colours[g_state.alertType]);
|
||||
igPushStyleVarVec2(ImGuiStyleVar_WindowPadding, (ImVec2) { 4.0f , 4.0f });
|
||||
igPushStyleVarVec2(ImGuiStyleVar_WindowMinSize, (ImVec2) { 0.0f , 0.0f });
|
||||
|
||||
igBegin(
|
||||
"Alert",
|
||||
@@ -75,6 +77,8 @@ static int alert_render(void * udata, bool interactive, struct Rect * windowRect
|
||||
|
||||
overlayGetImGuiRect(windowRects);
|
||||
igEnd();
|
||||
|
||||
igPopStyleVar(2);
|
||||
igPopStyleColor(1);
|
||||
|
||||
return 1;
|
||||
|
||||
@@ -42,6 +42,8 @@ static int fps_render(void * udata, bool interactive, struct Rect * windowRects,
|
||||
ImVec2 pos = {0.0f, 0.0f};
|
||||
igSetNextWindowBgAlpha(0.6f);
|
||||
igSetNextWindowPos(pos, 0, pos);
|
||||
igPushStyleVarVec2(ImGuiStyleVar_WindowPadding, (ImVec2) { 4.0f , 4.0f });
|
||||
igPushStyleVarVec2(ImGuiStyleVar_WindowMinSize, (ImVec2) { 0.0f , 0.0f });
|
||||
|
||||
igBegin(
|
||||
"FPS",
|
||||
@@ -58,6 +60,8 @@ static int fps_render(void * udata, bool interactive, struct Rect * windowRects,
|
||||
overlayGetImGuiRect(windowRects);
|
||||
igEnd();
|
||||
|
||||
igPopStyleVar(2);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user