GComboBox
命名空间:FairyGUI
源码:Assets/Scripts/UI/GComboBox.cs (行 11)
public class GComboBox : GComponent
GComboBox class.
继承:EventDispatcher → GObject → GComponent → GComboBox
继承成员
__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
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
AddCapture, AddEventListener, BroadcastEvent, BubbleEvent, DispatchEvent, RemoveCapture, RemoveEventListener, RemoveEventListeners, hasEventListeners, isDispatching
构造函数
GComboBox()
public GComboBox();
源码:UI/GComboBox.cs (行 52)
字段
_iconObject
protected GObject _iconObject;
源码:UI/GComboBox.cs (行 34)
_icons
protected List<string> _icons;
源码:UI/GComboBox.cs (行 38)
_items
protected List<string> _items;
源码:UI/GComboBox.cs (行 37)
_list
protected GList _list;
源码:UI/GComboBox.cs (行 35)
_popupDirection
protected PopupDirection _popupDirection;
源码:UI/GComboBox.cs (行 40)
_selectionController
protected Controller _selectionController;
源码:UI/GComboBox.cs (行 41)
_titleObject
protected GObject _titleObject;
源码:UI/GComboBox.cs (行 33)
_values
protected List<string> _values;
源码:UI/GComboBox.cs (行 39)
dropdown
public GComponent dropdown;
源码:UI/GComboBox.cs (行 21)
sound
public NAudioClip sound;
Play sound when button is clicked.
源码:UI/GComboBox.cs (行 26)
soundVolumeScale
public float soundVolumeScale;
Volume of the click sound. (0-1)
源码:UI/GComboBox.cs (行 31)
visibleItemCount
public int visibleItemCount;
Visible item count of the drop down list.
源码:UI/GComboBox.cs (行 16)
方法
ApplyListChange()
public void ApplyListChange();
Call this method after you made changes on itemList or iconList
源码:UI/GComboBox.cs (行 241)
ConstructExtension(ByteBuffer)
override protected void ConstructExtension(ByteBuffer buffer);
| 参数 | 类型 | 说明 |
|---|---|---|
buffer | ByteBuffer |
源码:UI/GComboBox.cs (行 415)
Dispose()
public override void Dispose();
源码:UI/GComboBox.cs (行 403)
GetTextField()
public GTextField GetTextField();
源码:UI/GComboBox.cs (行 342)
HandleControllerChanged(Controller)
override public void HandleControllerChanged(Controller c);
| 参数 | 类型 | 说明 |
|---|---|---|
c | Controller |
源码:UI/GComboBox.cs (行 383)
HandleGrayedChanged()
override protected void HandleGrayedChanged();
源码:UI/GComboBox.cs (行 370)
RenderDropdownList()
virtual protected void RenderDropdownList();
源码:UI/GComboBox.cs (行 551)
SetCurrentState()
protected void SetCurrentState();
源码:UI/GComboBox.cs (行 360)
SetState(string)
protected void SetState(string value);
| 参数 | 类型 | 说明 |
|---|---|---|
value | string |
源码:UI/GComboBox.cs (行 354)
Setup_AfterAdd(ByteBuffer, int)
override public void Setup_AfterAdd(ByteBuffer buffer, int beginPos);
| 参数 | 类型 | 说明 |
|---|---|---|
buffer | ByteBuffer | |
beginPos | int |
源码:UI/GComboBox.cs (行 457)
ShowDropdown()
protected void ShowDropdown();
源码:UI/GComboBox.cs (行 535)
UpdateDropdownList()
public void UpdateDropdownList();
源码:UI/GComboBox.cs (行 525)
属性
icon
override public string icon { get; set; }
Icon of the combobox.
源码:UI/GComboBox.cs (行 74)
iconList
public List<string> iconList { get; }
源码:UI/GComboBox.cs (行 233)
icons
public string[] icons { get; set; }
源码:UI/GComboBox.cs (行 188)
itemList
public List<string> itemList { get; }
源码:UI/GComboBox.cs (行 217)
items
public string[] items { get; set; }
Items to build up drop down list.
源码:UI/GComboBox.cs (行 170)
onChanged
public EventListener onChanged { get; }
Dispatched when selection was changed.
源码:UI/GComboBox.cs (行 66)
popupDirection
public PopupDirection popupDirection { get; set; }
源码:UI/GComboBox.cs (行 332)
selectedIndex
public int selectedIndex { get; set; }
Selected index.
源码:UI/GComboBox.cs (行 268)
selectionController
public Controller selectionController { get; set; }
源码:UI/GComboBox.cs (行 300)
text
override public string text { get; set; }
Same of the title.
源码:UI/GComboBox.cs (行 115)
title
public string title { get; set; }
Title of the combobox.
源码:UI/GComboBox.cs (行 95)
titleColor
public Color titleColor { get; set; }
Text color
源码:UI/GComboBox.cs (行 124)
titleFontSize
public int titleFontSize { get; set; }
源码:UI/GComboBox.cs (行 145)
value
public string value { get; set; }
Selected value.
源码:UI/GComboBox.cs (行 309)
valueList
public List<string> valueList { get; }
源码:UI/GComboBox.cs (行 225)
values
public string[] values { get; set; }
Values, should be same size of the items.
源码:UI/GComboBox.cs (行 203)