C# Class ListBox, Unity3D-GUIExtras

Inheritance: MonoBehaviour
Show file Open project: ProgManUA/Unity3D-GUIExtras Class Usage Examples

Protected Properties

Property Type Description
custom_skin GUISkin
custom_skin_flag bool
lastSelectedIndex int

Public Methods

Method Description
AddItem ( System c_ItemLabel ) : int
AddItem ( System c_ItemLabel, int c_ItemH ) : int
AddItem ( Texture2D c_ItemIcon ) : int
AddItem ( Texture2D c_ItemIcon, int c_ItemH ) : int
GetSelectedID ( ) : int
InsertItem ( int insertPos, System c_ItemLabel ) : int
InsertItem ( int insertPos, System c_ItemLabel, int c_ItemH ) : int
InsertItem ( int insertPos, Texture2D c_ItemIcon ) : int
InsertItem ( int insertPos, Texture2D c_ItemIcon, int c_ItemH ) : int
ListBox ( Rect c_drawRect, Rect c_visibleRect ) : System.Collections
ListBox ( Rect c_drawRect, Rect c_visibleRect, GUISkin c_custom_skin ) : System.Collections
ListBox ( Rect c_drawRect, Rect c_visibleRect, bool c_horScrollV, bool c_vertScrollV ) : System.Collections
ListBox ( Rect c_drawRect, Rect c_visibleRect, bool c_horScrollV, bool c_vertScrollV, GUISkin c_custom_skin ) : System.Collections
ReDraw ( ) : bool
RemoveItem ( int iIndex ) : bool

Method Details

AddItem() public method

public AddItem ( System c_ItemLabel ) : int
c_ItemLabel System
return int

AddItem() public method

public AddItem ( System c_ItemLabel, int c_ItemH ) : int
c_ItemLabel System
c_ItemH int
return int

AddItem() public method

public AddItem ( Texture2D c_ItemIcon ) : int
c_ItemIcon UnityEngine.Texture2D
return int

AddItem() public method

public AddItem ( Texture2D c_ItemIcon, int c_ItemH ) : int
c_ItemIcon UnityEngine.Texture2D
c_ItemH int
return int

GetSelectedID() public method

public GetSelectedID ( ) : int
return int

InsertItem() public method

public InsertItem ( int insertPos, System c_ItemLabel ) : int
insertPos int
c_ItemLabel System
return int

InsertItem() public method

public InsertItem ( int insertPos, System c_ItemLabel, int c_ItemH ) : int
insertPos int
c_ItemLabel System
c_ItemH int
return int

InsertItem() public method

public InsertItem ( int insertPos, Texture2D c_ItemIcon ) : int
insertPos int
c_ItemIcon UnityEngine.Texture2D
return int

InsertItem() public method

public InsertItem ( int insertPos, Texture2D c_ItemIcon, int c_ItemH ) : int
insertPos int
c_ItemIcon UnityEngine.Texture2D
c_ItemH int
return int

ListBox() public method

public ListBox ( Rect c_drawRect, Rect c_visibleRect ) : System.Collections
c_drawRect Rect
c_visibleRect Rect
return System.Collections

ListBox() public method

public ListBox ( Rect c_drawRect, Rect c_visibleRect, GUISkin c_custom_skin ) : System.Collections
c_drawRect Rect
c_visibleRect Rect
c_custom_skin UnityEngine.GUISkin
return System.Collections

ListBox() public method

public ListBox ( Rect c_drawRect, Rect c_visibleRect, bool c_horScrollV, bool c_vertScrollV ) : System.Collections
c_drawRect Rect
c_visibleRect Rect
c_horScrollV bool
c_vertScrollV bool
return System.Collections

ListBox() public method

public ListBox ( Rect c_drawRect, Rect c_visibleRect, bool c_horScrollV, bool c_vertScrollV, GUISkin c_custom_skin ) : System.Collections
c_drawRect Rect
c_visibleRect Rect
c_horScrollV bool
c_vertScrollV bool
c_custom_skin UnityEngine.GUISkin
return System.Collections

ReDraw() public method

public ReDraw ( ) : bool
return bool

RemoveItem() public method

public RemoveItem ( int iIndex ) : bool
iIndex int
return bool

Property Details

custom_skin protected property

protected GUISkin custom_skin
return GUISkin

custom_skin_flag protected property

protected bool custom_skin_flag
return bool

lastSelectedIndex protected property

protected int lastSelectedIndex
return int