[client] overlay: cosmetic changes to the overlay display
This commit is contained in:
1 parent
e7761abf3c
commit
2ef80a5d34
4 files changed
+9
-2
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user