From 52a58016c7217942ab06988cc9adacc6e76689ca Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 21 Nov 2025 04:27:12 -0700 Subject: cross hair and clear background thingy --- src/ui.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ui.c') 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 -- cgit v1.2.3