Update controls_test_suite.c

This commit is contained in:
Ray
2026-03-15 23:50:32 +01:00
parent b0726f9dcf
commit 3b2855842a

View File

@ -97,7 +97,7 @@ int main()
int listViewExScrollIndex = 0; int listViewExScrollIndex = 0;
int listViewExActive = 2; int listViewExActive = 2;
int listViewExFocus = -1; int listViewExFocus = -1;
const char *listViewExList[8] = { "This", "is", "a", "list view", "with", "disable", "elements", "amazing!" }; char *listViewExList[8] = { "This", "is", "a", "list view", "with", "disable", "elements", "amazing!" };
Color colorPickerValue = RED; Color colorPickerValue = RED;
@ -205,7 +205,7 @@ int main()
BeginDrawing(); BeginDrawing();
ClearBackground(GetColor(GuiGetStyle(DEFAULT, BACKGROUND_COLOR))); ClearBackground(GetColor(GuiGetStyle(DEFAULT, BACKGROUND_COLOR)));
// raygui: controls drawing // raygui: controls drawing
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
// Check all possible events that require GuiLock // Check all possible events that require GuiLock
@ -236,7 +236,7 @@ int main()
GuiSetState(STATE_NORMAL); GuiSetState(STATE_NORMAL);
//GuiUnlock(); //GuiUnlock();
GuiComboBox((Rectangle){ 25, 480, 125, 30 }, GuiComboBox((Rectangle){ 25, 480, 125, 30 },
"default;Jungle;Lavanda;Dark;Bluish;Cyber;Terminal;Candy;Cherry;Ashes;Enefete;Sunny;Amber;Genesis", &visualStyleActive); "default;Jungle;Lavanda;Dark;Bluish;Cyber;Terminal;Candy;Cherry;Ashes;Enefete;Sunny;Amber;Genesis", &visualStyleActive);
// NOTE: GuiDropdownBox must draw after any other control that can be covered on unfolding // NOTE: GuiDropdownBox must draw after any other control that can be covered on unfolding
@ -271,7 +271,7 @@ int main()
//GuiDisable(); //GuiDisable();
GuiSlider((Rectangle){ 355, 400, 165, 20 }, "TEST", TextFormat("%2.2f", sliderValue), &sliderValue, -50, 100); GuiSlider((Rectangle){ 355, 400, 165, 20 }, "TEST", TextFormat("%2.2f", sliderValue), &sliderValue, -50, 100);
GuiSliderBar((Rectangle){ 320, 430, 200, 20 }, NULL, TextFormat("%i", (int)sliderBarValue), &sliderBarValue, 0, 100); GuiSliderBar((Rectangle){ 320, 430, 200, 20 }, NULL, TextFormat("%i", (int)sliderBarValue), &sliderBarValue, 0, 100);
GuiProgressBar((Rectangle){ 320, 460, 200, 20 }, NULL, TextFormat("%i%%", (int)(progressValue*100)), &progressValue, 0.0f, 1.0f); GuiProgressBar((Rectangle){ 320, 460, 200, 20 }, NULL, TextFormat("%i%%", (int)(progressValue*100)), &progressValue, 0.0f, 1.0f);
GuiEnable(); GuiEnable();