C# Class GUIFont, RPGQuest

Show file Open project: hughrogers/RPGQuest Class Usage Examples

Public Properties

Property Type Description
KERNING string
LETTER string
asciiStartOffset int
kerning float
kerningPairs Hashtable
letter GUILetter[]
lineSpacing float
preloaded bool

Public Methods

Method Description
AddTextTexture ( Texture2D texture, LabelContent, label, DialoguePosition, dp, Vector2 p2Offset ) : Texture2D
AddTextTexture ( Texture2D texture, LabelContent, label, float paddingX, Vector2 p2Offset, bool showShadow, Vector2 shadowOffset ) : Texture2D
AddTextTexture ( Texture2D texture, string text, Rect bounds, Color textColor, Color shadowColor, float paddingX, Vector2 p2Offset, bool showShadow, Vector2 shadowOffset, bool calcY ) : Texture2D
GUIFont ( ) : System.Collections
GUIFont ( Hashtable ht ) : System.Collections
GetData ( Hashtable ht ) : Hashtable
GetFittingTextLength ( string text, float space ) : int
GetLetter ( char c ) : GUILetter
GetLetterKerning ( int first, int second ) : float
GetTextSize ( string text ) : Vector2
GetTextTexture ( string text ) : Texture2D
GetTextTexture ( string text, int width, int height ) : Texture2D
Preload ( ) : void
SetData ( Hashtable ht ) : void
SetFont ( Font f ) : void

Method Details

AddTextTexture() public method

public AddTextTexture ( Texture2D texture, LabelContent, label, DialoguePosition, dp, Vector2 p2Offset ) : Texture2D
texture UnityEngine.Texture2D
label LabelContent,
dp DialoguePosition,
p2Offset Vector2
return UnityEngine.Texture2D

AddTextTexture() public method

public AddTextTexture ( Texture2D texture, LabelContent, label, float paddingX, Vector2 p2Offset, bool showShadow, Vector2 shadowOffset ) : Texture2D
texture UnityEngine.Texture2D
label LabelContent,
paddingX float
p2Offset Vector2
showShadow bool
shadowOffset Vector2
return UnityEngine.Texture2D

AddTextTexture() public method

public AddTextTexture ( Texture2D texture, string text, Rect bounds, Color textColor, Color shadowColor, float paddingX, Vector2 p2Offset, bool showShadow, Vector2 shadowOffset, bool calcY ) : Texture2D
texture UnityEngine.Texture2D
text string
bounds Rect
textColor Color
shadowColor Color
paddingX float
p2Offset Vector2
showShadow bool
shadowOffset Vector2
calcY bool
return UnityEngine.Texture2D

GUIFont() public method

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

GUIFont() public method

public GUIFont ( Hashtable ht ) : System.Collections
ht Hashtable
return System.Collections

GetData() public method

public GetData ( Hashtable ht ) : Hashtable
ht Hashtable
return Hashtable

GetFittingTextLength() public method

public GetFittingTextLength ( string text, float space ) : int
text string
space float
return int

GetLetter() public method

public GetLetter ( char c ) : GUILetter
c char
return GUILetter

GetLetterKerning() public method

public GetLetterKerning ( int first, int second ) : float
first int
second int
return float

GetTextSize() public method

public GetTextSize ( string text ) : Vector2
text string
return Vector2

GetTextTexture() public method

public GetTextTexture ( string text ) : Texture2D
text string
return UnityEngine.Texture2D

GetTextTexture() public method

public GetTextTexture ( string text, int width, int height ) : Texture2D
text string
width int
height int
return UnityEngine.Texture2D

Preload() public method

public Preload ( ) : void
return void

SetData() public method

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

SetFont() public method

public SetFont ( Font f ) : void
f Font
return void

Property Details

KERNING public static property

public static string KERNING
return string

LETTER public static property

public static string LETTER
return string

asciiStartOffset public property

public int asciiStartOffset
return int

kerning public property

public float kerning
return float

kerningPairs public property

public Hashtable kerningPairs
return Hashtable

letter public property

public GUILetter[] letter
return GUILetter[]

lineSpacing public property

public float lineSpacing
return float

preloaded public property

public bool preloaded
return bool