C# 클래스 UIPanelManager, urban-survivors

상속: MonoBehaviour
파일 보기 프로젝트 열기: exdev/urban-survivors 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
advancePastEnd bool
circular bool
deactivateAllButInitialAtStart bool
defaultPanel UIPanelBase,
initialPanel UIPanelBase,
linearNavigation bool

보호된 프로퍼티들

프로퍼티 타입 설명
breadcrumbs List
changeDelegate EZValueChangedDelegate
container IUIContainer
curPanel UIPanelBase,
inputDelegate EZInputDelegate
m_controlIsEnabled bool
m_instance UIPanelManager,
panels List

공개 메소드들

메소드 설명
AddChild ( GameObject go ) : void
AddInputDelegate ( EZInputDelegate del ) : void
AddSubject ( GameObject go ) : void
AddValueChangedDelegate ( EZValueChangedDelegate del ) : void
Awake ( ) : void
BringIn ( UIPanelBase, panel ) : void

Brings in the specified panel in a manner that portrays the menu moving in the direction determined by comparing the index of the current panel to the one being brought up.

BringIn ( UIPanelBase, panel, MENU_DIRECTION dir ) : void

Brings in the specified panel in a manner that portrays the menu moving in the specified direction. If "Auto" is specified for the direction, forward/backward is determined by comparing the index of the current panel to the one being brought up.

BringIn ( int panelIndex ) : void

Brings in the specified panel in a manner that portrays the menu moving in the direction determined by comparing the index of the current panel to the one being brought up.

BringIn ( int panelIndex, MENU_DIRECTION dir ) : void

Brings in the specified panel in a manner that portrays the menu moving in the specified direction. If "Auto" is specified for the direction, forward/backward is determined by comparing the index of the current panel to the one being brought up.

BringIn ( string panelName ) : void

Brings in the specified panel in a manner that portrays the menu moving in the direction determined by comparing the index of the current panel to the one being brought up.

BringIn ( string panelName, MENU_DIRECTION dir ) : void

Brings in the specified panel in a manner that portrays the menu moving in the specified direction. If "Auto" is specified for the direction, forward/backward is determined by comparing the index of the current panel to the one being brought up.

BringInImmediate ( UIPanelBase, panel ) : void

Same as BringIn(...), but skips the panel's transition, fast-forwarding it instantly to its end state. See the corresponding BringIn() entry for more details.

BringInImmediate ( UIPanelBase, panel, MENU_DIRECTION dir ) : void

Same as BringIn(...), but skips the panel's transition, fast-forwarding it instantly to its end state. See the corresponding BringIn() entry for more details.

BringInImmediate ( int panelIndex ) : void

Same as BringIn(...), but skips the panel's transition, fast-forwarding it instantly to its end state. See the corresponding BringIn() entry for more details.

BringInImmediate ( int panelIndex, MENU_DIRECTION dir ) : void

Same as BringIn(...), but skips the panel's transition, fast-forwarding it instantly to its end state. See the corresponding BringIn() entry for more details.

BringInImmediate ( string panelName ) : void

Same as BringIn(...), but skips the panel's transition, fast-forwarding it instantly to its end state. See the corresponding BringIn() entry for more details.

BringInImmediate ( string panelName, MENU_DIRECTION dir ) : void

Same as BringIn(...), but skips the panel's transition, fast-forwarding it instantly to its end state. See the corresponding BringIn() entry for more details.

Create ( string name, Vector3 pos ) : UIPanelManager,

Creates a GameObject and attaches this component type to it.

Dismiss ( ) : void

Dismisses the currently showing panel, if any, in the direction specified.

Dismiss ( MENU_DIRECTION dir ) : void

Dismisses the currently showing panel, if any, in the direction specified.

DismissImmediate ( ) : void

Same as Dismiss(...), but skips the panel's transition, fast-forwarding it instantly to its end state. See the corresponding Dismiss() entry for more details.

DismissImmediate ( MENU_DIRECTION dir ) : void

Same as Dismiss(...), but skips the panel's transition, fast-forwarding it instantly to its end state. See the corresponding Dismiss() entry for more details.

GotFocus ( ) : bool
MakeChild ( GameObject go ) : void

Makes the specified GameObject a child of the panel manager, as well as makes it a child of the panel manager's transform.

MoveBack ( ) : bool

Moves the menu back to the previous panel in the sequence (determined by panel index). Automatically dismisses the currently displaying panel using the "back" mode.

MoveForward ( ) : bool

Moves the menu forward to the next panel in the sequence (determined by panel index). Automatically dismisses the currently displaying panel using the forward mode.

OnInput ( POINTER_INFO, ptr ) : void
RemoveChild ( GameObject go ) : void
RemoveInputDelegate ( EZInputDelegate del ) : void
RemoveSubject ( GameObject go ) : void
RemoveValueChangedDelegate ( EZValueChangedDelegate del ) : void
RequestContainership ( IUIContainer cont ) : bool
ScanChildren ( ) : void
SetInputDelegate ( EZInputDelegate del ) : void
SetLayerRecursively ( GameObject go, int layer ) : void
SetValueChangedDelegate ( EZValueChangedDelegate del ) : void

비공개 메소드들

메소드 설명
Start ( ) : IEnumerator

메소드 상세

AddChild() 공개 메소드

public AddChild ( GameObject go ) : void
go GameObject
리턴 void

AddInputDelegate() 공개 메소드

public AddInputDelegate ( EZInputDelegate del ) : void
del EZInputDelegate
리턴 void

AddSubject() 공개 메소드

public AddSubject ( GameObject go ) : void
go GameObject
리턴 void

AddValueChangedDelegate() 공개 메소드

public AddValueChangedDelegate ( EZValueChangedDelegate del ) : void
del EZValueChangedDelegate
리턴 void

Awake() 공개 메소드

public Awake ( ) : void
리턴 void

BringIn() 공개 메소드

Brings in the specified panel in a manner that portrays the menu moving in the direction determined by comparing the index of the current panel to the one being brought up.
public BringIn ( UIPanelBase, panel ) : void
panel UIPanelBase, Reference to the panel to bring up.
리턴 void

BringIn() 공개 메소드

Brings in the specified panel in a manner that portrays the menu moving in the specified direction. If "Auto" is specified for the direction, forward/backward is determined by comparing the index of the current panel to the one being brought up.
public BringIn ( UIPanelBase, panel, MENU_DIRECTION dir ) : void
panel UIPanelBase, Reference to the panel to bring up.
dir MENU_DIRECTION Direction the menu should appear to be moving. /// If "Auto" is specified, the direction is determined by comparing /// the index of the current panel to the one being brought up.
리턴 void

BringIn() 공개 메소드

Brings in the specified panel in a manner that portrays the menu moving in the direction determined by comparing the index of the current panel to the one being brought up.
public BringIn ( int panelIndex ) : void
panelIndex int Index of the panel.
리턴 void

BringIn() 공개 메소드

Brings in the specified panel in a manner that portrays the menu moving in the specified direction. If "Auto" is specified for the direction, forward/backward is determined by comparing the index of the current panel to the one being brought up.
public BringIn ( int panelIndex, MENU_DIRECTION dir ) : void
panelIndex int Index of the panel to bring in.
dir MENU_DIRECTION Direction the menu should appear to be moving. /// If "Auto" is specified, the direction is determined by comparing /// the index of the current panel to the one being brought up.
리턴 void

BringIn() 공개 메소드

Brings in the specified panel in a manner that portrays the menu moving in the direction determined by comparing the index of the current panel to the one being brought up.
public BringIn ( string panelName ) : void
panelName string Name of the panel to bring up.
리턴 void

BringIn() 공개 메소드

Brings in the specified panel in a manner that portrays the menu moving in the specified direction. If "Auto" is specified for the direction, forward/backward is determined by comparing the index of the current panel to the one being brought up.
public BringIn ( string panelName, MENU_DIRECTION dir ) : void
panelName string Name of the panel to bring up.
dir MENU_DIRECTION Direction the menu should appear to be moving. /// If "Auto" is specified, the direction is determined by comparing /// the index of the current panel to the one being brought up.
리턴 void

BringInImmediate() 공개 메소드

Same as BringIn(...), but skips the panel's transition, fast-forwarding it instantly to its end state. See the corresponding BringIn() entry for more details.
public BringInImmediate ( UIPanelBase, panel ) : void
panel UIPanelBase, Reference to the panel to bring up.
리턴 void

BringInImmediate() 공개 메소드

Same as BringIn(...), but skips the panel's transition, fast-forwarding it instantly to its end state. See the corresponding BringIn() entry for more details.
public BringInImmediate ( UIPanelBase, panel, MENU_DIRECTION dir ) : void
panel UIPanelBase, Reference to the panel to bring up.
dir MENU_DIRECTION Direction the menu should appear to be moving. /// If "Auto" is specified, the direction is determined by comparing /// the index of the current panel to the one being brought up.
리턴 void

BringInImmediate() 공개 메소드

Same as BringIn(...), but skips the panel's transition, fast-forwarding it instantly to its end state. See the corresponding BringIn() entry for more details.
public BringInImmediate ( int panelIndex ) : void
panelIndex int Index of the panel.
리턴 void

BringInImmediate() 공개 메소드

Same as BringIn(...), but skips the panel's transition, fast-forwarding it instantly to its end state. See the corresponding BringIn() entry for more details.
public BringInImmediate ( int panelIndex, MENU_DIRECTION dir ) : void
panelIndex int Index of the panel to bring in.
dir MENU_DIRECTION Direction the menu should appear to be moving. /// If "Auto" is specified, the direction is determined by comparing /// the index of the current panel to the one being brought up.
리턴 void

BringInImmediate() 공개 메소드

Same as BringIn(...), but skips the panel's transition, fast-forwarding it instantly to its end state. See the corresponding BringIn() entry for more details.
public BringInImmediate ( string panelName ) : void
panelName string Name of the panel to bring up.
리턴 void

BringInImmediate() 공개 메소드

Same as BringIn(...), but skips the panel's transition, fast-forwarding it instantly to its end state. See the corresponding BringIn() entry for more details.
public BringInImmediate ( string panelName, MENU_DIRECTION dir ) : void
panelName string Name of the panel to bring up.
dir MENU_DIRECTION Direction the menu should appear to be moving. /// If "Auto" is specified, the direction is determined by comparing /// the index of the current panel to the one being brought up.
리턴 void

Create() 정적인 공개 메소드

Creates a GameObject and attaches this component type to it.
static public Create ( string name, Vector3 pos ) : UIPanelManager,
name string Name to give to the new GameObject.
pos Vector3 Position, in world space, where the new object should be created.
리턴 UIPanelManager,

Dismiss() 공개 메소드

Dismisses the currently showing panel, if any, in the direction specified.
public Dismiss ( ) : void
리턴 void

Dismiss() 공개 메소드

Dismisses the currently showing panel, if any, in the direction specified.
public Dismiss ( MENU_DIRECTION dir ) : void
dir MENU_DIRECTION The direction in which the panel is to be dismissed.
리턴 void

DismissImmediate() 공개 메소드

Same as Dismiss(...), but skips the panel's transition, fast-forwarding it instantly to its end state. See the corresponding Dismiss() entry for more details.
public DismissImmediate ( ) : void
리턴 void

DismissImmediate() 공개 메소드

Same as Dismiss(...), but skips the panel's transition, fast-forwarding it instantly to its end state. See the corresponding Dismiss() entry for more details.
public DismissImmediate ( MENU_DIRECTION dir ) : void
dir MENU_DIRECTION The direction in which the panel is to be dismissed.
리턴 void

GotFocus() 공개 메소드

public GotFocus ( ) : bool
리턴 bool

MakeChild() 공개 메소드

Makes the specified GameObject a child of the panel manager, as well as makes it a child of the panel manager's transform.
public MakeChild ( GameObject go ) : void
go GameObject The GameObject to be made a child of the panel manager.
리턴 void

MoveBack() 공개 메소드

Moves the menu back to the previous panel in the sequence (determined by panel index). Automatically dismisses the currently displaying panel using the "back" mode.
public MoveBack ( ) : bool
리턴 bool

MoveForward() 공개 메소드

Moves the menu forward to the next panel in the sequence (determined by panel index). Automatically dismisses the currently displaying panel using the forward mode.
public MoveForward ( ) : bool
리턴 bool

OnInput() 공개 메소드

public OnInput ( POINTER_INFO, ptr ) : void
ptr POINTER_INFO,
리턴 void

RemoveChild() 공개 메소드

public RemoveChild ( GameObject go ) : void
go GameObject
리턴 void

RemoveInputDelegate() 공개 메소드

public RemoveInputDelegate ( EZInputDelegate del ) : void
del EZInputDelegate
리턴 void

RemoveSubject() 공개 메소드

public RemoveSubject ( GameObject go ) : void
go GameObject
리턴 void

RemoveValueChangedDelegate() 공개 메소드

public RemoveValueChangedDelegate ( EZValueChangedDelegate del ) : void
del EZValueChangedDelegate
리턴 void

RequestContainership() 공개 메소드

public RequestContainership ( IUIContainer cont ) : bool
cont IUIContainer
리턴 bool

ScanChildren() 공개 메소드

public ScanChildren ( ) : void
리턴 void

SetInputDelegate() 공개 메소드

public SetInputDelegate ( EZInputDelegate del ) : void
del EZInputDelegate
리턴 void

SetLayerRecursively() 공개 정적인 메소드

public static SetLayerRecursively ( GameObject go, int layer ) : void
go GameObject
layer int
리턴 void

SetValueChangedDelegate() 공개 메소드

public SetValueChangedDelegate ( EZValueChangedDelegate del ) : void
del EZValueChangedDelegate
리턴 void

프로퍼티 상세

advancePastEnd 공개적으로 프로퍼티

When true, calling MoveBack() or MoveForward(), or using a control to do the same at the first panel or last panel in a series will cause the current panel to be dismissed and is replaced with nothing. This is useful for when you want, for example, to be able to press a "Next" button at the last panel of a wizard and have it dismiss the last panel to make way for something else on the screen.
public bool advancePastEnd
리턴 bool

breadcrumbs 보호되어 있는 프로퍼티

protected List breadcrumbs
리턴 List

changeDelegate 보호되어 있는 프로퍼티

protected EZValueChangedDelegate changeDelegate
리턴 EZValueChangedDelegate

circular 공개적으로 프로퍼티

When true, the panels are intended to be navigated in a circular fashion, meaning that when you advance to the next or previous panels, if the end has been reached, it wraps back to the beginning, or vice versa. This option also forces linear navigation (same as setting the lienarNavigation setting to true).
public bool circular
리턴 bool

container 보호되어 있는 프로퍼티

protected IUIContainer container
리턴 IUIContainer

curPanel 보호되어 있는 프로퍼티

protected UIPanelBase, curPanel
리턴 UIPanelBase,

deactivateAllButInitialAtStart 공개적으로 프로퍼티

When true, all but the initial panel will be disabled at start.
public bool deactivateAllButInitialAtStart
리턴 bool

defaultPanel 공개적으로 프로퍼티

Deprecated. Use initialPanel instead.
public UIPanelBase, defaultPanel
리턴 UIPanelBase,

initialPanel 공개적으로 프로퍼티

The panel to show at the start of a menu sequence. This value overrides the indexing order in that the menu will begin at the initialPanel and then move from there based on index order (if using anonymous menu navigation).
public UIPanelBase, initialPanel
리턴 UIPanelBase,

inputDelegate 보호되어 있는 프로퍼티

protected EZInputDelegate inputDelegate
리턴 EZInputDelegate

linearNavigation 공개적으로 프로퍼티

When true, the internal navigation logic of the manager assumes that all navigation will proceed one panel to the next in a predefined order without "skipping around". Set this to true for wizard-like menus.
public bool linearNavigation
리턴 bool

m_controlIsEnabled 보호되어 있는 프로퍼티

protected bool m_controlIsEnabled
리턴 bool

m_instance 보호되어 있는 정적으로 프로퍼티

protected static UIPanelManager, m_instance
리턴 UIPanelManager,

panels 보호되어 있는 프로퍼티

protected List panels
리턴 List