diff --git a/memory-external/classes/render.hpp b/memory-external/classes/render.hpp index db5de88..4f38cd9 100644 --- a/memory-external/classes/render.hpp +++ b/memory-external/classes/render.hpp @@ -14,6 +14,13 @@ namespace render { DeleteObject(hBorderBrush); // Delete the temporary brush } + void DrawFilledBox(HDC hdc, int x, int y, int width, int height, COLORREF color) { + HBRUSH hBrush = CreateSolidBrush(color); + RECT rect = { x, y, x + width, y + height }; + FillRect(hdc, &rect, hBrush); + DeleteObject(hBrush); + } + void SetTextSize(HDC hdc, int textSize) { LOGFONT lf;