Skip to main content

GComboBox

Namespace:FairyGUI
Source:Assets/Scripts/UI/GComboBox.cs (line 11)

public class GComboBox : GComponent

GComboBox class.

Inheritance:EventDispatcher → GObject → GComponent → GComboBox

Inherited members​

GComponent

__onConstruct, __onDispose, _apexIndex, _boundsChanged, _childrenRenderOrder, _margin, _trackBounds, AddChild, AddChildAt, AddController, CallLua, ChangeChildrenOrder, ConstructFromResource, ConstructFromXML, CreateDisplayObject, EnsureBoundsCorrect, GetChild, GetChildAt, GetChildByPath, GetChildInGroup, GetChildIndex, GetChildren, GetController, GetControllerAt, GetFirstChildInView, GetSnappingPosition, GetSnappingPositionWithDir, GetTransition, GetTransitionAt, GetVisibleChild, HandleSizeChanged, InvalidateBatchingState, IsAncestorOf, IsChildInView, OnUpdate, RemoveChild, RemoveChildAt, RemoveChildren, RemoveController, SetBounds, SetBoundsChangedFlag, SetChildIndex, SetChildIndexBefore, SetLuaPeer, SetupOverflow, SetupScroll, ShouldSnapToNext, SwapChildren, SwapChildrenAt, UpdateBounds, Controllers, Transitions, apexIndex, baseUserData, childrenRenderOrder, clipSoftness, container, fairyBatching, margin, mask, numChildren, onDrop, opaque, reversedMask, rootContainer, scrollPane, tabStopChildren, viewHeight, viewWidth

GObject

data, dragBounds, initHeight, initWidth, maxHeight, maxWidth, minHeight, minWidth, name, packageItem, sourceHeight, sourceWidth, underConstruct, AddRelation, Center, GetGear, GlobalToLocal, HandleAlphaChanged, HandlePositionChanged, HandleScaleChanged, HandleVisibleChanged, LocalToGlobal, LocalToRoot, MakeFullScreen, RemoveFromParent, RemoveRelation, RequestFocus, RootToLocal, SetHome, SetPivot, SetPosition, SetScale, SetSize, SetSizeDirectly, SetXY, Setup_BeforeAdd, StartDrag, StopDrag, TransformPoint, TransformRect, TweenFade, TweenMove, TweenMoveX, TweenMoveY, TweenResize, TweenRotate, TweenScale, TweenScaleX, TweenScaleY, UpdateGear, WorldToLocal, actualHeight, actualWidth, alpha, asButton, asComboBox, asCom, asGraph, asGroup, asImage, asLabel, asList, asLoader3D, asLoader, asMovieClip, asProgress, asRichTextField, asSlider, asTextField, asTextInput, asTree, blendMode, cursor, displayObject, dragStartPos, draggable, draggingObject, dragging, enabled, filter, focusable, focused, gameObjectName, gearLook, gearSize, gearXY, grayed, group, height, id, inContainer, isDisposed, onAddedToStage, onClickLink, onClick, onDragEnd, onDragMove, onDragStart, onFocusIn, onFocusOut, onGearStop, onKeyDown, onPositionChanged, onRemovedFromStage, onRightClick, onRollOut, onRollOver, onSizeChanged, onStage, onTouchBegin, onTouchEnd, onTouchMove, parent, pivotAsAnchor, pivotX, pivotY, pivot, pixelSnapping, position, relations, resourceURL, root, rotationX, rotationY, rotation, scaleX, scaleY, scale, size, skew, sortingOrder, tabStop, tooltips, touchable, treeNode, visible, width, xMin, xy, x, yMin, y, z

EventDispatcher

AddCapture, AddEventListener, BroadcastEvent, BubbleEvent, DispatchEvent, RemoveCapture, RemoveEventListener, RemoveEventListeners, hasEventListeners, isDispatching

Constructors​

GComboBox()​

public GComboBox();

Source:UI/GComboBox.cs (line 52)

Fields​

_iconObject​

protected GObject _iconObject;

Source:UI/GComboBox.cs (line 34)

_icons​

protected List<string> _icons;

Source:UI/GComboBox.cs (line 38)

_items​

protected List<string> _items;

Source:UI/GComboBox.cs (line 37)

_list​

protected GList _list;

Source:UI/GComboBox.cs (line 35)

_popupDirection​

protected PopupDirection _popupDirection;

Source:UI/GComboBox.cs (line 40)

_selectionController​

protected Controller _selectionController;

Source:UI/GComboBox.cs (line 41)

_titleObject​

protected GObject _titleObject;

Source:UI/GComboBox.cs (line 33)

_values​

protected List<string> _values;

Source:UI/GComboBox.cs (line 39)

dropdown​

public GComponent dropdown;

Source:UI/GComboBox.cs (line 21)

sound​

public NAudioClip sound;

Play sound when button is clicked.

Source:UI/GComboBox.cs (line 26)

soundVolumeScale​

public float soundVolumeScale;

Volume of the click sound. (0-1)

Source:UI/GComboBox.cs (line 31)

visibleItemCount​

public int visibleItemCount;

Visible item count of the drop down list.

Source:UI/GComboBox.cs (line 16)

Methods​

ApplyListChange()​

public void ApplyListChange();

Call this method after you made changes on itemList or iconList

Source:UI/GComboBox.cs (line 241)

ConstructExtension(ByteBuffer)​

override protected void ConstructExtension(ByteBuffer buffer);
ParameterTypeDescription
bufferByteBuffer

Source:UI/GComboBox.cs (line 415)

Dispose()​

public override void Dispose();

Source:UI/GComboBox.cs (line 403)

GetTextField()​

public GTextField GetTextField();

Source:UI/GComboBox.cs (line 342)

HandleControllerChanged(Controller)​

override public void HandleControllerChanged(Controller c);
ParameterTypeDescription
cController

Source:UI/GComboBox.cs (line 383)

HandleGrayedChanged()​

override protected void HandleGrayedChanged();

Source:UI/GComboBox.cs (line 370)

RenderDropdownList()​

virtual protected void RenderDropdownList();

Source:UI/GComboBox.cs (line 551)

SetCurrentState()​

protected void SetCurrentState();

Source:UI/GComboBox.cs (line 360)

SetState(string)​

protected void SetState(string value);
ParameterTypeDescription
valuestring

Source:UI/GComboBox.cs (line 354)

Setup_AfterAdd(ByteBuffer, int)​

override public void Setup_AfterAdd(ByteBuffer buffer, int beginPos);
ParameterTypeDescription
bufferByteBuffer
beginPosint

Source:UI/GComboBox.cs (line 457)

ShowDropdown()​

protected void ShowDropdown();

Source:UI/GComboBox.cs (line 535)

UpdateDropdownList()​

public void UpdateDropdownList();

Source:UI/GComboBox.cs (line 525)

Properties​

icon​

override public string icon { get; set; }

Icon of the combobox.

Source:UI/GComboBox.cs (line 74)

iconList​

public List<string> iconList { get; }

Source:UI/GComboBox.cs (line 233)

icons​

public string[] icons { get; set; }

Source:UI/GComboBox.cs (line 188)

itemList​

public List<string> itemList { get; }

Source:UI/GComboBox.cs (line 217)

items​

public string[] items { get; set; }

Items to build up drop down list.

Source:UI/GComboBox.cs (line 170)

onChanged​

public EventListener onChanged { get; }

Dispatched when selection was changed.

Source:UI/GComboBox.cs (line 66)

popupDirection​

public PopupDirection popupDirection { get; set; }

Source:UI/GComboBox.cs (line 332)

selectedIndex​

public int selectedIndex { get; set; }

Selected index.

Source:UI/GComboBox.cs (line 268)

selectionController​

public Controller selectionController { get; set; }

Source:UI/GComboBox.cs (line 300)

text​

override public string text { get; set; }

Same of the title.

Source:UI/GComboBox.cs (line 115)

title​

public string title { get; set; }

Title of the combobox.

Source:UI/GComboBox.cs (line 95)

titleColor​

public Color titleColor { get; set; }

Text color

Source:UI/GComboBox.cs (line 124)

titleFontSize​

public int titleFontSize { get; set; }

Source:UI/GComboBox.cs (line 145)

value​

public string value { get; set; }

Selected value.

Source:UI/GComboBox.cs (line 309)

valueList​

public List<string> valueList { get; }

Source:UI/GComboBox.cs (line 225)

values​

public string[] values { get; set; }

Values, should be same size of the items.

Source:UI/GComboBox.cs (line 203)