C# Класс UIPanelBase, marblemadness

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

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

Свойство Тип Описание
deactivateAllOnDismiss bool
detargetOnDisable bool
index int

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

Свойство Тип Описание
changeDelegate EZValueChangedDelegate
childPanels EZLinkedList>
container IUIContainer
dragDropDelegate EZDragDropDelegate
inputDelegate EZInputDelegate
m_controlIsEnabled bool
m_started bool
prevTransIndex int
prevTransition EZTransition
tempTransCompleteDel TransitionCompleteDelegate
uiObjs EZLinkedList>

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

Метод Описание
AddChild ( GameObject go ) : void
AddDragDropDelegate ( EZDragDropDelegate del ) : void

Adds a delegate to be called with drag and drop notifications.

AddInputDelegate ( EZInputDelegate del ) : void
AddSubject ( GameObject go ) : void

Adds a GameObject as a subject of this panel's transitions.

AddTempTransitionDelegate ( TransitionCompleteDelegate del ) : void

Temporarily adds a delegate to be called when the next transition completes. This will be unset after it is called.

AddValueChangedDelegate ( EZValueChangedDelegate del ) : void
BringIn ( ) : void

Brings in the panel by playing its "Bring In Forward" transition.

CancelDrag ( ) : void
CompareIndices ( UIPanelBase, a, UIPanelBase, b ) : int
Dismiss ( ) : void

Dismisses the panel by playing its "Dismiss Forward" transition.

DragUpdatePosition ( POINTER_INFO, ptr ) : void
GetControl ( POINTER_INFO, &ptr ) : IUIObject
GetTransition ( UIPanelManager, transition ) : EZTransition

Returns a reference to the specified transition.

GetTransition ( int index ) : EZTransition

Returns a reference to the transition at the specified index.

GetTransition ( string transName ) : EZTransition

Returns a reference to the specified transition.

GetTransitionNames ( ) : string[]
GotFocus ( ) : bool
MakeChild ( GameObject go ) : void

Makes the specified GameObject a child of this panel, including making it a child of the panel's transform.

OnEZDragDrop_Internal ( EZDragDropParams, parms ) : void

Receives regular notification of drag & drop events pertaining to this object when an object is being dragged. This is called on potential drop targets when an object is dragged over them. It is also called on the object(s) being dragged/dropped.

OnInput ( POINTER_INFO, ptr ) : void
RemoveChild ( GameObject go ) : void
RemoveDragDropDelegate ( EZDragDropDelegate del ) : void

Removes a delegate from the list of those to be called with drag and drop notifications.

RemoveInputDelegate ( EZInputDelegate del ) : void
RemoveSubject ( GameObject go ) : void

Removes a GameObject as a subjects of this panel's transitions.

RemoveValueChangedDelegate ( EZValueChangedDelegate del ) : void
RequestContainership ( IUIContainer cont ) : bool
ScanChildren ( ) : void
SetDragDropDelegate ( EZDragDropDelegate del ) : void

Sets the delegate to be called with drag and drop notifications. NOTE: This will replace any previously registered delegates.

SetInputDelegate ( EZInputDelegate del ) : void
SetValueChangedDelegate ( EZValueChangedDelegate del ) : void
Start ( ) : void
StartTransition ( UIPanelManager, mode ) : void

Starts one of the panel's "bring in" or "dismiss" transitions.

StartTransition ( string transName ) : void

Starts the transition matching the specified name (case-insensitive).

TransitionCompleted ( EZTransition transition ) : void

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

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

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

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

public AddChild ( GameObject go ) : void
go GameObject
Результат void

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

Adds a delegate to be called with drag and drop notifications.
public AddDragDropDelegate ( EZDragDropDelegate del ) : void
del EZDragDropDelegate The delegate to add.
Результат void

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

public AddInputDelegate ( EZInputDelegate del ) : void
del EZInputDelegate
Результат void

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

Adds a GameObject as a subject of this panel's transitions.
public AddSubject ( GameObject go ) : void
go GameObject GameObject to be added as a subject.
Результат void

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

Temporarily adds a delegate to be called when the next transition completes. This will be unset after it is called.
public AddTempTransitionDelegate ( TransitionCompleteDelegate del ) : void
del TransitionCompleteDelegate Delegate to be called.
Результат void

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

public AddValueChangedDelegate ( EZValueChangedDelegate del ) : void
del EZValueChangedDelegate
Результат void

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

Brings in the panel by playing its "Bring In Forward" transition.
public BringIn ( ) : void
Результат void

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

public CancelDrag ( ) : void
Результат void

CompareIndices() публичный статический Метод

public static CompareIndices ( UIPanelBase, a, UIPanelBase, b ) : int
a UIPanelBase,
b UIPanelBase,
Результат int

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

Dismisses the panel by playing its "Dismiss Forward" transition.
public Dismiss ( ) : void
Результат void

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

public DragUpdatePosition ( POINTER_INFO, ptr ) : void
ptr POINTER_INFO,
Результат void

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

public GetControl ( POINTER_INFO, &ptr ) : IUIObject
ptr POINTER_INFO,
Результат IUIObject

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

Returns a reference to the specified transition.
public GetTransition ( UIPanelManager, transition ) : EZTransition
transition UIPanelManager, The enum identifying the transition to retrieve.
Результат EZTransition

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

Returns a reference to the transition at the specified index.
public GetTransition ( int index ) : EZTransition
index int The zero-based index of the transition to retrieve.
Результат EZTransition

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

Returns a reference to the specified transition.
public GetTransition ( string transName ) : EZTransition
transName string The name of the transition to retrieve.
Результат EZTransition

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

public GetTransitionNames ( ) : string[]
Результат string[]

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

public GotFocus ( ) : bool
Результат bool

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

Makes the specified GameObject a child of this panel, including making it a child of the panel's transform.
public MakeChild ( GameObject go ) : void
go GameObject GameObject to make a child of the panel.
Результат void

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

protected OnDisable ( ) : void
Результат void

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

Receives regular notification of drag & drop events pertaining to this object when an object is being dragged. This is called on potential drop targets when an object is dragged over them. It is also called on the object(s) being dragged/dropped.
public OnEZDragDrop_Internal ( EZDragDropParams, parms ) : void
parms EZDragDropParams, The EZDragDropParams structure which holds information about the event.
Результат void

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

public OnInput ( POINTER_INFO, ptr ) : void
ptr POINTER_INFO,
Результат void

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

public RemoveChild ( GameObject go ) : void
go GameObject
Результат void

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

Removes a delegate from the list of those to be called with drag and drop notifications.
public RemoveDragDropDelegate ( EZDragDropDelegate del ) : void
del EZDragDropDelegate The delegate to add.
Результат void

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

public RemoveInputDelegate ( EZInputDelegate del ) : void
del EZInputDelegate
Результат void

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

Removes a GameObject as a subjects of this panel's transitions.
public RemoveSubject ( GameObject go ) : void
go GameObject GameObject to be removed as a subject.
Результат void

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

public RemoveValueChangedDelegate ( EZValueChangedDelegate del ) : void
del EZValueChangedDelegate
Результат void

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

public RequestContainership ( IUIContainer cont ) : bool
cont IUIContainer
Результат bool

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

public ScanChildren ( ) : void
Результат void

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

Sets the delegate to be called with drag and drop notifications. NOTE: This will replace any previously registered delegates.
public SetDragDropDelegate ( EZDragDropDelegate del ) : void
del EZDragDropDelegate The delegate to add.
Результат void

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

public SetInputDelegate ( EZInputDelegate del ) : void
del EZInputDelegate
Результат void

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

public SetValueChangedDelegate ( EZValueChangedDelegate del ) : void
del EZValueChangedDelegate
Результат void

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

protected SetupTransitionSubjects ( ) : void
Результат void

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

public Start ( ) : void
Результат void

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

Starts one of the panel's "bring in" or "dismiss" transitions.
public StartTransition ( UIPanelManager, mode ) : void
mode UIPanelManager, The mode corresponding to the transition that should be played.
Результат void

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

Starts the transition matching the specified name (case-insensitive).
public StartTransition ( string transName ) : void
transName string The name of the transition to start. Ex: "Bring In Forward"
Результат void

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

public TransitionCompleted ( EZTransition transition ) : void
transition EZTransition
Результат void

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

changeDelegate защищенное свойство

protected EZValueChangedDelegate changeDelegate
Результат EZValueChangedDelegate

childPanels защищенное свойство

protected EZLinkedList> childPanels
Результат EZLinkedList>

container защищенное свойство

protected IUIContainer container
Результат IUIContainer

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

When true, will recursively set all child objects to inactive. Conversely, it will recursively set all child objects to active when brought in.
public bool deactivateAllOnDismiss
Результат bool

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

When set to true, the control will instruct any pointers which have it as their target to de-target them. Use this if you are deactivating a control and want no input to go to it. It is strongly recommended NOT to use this feature on any control that appears in a scroll list, or else you may be unable to scroll past the edge of the list's viewable area.
public bool detargetOnDisable
Результат bool

dragDropDelegate защищенное свойство

protected EZDragDropDelegate dragDropDelegate
Результат EZDragDropDelegate

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

The index of the panel in the optional UIPanelManager which manages it. This is an optional value that allows you to determine the order in which this panel will appear in a menu that is navigated without specifying the specific panels to go to, but rather moves to each panel based upon its index. If no default panel is specified in the UIPanelManager, the panel with the lowest index value will be the first panel shown.
public int index
Результат int

inputDelegate защищенное свойство

protected EZInputDelegate inputDelegate
Результат EZInputDelegate

m_controlIsEnabled защищенное свойство

protected bool m_controlIsEnabled
Результат bool

m_started защищенное свойство

protected bool m_started
Результат bool

prevTransIndex защищенное свойство

protected int prevTransIndex
Результат int

prevTransition защищенное свойство

protected EZTransition prevTransition
Результат EZTransition

tempTransCompleteDel защищенное свойство

protected TransitionCompleteDelegate tempTransCompleteDel
Результат TransitionCompleteDelegate

uiObjs защищенное свойство

protected EZLinkedList> uiObjs
Результат EZLinkedList>