All Classes Namespaces Functions Variables Enumerations Enumerator Properties
plyBloxKitEditor.plyBlockFieldHandler Class Referenceabstract

A field handler is needed when you created custom types to use as fields in blocks. The handler will know how to make a copy of the field type and how to render it in the editor. More...

Inherited by plyBloxKitEditor.AniClipNameData_Handler, plyBloxKitEditor.KeyCodeData_Handler, plyBloxKitEditor.ObjectPropertyData_Handler, plyBloxKitEditor.OnGUI_Content_Handler, plyBloxKitEditor.OnGUI_LayoutOption_Handler, plyBloxKitEditor.SceneNameTextData_Handler, plyGameEditor.CharaAniClipNameData_Handler, plyGameEditor.EquipSlotData_Handler, plyGameEditor.FactionFieldData_Handler, plyGameEditor.InputDefNameTextData_Handler, plyGameEditor.ItemFieldData_Handler, plyGameEditor.MarkerFieldData_Handler, plyGameEditor.ScreenDefNameTextData_Handler, and plyGameEditor.SkillFieldData_Handler.

Public Member Functions

abstract object GetCopy (object obj)
 Override this. Should return a copy of the passed field (obj). More...
 
abstract void OnFocus (object obj, plyBlock fieldOfBlock)
 Override this. Called when the blocks was focused (selected) (clicked on). Good place to init some temp variables that might be used in DrawField() More...
 
abstract object DrawField (object obj, plyBlock fieldOfBlock)
 Override this. Called by the editor when it wants the custom property/ field to be rendered. More...
 

Public Attributes

plyBloxEd ed
 Will be set to the Editor. Useful when ed.Repaint() or ed.ForceSerialise() is needed.
 

Detailed Description

A field handler is needed when you created custom types to use as fields in blocks. The handler will know how to make a copy of the field type and how to render it in the editor.

Member Function Documentation

abstract object plyBloxKitEditor.plyBlockFieldHandler.DrawField ( object  obj,
plyBlock  fieldOfBlock 
)
pure virtual

Override this. Called by the editor when it wants the custom property/ field to be rendered.

Parameters
objThe field.
fieldOfBlockThe plyBlock that this field is used in.
abstract object plyBloxKitEditor.plyBlockFieldHandler.GetCopy ( object  obj)
pure virtual

Override this. Should return a copy of the passed field (obj).

abstract void plyBloxKitEditor.plyBlockFieldHandler.OnFocus ( object  obj,
plyBlock  fieldOfBlock 
)
pure virtual

Override this. Called when the blocks was focused (selected) (clicked on). Good place to init some temp variables that might be used in DrawField()

Parameters
objThe field.
fieldOfBlockThe plyBlock that this field is used in.