aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.c
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-11-21 11:27:12 +0000
committernathan <nathansmith@disroot.org>2025-11-21 11:27:12 +0000
commit52a58016c7217942ab06988cc9adacc6e76689ca (patch)
tree7b2fc58d2f1f331c48a47096d1d3e809045374f0 /src/ui.c
parente00d5a923f69bd0b95b0ccf11d98f507fe6f08aa (diff)
downloadFindThings-52a58016c7217942ab06988cc9adacc6e76689ca.tar.gz
FindThings-52a58016c7217942ab06988cc9adacc6e76689ca.tar.bz2
FindThings-52a58016c7217942ab06988cc9adacc6e76689ca.zip
cross hair and clear background thingy
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