C# Class HUDElement, RPGQuest

Base class for all elements in the HUD.
Inheritance: MonoBehaviour
Show file 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 property

public bool alphaBlend
return bool

asInt public property

public bool asInt
return bool

barColor public property

public int barColor
return int

bounds public property

public Rect bounds
return Rect

columns public property

public int columns
return int

contentType public property

public HUDContentType contentType
return HUDContentType

displayType public property

public HUDDisplayType displayType
return HUDDisplayType

divider public property

public string divider
return string

fold public property

public bool fold
return bool

imageAspect public property

public float imageAspect
return float

imageName public property

public string imageName
return string

nameType public property

public HUDNameType nameType
return HUDNameType

numberVariable public property

public bool numberVariable
return bool

rows public property

public int rows
return int

scaleMode public property

public ScaleMode, scaleMode
return ScaleMode,

shadowColor public property

public int shadowColor
return int

shadowOffset public property

public Vector2 shadowOffset
return Vector2

showBox public property

public bool showBox
return bool

showMax public property

public bool showMax
return bool

showShadow public property

public bool showShadow
return bool

spacing public property

public float spacing
return float

statusID public property

public int statusID
return int

text public property

public string[] text
return string[]

textAnchor public property

public TextAnchor textAnchor
return TextAnchor

textColor public property

public int textColor
return int

texture public property

public Texture2D,UnityEngine texture
return UnityEngine.Texture2D

type public property

public HUDElementType type
return HUDElementType

useImage public property

public bool useImage
return bool

variableName public property

public string variableName
return string