Closed akimky closed 1 year ago
@Akimpaus Please, could you provide some images illustrating the change?
@raysan5 In fact, it's not just about GuiWindowBox. Pay attention to the positioning of the icon substitutes.
Example code
#include <raylib.h>
#define RAYGUI_IMPLEMENTATION
#define RAYGUI_NO_ICONS
#include <raygui.h>
int main() {
InitWindow(800, 600, "Test");
const Rectangle windowBoxBounds = {
300,
50,
100,
100
};
const Rectangle spinnerBounds = {
300,
160,
200,
25
};
int spinnerValue = 0;
bool spinnerEdit = false;
while (!WindowShouldClose()) {
BeginDrawing();
ClearBackground(BLACK);
GuiWindowBox(windowBoxBounds, "test");
spinnerEdit = GuiSpinner(spinnerBounds, "test", &spinnerValue, 0, 100, spinnerEdit);
EndDrawing();
}
CloseWindow();
return 0;
}
@Akimpaus Thanks for the details and the review!
…fined RAYGUI_NO_ICONS macro.
In the absence of the added check, and disabled icons, the closing icon of the Gui Window Box was to the left of the center, although it should be strictly centered.