C# Class NetworkSkins.UI.UIUtil

Mostra file Open project: boformer/NetworkSkins

Public Methods

Method Description
CreateDropDown ( UIComponent parent ) : UIDropDown
CreateDropDownTextFieldWithLabel ( UILabel &label, UITextField &textField, UIComponent parent, string labelText, float width ) : UIDropDown
CreateDropDownWithLabel ( UILabel &label, UIComponent parent, string labelText, float width ) : UIDropDown
CreateSlider ( UIComponent parent, string text, float min, float max, float step, float defaultValue, [ eventCallback ) : UIPanel
GenerateBeautifiedPrefabName ( PrefabInfo prefab ) : string

Private Methods

Method Description
AddLabel ( UIComponent parent, string text, float width, float dropDownHeight ) : UILabel
AddSpacesToSentence ( string text ) : string
CreateTextField ( UIComponent parent ) : UITextField

Method Details

CreateDropDown() public static method

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

CreateDropDownTextFieldWithLabel() public static method

public static CreateDropDownTextFieldWithLabel ( UILabel &label, UITextField &textField, UIComponent parent, string labelText, float width ) : UIDropDown
label UILabel
textField UITextField
parent UIComponent
labelText string
width float
return UIDropDown

CreateDropDownWithLabel() public static method

public static CreateDropDownWithLabel ( UILabel &label, UIComponent parent, string labelText, float width ) : UIDropDown
label UILabel
parent UIComponent
labelText string
width float
return UIDropDown

CreateSlider() public static method

public static CreateSlider ( UIComponent parent, string text, float min, float max, float step, float defaultValue, [ eventCallback ) : UIPanel
parent UIComponent
text string
min float
max float
step float
defaultValue float
eventCallback [
return UIPanel

GenerateBeautifiedPrefabName() public static method

public static GenerateBeautifiedPrefabName ( PrefabInfo prefab ) : string
prefab PrefabInfo
return string