C# Class UITable, TheUnseen

Inheritance: UIWidgetContainer
显示文件 Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
columns int
direction Direction,
hideInactive bool
keepWithinPanel bool
onReposition OnReposition
padding Vector2
sorted bool

Protected Properties

Property Type Description
mChildren List
mInitDone bool
mPanel UIPanel,
mReposition bool

Protected Methods

Method Description
Init ( ) : void

Find the necessary components.

LateUpdate ( ) : void

Is it time to reposition? Do so now.

RepositionVariableSize ( List children ) : void

Positions the grid items, taking their own size into consideration.

Sort ( List list ) : void

Want your own custom sorting logic? Override this function.

SortByName ( Transform a, Transform b ) : int

Function that sorts items by name.

Start ( ) : void

Position the grid's contents when the script starts.

Private Methods

Method Description
Reposition ( ) : void

Method Details

Init() protected method

Find the necessary components.
protected Init ( ) : void
return void

LateUpdate() protected method

Is it time to reposition? Do so now.
protected LateUpdate ( ) : void
return void

RepositionVariableSize() protected method

Positions the grid items, taking their own size into consideration.
protected RepositionVariableSize ( List children ) : void
children List
return void

Sort() protected method

Want your own custom sorting logic? Override this function.
protected Sort ( List list ) : void
list List
return void

SortByName() static protected method

Function that sorts items by name.
static protected SortByName ( Transform a, Transform b ) : int
a Transform
b Transform
return int

Start() protected method

Position the grid's contents when the script starts.
protected Start ( ) : void
return void

Property Details

columns public_oe property

How many columns there will be before a new line is started. 0 means unlimited.
public int columns
return int

direction public_oe property

Which way the new lines will be added.
public Direction, direction
return Direction,

hideInactive public_oe property

Whether inactive children will be discarded from the table's calculations.
public bool hideInactive
return bool

keepWithinPanel public_oe property

Whether the parent container will be notified of the table's changes.
public bool keepWithinPanel
return bool

mChildren protected_oe property

protected List mChildren
return List

mInitDone protected_oe property

protected bool mInitDone
return bool

mPanel protected_oe property

protected UIPanel, mPanel
return UIPanel,

mReposition protected_oe property

protected bool mReposition
return bool

onReposition public_oe property

Delegate function that will be called when the table repositions its content.
public OnReposition onReposition
return OnReposition

padding public_oe property

Padding around each entry, in pixels.
public Vector2 padding
return Vector2

sorted public_oe property

Whether the table's contents will be sorted alphabetically.
public bool sorted
return bool