diff options
| author | nathan <nathansmith@disroot.org> | 2025-11-21 11:27:12 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2025-11-21 11:27:12 +0000 |
| commit | 52a58016c7217942ab06988cc9adacc6e76689ca (patch) | |
| tree | 7b2fc58d2f1f331c48a47096d1d3e809045374f0 /src/ui.c | |
| parent | e00d5a923f69bd0b95b0ccf11d98f507fe6f08aa (diff) | |
| download | FindThings-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |
