ORK Framework  2.25.2
API Documentation
ORKFramework.TextFormatSetting Class Reference
Inheritance diagram for ORKFramework.TextFormatSetting:
ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

 TextFormatSetting (int colorID, int shadowColorID)
 
override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
void SetTextStyle (GUIStyle textStyle)
 
Color GetTextColor ()
 
Color GetShadowColor ()
 
Color GetOutlineColor ()
 
- Public Member Functions inherited from ORKFramework.BaseData
virtual DataObject GetData ()
 Gets a ORKFramework.DataObject representing the class. More...
 
virtual void EditorAutoSetup (string fieldName)
 Called for all fields using the autoSetup option of the ORKFramework.ORKEditorLayoutAttribute. More...
 

Public Attributes

int colorID = 0
 
bool showShadow = false
 
int shadowColorID = 1
 
Vector2 shadowOffset = new Vector2(1, 1)
 
bool showOutline = false
 
int outlineColorID = 1
 
Vector2 outlineOffset = new Vector2(1, 1)
 
AssetSource< Font > font = new AssetSource<Font>()
 
int fontSize = 20
 
FontStyle fontStyle = FontStyle.Normal
 

Properties

static TextFormatSetting Default [get]
 

Member Function Documentation

◆ SetData()

override void ORKFramework.TextFormatSetting.SetData ( DataObject  data)
virtual

Sets the variables of the class using a ORKFramework.DataObject.

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.