C# Class UITextList, Hero.Coli

Inheritance: MonoBehaviour
Exibir arquivo Open project: CyberCRI/Hero.Coli Class Usage Examples

Public Properties

Property Type Description
maxEntries int
maxHeight float
maxWidth float
style Style,
supportScrollWheel bool
textLabel UILabel,

Protected Properties

Property Type Description
mParagraphs List
mScroll float
mSelected bool
mSeparator char[]
mTotalLines int

Public Methods

Method Description
Add ( string text ) : void

Add a new paragraph.

Awake ( ) : void

Automatically find the values if none were specified.

Clear ( ) : void

Clear the text.

OnScroll ( float val ) : void

Allow scrolling of the text list.

OnSelect ( bool selected ) : void

Remember whether the widget is selected.

Protected Methods

Method Description
Add ( string text, bool updateVisible ) : void

Add a new paragraph.

UpdateVisibleText ( ) : void

Refill the text label based on what's currently visible.

Method Details

Add() public method

Add a new paragraph.
public Add ( string text ) : void
text string
return void

Add() protected method

Add a new paragraph.
protected Add ( string text, bool updateVisible ) : void
text string
updateVisible bool
return void

Awake() public method

Automatically find the values if none were specified.
public Awake ( ) : void
return void

Clear() public method

Clear the text.
public Clear ( ) : void
return void

OnScroll() public method

Allow scrolling of the text list.
public OnScroll ( float val ) : void
val float
return void

OnSelect() public method

Remember whether the widget is selected.
public OnSelect ( bool selected ) : void
selected bool
return void

UpdateVisibleText() protected method

Refill the text label based on what's currently visible.
protected UpdateVisibleText ( ) : void
return void

Property Details

mParagraphs protected_oe property

protected List mParagraphs
return List

mScroll protected_oe property

protected float mScroll
return float

mSelected protected_oe property

protected bool mSelected
return bool

mSeparator protected_oe property

protected char[] mSeparator
return char[]

mTotalLines protected_oe property

protected int mTotalLines
return int

maxEntries public_oe property

public int maxEntries
return int

maxHeight public_oe property

public float maxHeight
return float

maxWidth public_oe property

public float maxWidth
return float

style public_oe property

public Style, style
return Style,

supportScrollWheel public_oe property

public bool supportScrollWheel
return bool

textLabel public_oe property

public UILabel, textLabel
return UILabel,