Added guicombobox to controls_test_suite.c

This commit is contained in:
Sergio Martínez 2018-11-20 11:21:41 +01:00
parent 1f1a28eda3
commit a48b74cde0

View File

@ -81,6 +81,8 @@ int main()
float progressValue = 0.4f;
bool forceSquaredChecked = false;
int comboBoxActive = 1;
//----------------------------------------------------------------------------------
// Custom GUI font loading
@ -125,6 +127,8 @@ int main()
GuiState(GUI_STATE_NORMAL);
GuiUnlock();
comboBoxActive = GuiComboBox((Rectangle){25, 470, 115, 30}, dropdownBox001TextList, 5, comboBoxActive);
// NOTE: GuiDropdownBox must draw after any other control that can be covered on unfolding
if (GuiDropdownBox((Rectangle){ 25, 65, 125, 30 }, dropdownBox001TextList, 5, &dropdownBox001Active, dropDown001EditMode)) dropDown001EditMode = !dropDown001EditMode;
if (GuiDropdownBox((Rectangle){ 25, 25, 125, 30 }, dropdownBox000TextList, 3, &dropdownBox000Active, dropDown000EditMode)) dropDown000EditMode = !dropDown000EditMode;