C# Class BusDriver.UI.UIGroup

Inheritance: IUIBuilder
显示文件 Open project: Yoooi0/BusDriver

Public Methods

Method Description
BlacklistStorable ( string name ) : void
CreateButton ( string label, UnityAction callback, Color buttonColor, Color textColor, bool rightSide = false ) : UIDynamicButton
CreateButton ( string label, UnityAction callback, bool rightSide = false ) : UIDynamicButton
CreateButtonEx ( ) : Transform
CreateDisabledButton ( string label, Color buttonColor, Color textColor, bool rightSide = false ) : UIDynamicButton
CreateHorizontalGroup ( float width, float height, Vector2 spacing, int count, Func itemCreator, bool rightSide = false ) : BusDriver.UI.UIHorizontalGroup
CreatePopup ( string paramName, string label, List values, string startingValue, JSONStorableStringChooser.SetStringCallback callback, bool rightSide = false ) : JSONStorableStringChooser
CreatePopup ( string paramName, string label, List values, string startingValue, JSONStorableStringChooser.SetStringCallback callback, bool scrollable, bool rightSide = false ) : JSONStorableStringChooser
CreatePopupEx ( ) : Transform
CreateScrollablePopup ( string paramName, string label, List values, string startingValue, JSONStorableStringChooser.SetStringCallback callback, bool rightSide = false ) : JSONStorableStringChooser
CreateSlider ( string paramName, string label, float startingValue, float minValue, float maxValue, JSONStorableFloat.SetFloatCallback callback, bool constrain, bool interactable, bool rightSide = false, string valueFormat = "F2" ) : JSONStorableFloat
CreateSlider ( string paramName, string label, float startingValue, float minValue, float maxValue, bool constrain, bool interactable, bool rightSide = false, string valueFormat = "F2" ) : JSONStorableFloat
CreateSliderEx ( ) : Transform
CreateSpacer ( float height, bool rightSide = false ) : UIDynamic
CreateTextField ( string paramName, string startingValue, float height, JSONStorableString.SetStringCallback callback, bool canInput = false, bool rightSide = false ) : JSONStorableString
CreateTextField ( string paramName, string startingValue, float height, bool canInput = false, bool rightSide = false ) : JSONStorableString
CreateToggle ( string paramName, string label, bool startingValue, JSONStorableBool.SetBoolCallback callback, bool rightSide = false ) : JSONStorableBool
CreateToggle ( string paramName, string label, bool startingValue, bool rightSide = false ) : JSONStorableBool
CreateToggleEx ( ) : Transform
Destroy ( ) : void
Destroy ( object o ) : void
RestoreConfig ( JSONNode config ) : void
SetVisible ( bool visible ) : void
StoreConfig ( JSONNode config ) : void
UIGroup ( IUIBuilder builder ) : SimpleJSON

Method Details

BlacklistStorable() public method

public BlacklistStorable ( string name ) : void
name string
return void

CreateButton() public method

public CreateButton ( string label, UnityAction callback, Color buttonColor, Color textColor, bool rightSide = false ) : UIDynamicButton
label string
callback UnityAction
buttonColor Color
textColor Color
rightSide bool
return UIDynamicButton

CreateButton() public method

public CreateButton ( string label, UnityAction callback, bool rightSide = false ) : UIDynamicButton
label string
callback UnityAction
rightSide bool
return UIDynamicButton

CreateButtonEx() public method

public CreateButtonEx ( ) : Transform
return Transform

CreateDisabledButton() public method

public CreateDisabledButton ( string label, Color buttonColor, Color textColor, bool rightSide = false ) : UIDynamicButton
label string
buttonColor Color
textColor Color
rightSide bool
return UIDynamicButton

CreateHorizontalGroup() public method

public CreateHorizontalGroup ( float width, float height, Vector2 spacing, int count, Func itemCreator, bool rightSide = false ) : BusDriver.UI.UIHorizontalGroup
width float
height float
spacing Vector2
count int
itemCreator Func
rightSide bool
return BusDriver.UI.UIHorizontalGroup

CreatePopup() public method

public CreatePopup ( string paramName, string label, List values, string startingValue, JSONStorableStringChooser.SetStringCallback callback, bool rightSide = false ) : JSONStorableStringChooser
paramName string
label string
values List
startingValue string
callback JSONStorableStringChooser.SetStringCallback
rightSide bool
return JSONStorableStringChooser

CreatePopup() public method

public CreatePopup ( string paramName, string label, List values, string startingValue, JSONStorableStringChooser.SetStringCallback callback, bool scrollable, bool rightSide = false ) : JSONStorableStringChooser
paramName string
label string
values List
startingValue string
callback JSONStorableStringChooser.SetStringCallback
scrollable bool
rightSide bool
return JSONStorableStringChooser

CreatePopupEx() public method

public CreatePopupEx ( ) : Transform
return Transform

CreateScrollablePopup() public method

public CreateScrollablePopup ( string paramName, string label, List values, string startingValue, JSONStorableStringChooser.SetStringCallback callback, bool rightSide = false ) : JSONStorableStringChooser
paramName string
label string
values List
startingValue string
callback JSONStorableStringChooser.SetStringCallback
rightSide bool
return JSONStorableStringChooser

CreateSlider() public method

public CreateSlider ( string paramName, string label, float startingValue, float minValue, float maxValue, JSONStorableFloat.SetFloatCallback callback, bool constrain, bool interactable, bool rightSide = false, string valueFormat = "F2" ) : JSONStorableFloat
paramName string
label string
startingValue float
minValue float
maxValue float
callback JSONStorableFloat.SetFloatCallback
constrain bool
interactable bool
rightSide bool
valueFormat string
return JSONStorableFloat

CreateSlider() public method

public CreateSlider ( string paramName, string label, float startingValue, float minValue, float maxValue, bool constrain, bool interactable, bool rightSide = false, string valueFormat = "F2" ) : JSONStorableFloat
paramName string
label string
startingValue float
minValue float
maxValue float
constrain bool
interactable bool
rightSide bool
valueFormat string
return JSONStorableFloat

CreateSliderEx() public method

public CreateSliderEx ( ) : Transform
return Transform

CreateSpacer() public method

public CreateSpacer ( float height, bool rightSide = false ) : UIDynamic
height float
rightSide bool
return UIDynamic

CreateTextField() public method

public CreateTextField ( string paramName, string startingValue, float height, JSONStorableString.SetStringCallback callback, bool canInput = false, bool rightSide = false ) : JSONStorableString
paramName string
startingValue string
height float
callback JSONStorableString.SetStringCallback
canInput bool
rightSide bool
return JSONStorableString

CreateTextField() public method

public CreateTextField ( string paramName, string startingValue, float height, bool canInput = false, bool rightSide = false ) : JSONStorableString
paramName string
startingValue string
height float
canInput bool
rightSide bool
return JSONStorableString

CreateToggle() public method

public CreateToggle ( string paramName, string label, bool startingValue, JSONStorableBool.SetBoolCallback callback, bool rightSide = false ) : JSONStorableBool
paramName string
label string
startingValue bool
callback JSONStorableBool.SetBoolCallback
rightSide bool
return JSONStorableBool

CreateToggle() public method

public CreateToggle ( string paramName, string label, bool startingValue, bool rightSide = false ) : JSONStorableBool
paramName string
label string
startingValue bool
rightSide bool
return JSONStorableBool

CreateToggleEx() public method

public CreateToggleEx ( ) : Transform
return Transform

Destroy() public method

public Destroy ( ) : void
return void

Destroy() public method

public Destroy ( object o ) : void
o object
return void

RestoreConfig() public method

public RestoreConfig ( JSONNode config ) : void
config JSONNode
return void

SetVisible() public method

public SetVisible ( bool visible ) : void
visible bool
return void

StoreConfig() public method

public StoreConfig ( JSONNode config ) : void
config JSONNode
return void

UIGroup() public method

public UIGroup ( IUIBuilder builder ) : SimpleJSON
builder IUIBuilder
return SimpleJSON