aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui.c b/src/ui.c
index 5048ff9..758bd17 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -1,4 +1,5 @@
#include "ui.h"
+#include "game.h"
FloatingWindow createFloatingWindow(const char* title, Rectangle rect)
{
@@ -185,6 +186,11 @@ FocusCommand updateFloatingWindowNotMinimized(FloatingWindow* window,
window->rect.width,
window->rect.height - RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT
};
+
+ Color color = GetColor(GuiGetStyle(DEFAULT, BACKGROUND_COLOR));
+ color.a = game->settings.nonEditWindowAlpha;
+
+ DrawRectangleRec(scissor, color);
}
bool requireScissor = window->rect.width < window->contentSize.x