FairyGUI.GComboBox
class FairyGUI.GComboBox
Fields and Properties:
int visibleItemCount- Description: Visible item count of the drop down list.
FairyGUI.GComponent dropdown- Description:
float soundVolumeScale- Description: Volume of the click sound. (0-1)
FairyGUI.EventListener onChanged- Description: Dispatched when selection was changed.
string icon- Description: Icon of the combobox.
string title- Description: Title of the combobox.
string text- Description: Same of the title.
UnityEngine.Color titleColor- Description: Text color
int titleFontSize- Description:
string[] items- Description: Items to build up drop down list.
string[] icons- Description:
string[] values- Description: Values, should be same size of the items.
List<string> itemList- Description:
List<string> valueList- Description:
List<string> iconList- Description:
int selectedIndex- Description: Selected index.
FairyGUI.Controller selectionController- Description:
string value- Description: Selected value.
FairyGUI.PopupDirection popupDirection- Description:
Constructors:
FairyGUI.GComboBox.New()
Methods:
void ApplyListChange()- Description: Call this method after you made changes on itemList or iconList
FairyGUI.GTextField GetTextField()- Description:
- Return:
void HandleControllerChanged(FairyGUI.Controller)void Dispose()void UpdateDropdownList()