C# Class HUDElement, RPGQuest

Base class for all elements in the HUD.
Inheritance: MonoBehaviour
Mostrar archivo Open project: hughrogers/RPGQuest Class Usage Examples

Public Properties

Property Type Description
alphaBlend bool
asInt bool
barColor int
bounds Rect
columns int
contentType HUDContentType
displayType HUDDisplayType
divider string
fold bool
imageAspect float
imageName string
nameType HUDNameType
numberVariable bool
rows int
scaleMode ScaleMode,
shadowColor int
shadowOffset Vector2
showBox bool
showMax bool
showShadow bool
spacing float
statusID int
text string[]
textAnchor TextAnchor
textColor int
texture UnityEngine.Texture2D
type HUDElementType
useImage bool
variableName string

Public Methods

Method Description
AddTexture ( Texture2D hudTexture, Character, c, Vector2 pos, GUIFont, font, int hudID ) : Texture2D
Changed ( Character, c, int hudID ) : bool
GetImage ( ) : Texture2D
GetImageOptions ( Hashtable ht ) : Hashtable
GetTextOptions ( Hashtable ht ) : Hashtable
GetVariableText ( ) : string
HUDElement ( ) : System.Collections
SetImageOptions ( Hashtable ht ) : void
SetTextOptions ( Hashtable ht ) : void
ShowElement ( Character, c ) : void

Private Methods

Method Description
GetAnchoredRect ( Vector2 pos, Vector2 size, Rect b ) : Rect

Method Details

AddTexture() public method

public AddTexture ( Texture2D hudTexture, Character, c, Vector2 pos, GUIFont, font, int hudID ) : Texture2D
hudTexture UnityEngine.Texture2D
c Character,
pos Vector2
font GUIFont,
hudID int
return UnityEngine.Texture2D

Changed() public method

public Changed ( Character, c, int hudID ) : bool
c Character,
hudID int
return bool

GetImage() public method

public GetImage ( ) : Texture2D
return UnityEngine.Texture2D

GetImageOptions() public method

public GetImageOptions ( Hashtable ht ) : Hashtable
ht Hashtable
return Hashtable

GetTextOptions() public method

public GetTextOptions ( Hashtable ht ) : Hashtable
ht Hashtable
return Hashtable

GetVariableText() public method

public GetVariableText ( ) : string
return string

HUDElement() public method

public HUDElement ( ) : System.Collections
return System.Collections

SetImageOptions() public method

public SetImageOptions ( Hashtable ht ) : void
ht Hashtable
return void

SetTextOptions() public method

public SetTextOptions ( Hashtable ht ) : void
ht Hashtable
return void

ShowElement() public method

public ShowElement ( Character, c ) : void
c Character,
return void

Property Details

alphaBlend public_oe property

public bool alphaBlend
return bool

asInt public_oe property

public bool asInt
return bool

barColor public_oe property

public int barColor
return int

bounds public_oe property

public Rect bounds
return Rect

columns public_oe property

public int columns
return int

contentType public_oe property

public HUDContentType contentType
return HUDContentType

displayType public_oe property

public HUDDisplayType displayType
return HUDDisplayType

divider public_oe property

public string divider
return string

fold public_oe property

public bool fold
return bool

imageAspect public_oe property

public float imageAspect
return float

imageName public_oe property

public string imageName
return string

nameType public_oe property

public HUDNameType nameType
return HUDNameType

numberVariable public_oe property

public bool numberVariable
return bool

rows public_oe property

public int rows
return int

scaleMode public_oe property

public ScaleMode, scaleMode
return ScaleMode,

shadowColor public_oe property

public int shadowColor
return int

shadowOffset public_oe property

public Vector2 shadowOffset
return Vector2

showBox public_oe property

public bool showBox
return bool

showMax public_oe property

public bool showMax
return bool

showShadow public_oe property

public bool showShadow
return bool

spacing public_oe property

public float spacing
return float

statusID public_oe property

public int statusID
return int

text public_oe property

public string[] text
return string[]

textAnchor public_oe property

public TextAnchor textAnchor
return TextAnchor

textColor public_oe property

public int textColor
return int

texture public_oe property

public Texture2D,UnityEngine texture
return UnityEngine.Texture2D

type public_oe property

public HUDElementType type
return HUDElementType

useImage public_oe property

public bool useImage
return bool

variableName public_oe property

public string variableName
return string