C# Class Hugula.UGUIExtend.ScrollRectTable

Inheritance: UnityEngine.MonoBehaviour
Datei anzeigen Open project: tenvick/hugula Class Usage Examples

Public Properties

Property Type Description
DataInsertStr string
DataRemoveStr string
PreRenderStr string
columns int
direction Direction
emptyItem UnityEngine.GameObject
onDataInsert SLua.LuaFunction
onDataRemove SLua.LuaFunction
onItemRender SLua.LuaFunction
onPreRender SLua.LuaFunction
padding Vector2
pageSize int
renderPerFrames float
tileItem ScrollRectItem
tileSize Vector3

Public Methods

Method Description
Clear ( ) : void
GetDataFromIndex ( int index ) : LuaTable
GetIndex ( ScrollRectItem item ) : int
InsertData ( object item, int index ) : int
Refresh ( ScrollRectItem item ) : void

Refresh the specified item's position.

Refresh ( int begin = -1, int end = -1 ) : void

Refresh the form give begin data Index.

RemoveChild ( ScrollRectItem item ) : int
RemoveDataAt ( int index ) : int
ScrollTo ( int index ) : void

Private Methods

Method Description
CalcBounds ( ) : void
CalcLastEndIndex ( ) : void
CalcPage ( ) : void
CheckShowEmpty ( ) : void
DoRefresh ( int begin, int end ) : void
LateUpdate ( ) : void

Is it time to reposition? Do so now.

PreLeftUp ( int i ) : void
PreRefresh ( int i ) : void
PreRender ( ScrollRectItem item, int index ) : void
PreRightDown ( int i ) : void
Render ( ) : void
RenderItem ( ) : void
Scroll ( int newHead, bool force ) : void
SetPosition ( RectTransform trans, int index ) : void
SetRangeSymbol ( ) : void
Start ( ) : void

Position the grid's contents when the script starts.

Update ( ) : void

Method Details

Clear() public method

public Clear ( ) : void
return void

GetDataFromIndex() public method

public GetDataFromIndex ( int index ) : LuaTable
index int
return LuaTable

GetIndex() public method

public GetIndex ( ScrollRectItem item ) : int
item ScrollRectItem
return int

InsertData() public method

public InsertData ( object item, int index ) : int
item object
index int
return int

Refresh() public method

Refresh the specified item's position.
public Refresh ( ScrollRectItem item ) : void
item ScrollRectItem /// Item. ///
return void

Refresh() public method

Refresh the form give begin data Index.
public Refresh ( int begin = -1, int end = -1 ) : void
begin int /// Begin. ///
end int
return void

RemoveChild() public method

public RemoveChild ( ScrollRectItem item ) : int
item ScrollRectItem
return int

RemoveDataAt() public method

public RemoveDataAt ( int index ) : int
index int
return int

ScrollTo() public method

public ScrollTo ( int index ) : void
index int
return void

Property Details

DataInsertStr public_oe static_oe property

insert data
public static string DataInsertStr
return string

DataRemoveStr public_oe static_oe property

remove data from table
public static string DataRemoveStr
return string

PreRenderStr public_oe static_oe property

prerender
public static string PreRenderStr
return string

columns public_oe property

public int columns
return int

direction public_oe property

public Direction direction
return Direction

emptyItem public_oe property

public GameObject,UnityEngine emptyItem
return UnityEngine.GameObject

onDataInsert public_oe property

public LuaFunction,SLua onDataInsert
return SLua.LuaFunction

onDataRemove public_oe property

public LuaFunction,SLua onDataRemove
return SLua.LuaFunction

onItemRender public_oe property

public LuaFunction,SLua onItemRender
return SLua.LuaFunction

onPreRender public_oe property

public LuaFunction,SLua onPreRender
return SLua.LuaFunction

padding public_oe property

public Vector2 padding
return Vector2

pageSize public_oe property

public int pageSize
return int

renderPerFrames public_oe property

public float renderPerFrames
return float

tileItem public_oe property

public ScrollRectItem,Hugula.UGUIExtend tileItem
return ScrollRectItem

tileSize public_oe property

public Vector3 tileSize
return Vector3