|
NGUI: Next-Gen UI kit
3.7.2
|
All children added to the game object with this script will be arranged into a table with rows and columns automatically adjusting their size to fit their content (think "table" tag in HTML). More...
Public Types | |
| enum | Direction { Direction.Down, Direction.Up } |
| enum | Sorting { Sorting.None, Sorting.Alphabetic, Sorting.Horizontal, Sorting.Vertical, Sorting.Custom } |
Public Member Functions | |
| delegate void | OnReposition () |
| List< Transform > | GetChildList () |
| Get the current list of the grid's children. More... | |
| virtual void | Reposition () |
| Recalculate the position of all elements within the table, sorting them alphabetically if necessary. More... | |
Public Attributes | |
| int | columns = 0 |
| How many columns there will be before a new line is started. 0 means unlimited. More... | |
| Direction | direction = Direction.Down |
| Which way the new lines will be added. More... | |
| Sorting | sorting = Sorting.None |
| How to sort the grid's elements. More... | |
| UIWidget.Pivot | pivot = UIWidget.Pivot.TopLeft |
| Final pivot point for the grid's content. More... | |
| bool | hideInactive = true |
| Whether inactive children will be discarded from the table's calculations. More... | |
| bool | keepWithinPanel = false |
| Whether the parent container will be notified of the table's changes. More... | |
| Vector2 | padding = Vector2.zero |
| Padding around each entry, in pixels. More... | |
| OnReposition | onReposition |
| Delegate function that will be called when the table repositions its content. More... | |
| System.Comparison< Transform > | onCustomSort |
| Custom sort delegate, used when the sorting method is set to 'custom'. More... | |
Protected Member Functions | |
| virtual void | Sort (List< Transform > list) |
| Want your own custom sorting logic? Override this function. More... | |
| virtual void | Start () |
| Position the grid's contents when the script starts. More... | |
| virtual void | Init () |
| Find the necessary components. More... | |
| virtual void | LateUpdate () |
| Is it time to reposition? Do so now. More... | |
| void | RepositionVariableSize (List< Transform > children) |
| Positions the grid items, taking their own size into consideration. More... | |
Protected Attributes | |
| UIPanel | mPanel |
| bool | mInitDone = false |
| bool | mReposition = false |
Properties | |
| bool | repositionNow [set] |
| Reposition the children on the next Update(). More... | |
All children added to the game object with this script will be arranged into a table with rows and columns automatically adjusting their size to fit their content (think "table" tag in HTML).
| enum UITable.Direction |
| enum UITable.Sorting |
| List<Transform> UITable.GetChildList | ( | ) |
Get the current list of the grid's children.
|
protectedvirtual |
Find the necessary components.
|
protectedvirtual |
Is it time to reposition? Do so now.
| delegate void UITable.OnReposition | ( | ) |
|
virtual |
Recalculate the position of all elements within the table, sorting them alphabetically if necessary.
|
protected |
Positions the grid items, taking their own size into consideration.
|
protectedvirtual |
Want your own custom sorting logic? Override this function.
|
protectedvirtual |
Position the grid's contents when the script starts.
| int UITable.columns = 0 |
How many columns there will be before a new line is started. 0 means unlimited.
| Direction UITable.direction = Direction.Down |
Which way the new lines will be added.
| bool UITable.hideInactive = true |
Whether inactive children will be discarded from the table's calculations.
| bool UITable.keepWithinPanel = false |
Whether the parent container will be notified of the table's changes.
|
protected |
|
protected |
|
protected |
| System.Comparison<Transform> UITable.onCustomSort |
Custom sort delegate, used when the sorting method is set to 'custom'.
| OnReposition UITable.onReposition |
Delegate function that will be called when the table repositions its content.
| Vector2 UITable.padding = Vector2.zero |
Padding around each entry, in pixels.
| UIWidget.Pivot UITable.pivot = UIWidget.Pivot.TopLeft |
Final pivot point for the grid's content.
| Sorting UITable.sorting = Sorting.None |
How to sort the grid's elements.
|
set |
Reposition the children on the next Update().