C# Класс UIPanelManager, urban-survivors

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

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

Свойство Тип Описание
advancePastEnd bool
circular bool
deactivateAllButInitialAtStart bool
defaultPanel UIPanelBase,
initialPanel UIPanelBase,
linearNavigation bool

Защищенные свойства (Protected)

Свойство Тип Описание
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