C# Класс UIPopupList, LoopScorllViewForNGUI

Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
alignment NGUIText.Alignment
atlas UIAtlas,
backgroundColor Color
backgroundSprite string
bitmapFont UIFont,
current UIPopupList,
fontSize int
fontStyle FontStyle,
highlightColor Color
highlightSprite string
isAnimated bool
isLocalized bool
items List
onChange List
padding Vector2
position Position,
textColor Color
trueTypeFont Font

Private Properties

Свойство Тип Описание
Animate void
AnimateColor void
AnimatePosition void
AnimateScale void
GetHighlightPosition Vector3
Highlight void
OnClick void
OnEnable void
OnItemClick void
OnItemHover void
OnItemPress void
OnKey void
OnLocalize void
OnSelect void
OnValidate void
Select void
Start void
UpdateTweenPosition IEnumerator

Открытые методы

Метод Описание
Close ( ) : void

Manually close the popup list.

Защищенные методы

Метод Описание
TriggerCallbacks ( ) : void

Trigger all event notification callbacks.

Приватные методы

Метод Описание
Animate ( UIWidget, widget, bool placeAbove, float bottom ) : void

Helper function used to animate widgets.

AnimateColor ( UIWidget, widget ) : void

Helper function that causes the widget to smoothly fade in.

AnimatePosition ( UIWidget, widget, bool placeAbove, float bottom ) : void

Helper function that causes the widget to smoothly move into position.

AnimateScale ( UIWidget, widget, bool placeAbove, float bottom ) : void

Helper function that causes the widget to smoothly grow until it reaches its original size.

GetHighlightPosition ( ) : Vector3

Helper function that calculates where the tweened position should be.

Highlight ( UILabel, lbl, bool instant ) : void

Visibly highlight the specified transform by moving the highlight sprite to be over it.

OnClick ( ) : void

Display the drop-down list when the game object gets clicked on.

OnEnable ( ) : void

Remove legacy functionality.

OnItemClick ( GameObject go ) : void

Close the popup list on click.

OnItemHover ( GameObject go, bool isOver ) : void

Event function triggered when the mouse hovers over an item.

OnItemPress ( GameObject go, bool isPressed ) : void

Event function triggered when the drop-down list item gets clicked on.

OnKey ( KeyCode, key ) : void

React to key-based input.

OnLocalize ( ) : void

Localize the text label.

OnSelect ( bool isSelected ) : void

Get rid of the popup dialog when the selection gets lost.

OnValidate ( ) : void
Select ( UILabel, lbl, bool instant ) : void

Select the specified label.

Start ( ) : void

Send out the selection message on start.

UpdateTweenPosition ( ) : IEnumerator

Periodically update the tweened target position. It's needed because the popup list animates into view, and the target position changes.

Описание методов

Close() публичный Метод

Manually close the popup list.
public Close ( ) : void
Результат void

TriggerCallbacks() защищенный Метод

Trigger all event notification callbacks.
protected TriggerCallbacks ( ) : void
Результат void

Описание свойств

alignment публичное свойство

Label alignment to use.
public NGUIText.Alignment alignment
Результат NGUIText.Alignment

atlas публичное свойство

Atlas used by the sprites.
public UIAtlas, atlas
Результат UIAtlas,

backgroundColor публичное свойство

Color tint applied to the background.
public Color backgroundColor
Результат Color

backgroundSprite публичное свойство

Name of the sprite used to create the popup's background.
public string backgroundSprite
Результат string

bitmapFont публичное свойство

Font used by the labels.
public UIFont, bitmapFont
Результат UIFont,

current статическое публичное свойство

Current popup list. Only available during the OnSelectionChange event callback.
static public UIPopupList, current
Результат UIPopupList,

fontSize публичное свойство

Size of the font to use for the popup list's labels.
public int fontSize
Результат int

fontStyle публичное свойство

Font style used by the dynamic font.
public FontStyle, fontStyle
Результат FontStyle,

highlightColor публичное свойство

Color tint applied to the highlighter.
public Color highlightColor
Результат Color

highlightSprite публичное свойство

Name of the sprite used to highlight items.
public string highlightSprite
Результат string

isAnimated публичное свойство

Whether the popup list is animated or not. Disable for better performance.
public bool isAnimated
Результат bool

isLocalized публичное свойство

Whether the popup list's values will be localized.
public bool isLocalized
Результат bool

items публичное свойство

New line-delimited list of items.
public List items
Результат List

onChange публичное свойство

Callbacks triggered when the popup list gets a new item selection.
public List onChange
Результат List

padding публичное свойство

Amount of padding added to labels.
public Vector2 padding
Результат Vector2

position публичное свойство

Popup list's display style.
public Position, position
Результат Position,

textColor публичное свойство

Color tint applied to labels inside the list.
public Color textColor
Результат Color

trueTypeFont публичное свойство

True type font used by the labels. Alternative to specifying a bitmap font ('font').
public Font trueTypeFont
Результат Font