C# Class UICreateWidgetWizard, DsynBio

UI Widget Creation Wizard
Inheritance: EditorWindow
Datei anzeigen Open project: CyberCRI/DsynBio

Public Methods

Method Description
ShouldCreate ( GameObject go, bool isValid ) : bool

Convenience function -- creates the "Add To" button and the parent object field to the right of it.

Private Methods

Method Description
CreateButton ( GameObject go ) : void

Button creation function.

CreateCheckbox ( GameObject go ) : void

Checkbox creation function.

CreateImageButton ( GameObject go ) : void

Button creation function.

CreateInput ( GameObject go ) : void

Input field creation function.

CreateLabel ( GameObject go ) : void

Label creation function.

CreatePopup ( GameObject go, bool isDropDown ) : void

Create a popup list or a menu.

CreateScrollBar ( GameObject go ) : void

Scroll bar template.

CreateSimpleTexture ( GameObject go ) : void

UI Texture doesn't do anything other than creating the widget.

CreateSlider ( GameObject go, bool slider ) : void

Progress bar creation function.

CreateSprite ( GameObject go, string field ) : void

Sprite creation function.

Load ( ) : void

Load all serialized values from editor prefs. This is necessary because static values get wiped out as soon as scripts get recompiled.

LoadString ( string field ) : string

Load the specified string from player prefs.

OnButton ( string val ) : void
OnCheck ( string val ) : void
OnCheckBG ( string val ) : void
OnGUI ( ) : void

Draw the custom wizard.

OnImage0 ( string val ) : void
OnImage1 ( string val ) : void
OnImage2 ( string val ) : void
OnInputBG ( string val ) : void
OnListBG ( string val ) : void
OnListFG ( string val ) : void
OnListHL ( string val ) : void
OnScrollBG ( string val ) : void
OnScrollFG ( string val ) : void
OnSelectAtlas ( MonoBehaviour obj ) : void

Atlas selection function.

OnSelectFont ( MonoBehaviour obj ) : void

Font selection function.

OnSelectionChange ( ) : void

Repaint the window on selection.

OnSliderBG ( string val ) : void
OnSliderFG ( string val ) : void
OnSliderTB ( string val ) : void
OnSprite ( string val ) : void
Save ( ) : void

Save all serialized values in editor prefs. This is necessary because static values get wiped out as soon as scripts get recompiled.

SaveString ( string field, string val ) : void

Save the specified string into player prefs.

Method Details

ShouldCreate() public static method

Convenience function -- creates the "Add To" button and the parent object field to the right of it.
public static ShouldCreate ( GameObject go, bool isValid ) : bool
go GameObject
isValid bool
return bool