#include "raylib.h"
#define RAYGUI_IMPLEMENTATION
#include "../../src/raygui.h"
#include <stdio.h>
int main()
{
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raygui - controls test suite");
float valueBoxValue = 0.0f;
bool valueBoxEditMode = false;
char valueBoxTextValue[32] = { 0 };
SetTargetFPS(60);
while (!WindowShouldClose()) {
BeginDrawing();
ClearBackground(GetColor(GuiGetStyle(DEFAULT, BACKGROUND_COLOR)));
if (GuiValueBoxFloat((Rectangle){ 25, 175, 125, 30 }, NULL, valueBoxTextValue, &valueBoxValue, valueBoxEditMode))
{
valueBoxEditMode = !valueBoxEditMode;
printf("Value: %2.2f\n", valueBoxValue);
}
EndDrawing();
}
CloseWindow();
return 0;
}