C# Class BuildingThemes.GUI.UIFactory

Show file Open project: lisa-lionheart/TimeWarp

Public Properties

Property Type Description
s_atlases UITextureAtlas[]

Public Methods

Method Description
CreateButton ( UIComponent parent ) : UIButton
CreateCheckBox ( UIComponent parent ) : UICheckBox
CreateDropDown ( UIComponent parent ) : UIDropDown
CreateIconToggle ( UIComponent parent, string atlas, string checkedSprite, string uncheckedSprite ) : UICheckBox
CreateSlider ( UIPanel parent, float min, float max ) : UISlider
CreateTextField ( UIComponent parent ) : UITextField
GetAtlas ( string name ) : UITextureAtlas
ResizeIcon ( UISprite icon, Vector2 maxSize ) : void
TruncateLabel ( UILabel label, float maxWidth ) : void

Method Details

CreateButton() public static method

public static CreateButton ( UIComponent parent ) : UIButton
parent UIComponent
return UIButton

CreateCheckBox() public static method

public static CreateCheckBox ( UIComponent parent ) : UICheckBox
parent UIComponent
return UICheckBox

CreateDropDown() public static method

public static CreateDropDown ( UIComponent parent ) : UIDropDown
parent UIComponent
return UIDropDown

CreateIconToggle() public static method

public static CreateIconToggle ( UIComponent parent, string atlas, string checkedSprite, string uncheckedSprite ) : UICheckBox
parent UIComponent
atlas string
checkedSprite string
uncheckedSprite string
return UICheckBox

CreateSlider() public static method

public static CreateSlider ( UIPanel parent, float min, float max ) : UISlider
parent UIPanel
min float
max float
return UISlider

CreateTextField() public static method

public static CreateTextField ( UIComponent parent ) : UITextField
parent UIComponent
return UITextField

GetAtlas() public static method

public static GetAtlas ( string name ) : UITextureAtlas
name string
return UITextureAtlas

ResizeIcon() public static method

public static ResizeIcon ( UISprite icon, Vector2 maxSize ) : void
icon UISprite
maxSize UnityEngine.Vector2
return void

TruncateLabel() public static method

public static TruncateLabel ( UILabel label, float maxWidth ) : void
label UILabel
maxWidth float
return void

Property Details

s_atlases public static property

public static UITextureAtlas[] s_atlases
return UITextureAtlas[]