C# 클래스 UIPopupList, LoopScorllViewForNGUI

상속: MonoBehaviour
파일 보기 프로젝트 열기: tinyantstudio/LoopScorllViewForNGUI 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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