Jelajahi Sumber

Added guicombobox to controls_test_suite.c

Sergio Martínez 6 tahun lalu
induk
melakukan
a48b74cde0
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      examples/controls_test_suite/controls_test_suite.c

+ 4 - 0
examples/controls_test_suite/controls_test_suite.c

@@ -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;