Feel  3.16
The best way to improve your game's feel and make it extra juicy
MoreMountains.Tools.MMReorderableList Class Reference

Public Types

enum  ElementDisplayType { ElementDisplayType.Auto, ElementDisplayType.Expandable, ElementDisplayType.SingleLine }
 

Public Member Functions

delegate void DrawHeaderDelegate (Rect rect, GUIContent label)
 
delegate void DrawFooterDelegate (Rect rect)
 
delegate void DrawElementDelegate (Rect rect, SerializedProperty element, GUIContent label, bool selected, bool focused)
 
delegate void ActionDelegate (MMReorderableList list)
 
delegate bool ActionBoolDelegate (MMReorderableList list)
 
delegate void AddDropdownDelegate (Rect buttonRect, MMReorderableList list)
 
delegate Object DragDropReferenceDelegate (Object[] references, MMReorderableList list)
 
delegate void DragDropAppendDelegate (Object reference, MMReorderableList list)
 
delegate float GetElementHeightDelegate (SerializedProperty element)
 
delegate float GetElementsHeightDelegate (MMReorderableList list)
 
delegate string GetElementNameDelegate (SerializedProperty element)
 
 MMReorderableList (SerializedProperty list)
 
 MMReorderableList (SerializedProperty list, bool canAdd, bool canRemove, bool draggable)
 
 MMReorderableList (SerializedProperty list, bool canAdd, bool canRemove, bool draggable, ElementDisplayType elementDisplayType, string elementNameProperty, Texture elementIcon)
 
 MMReorderableList (SerializedProperty list, bool canAdd, bool canRemove, bool draggable, ElementDisplayType elementDisplayType, string elementNameProperty, string elementNameOverride, Texture elementIcon)
 
float GetHeight ()
 
void DoLayoutList ()
 
void DoList (Rect rect, GUIContent label)
 
SerializedProperty AddItem< T > (T item)
 
SerializedProperty AddItem ()
 
void Remove (int[] selection)
 
void RemoveItem (int index)
 
SerializedProperty GetItem (int index)
 
int IndexOf (SerializedProperty element)
 
void GrabKeyboardFocus ()
 
bool HasKeyboardControl ()
 
void ReleaseKeyboardFocus ()
 

Public Attributes

bool canAdd
 
bool canRemove
 
bool draggable
 
bool expandable
 
bool multipleSelection
 
GUIContent label
 
float headerHeight
 
float footerHeight
 
float slideEasing
 
float verticalSpacing
 
bool showDefaultBackground
 
ElementDisplayType elementDisplayType
 
string elementNameProperty
 
string elementNameOverride
 
Texture elementIcon
 

Properties

SerializedProperty List [get, set]
 
bool HasList [get]
 
int? Length [get]
 
int[] Selected [get, set]
 
int Index [get, set]
 
bool IsDragging [get]
 

Events

DrawHeaderDelegate drawHeaderCallback
 
DrawFooterDelegate drawFooterCallback
 
DrawElementDelegate drawElementCallback
 
DrawElementDelegate drawElementBackgroundCallback
 
GetElementHeightDelegate getElementHeightCallback
 
GetElementsHeightDelegate getElementsHeightCallback
 
GetElementNameDelegate getElementNameCallback
 
DragDropReferenceDelegate onValidateDragAndDropCallback
 
DragDropAppendDelegate onAppendDragDropCallback
 
ActionDelegate onReorderCallback
 
ActionDelegate onSelectCallback
 
ActionDelegate onAddCallback
 
AddDropdownDelegate onAddDropdownCallback
 
ActionDelegate onRemoveCallback
 
ActionDelegate onMouseUpCallback
 
ActionBoolDelegate onCanRemoveCallback
 
ActionDelegate onChangedCallback
 

Member Enumeration Documentation

◆ ElementDisplayType

Enumerator
Auto 
Expandable 
SingleLine 

Constructor & Destructor Documentation

◆ MMReorderableList() [1/4]

MoreMountains.Tools.MMReorderableList.MMReorderableList ( SerializedProperty  list)

◆ MMReorderableList() [2/4]

MoreMountains.Tools.MMReorderableList.MMReorderableList ( SerializedProperty  list,
bool  canAdd,
bool  canRemove,
bool  draggable 
)

◆ MMReorderableList() [3/4]

MoreMountains.Tools.MMReorderableList.MMReorderableList ( SerializedProperty  list,
bool  canAdd,
bool  canRemove,
bool  draggable,
ElementDisplayType  elementDisplayType,
string  elementNameProperty,
Texture  elementIcon 
)

◆ MMReorderableList() [4/4]

MoreMountains.Tools.MMReorderableList.MMReorderableList ( SerializedProperty  list,
bool  canAdd,
bool  canRemove,
bool  draggable,
ElementDisplayType  elementDisplayType,
string  elementNameProperty,
string  elementNameOverride,
Texture  elementIcon 
)

Member Function Documentation

◆ ActionBoolDelegate()

delegate bool MoreMountains.Tools.MMReorderableList.ActionBoolDelegate ( MMReorderableList  list)

◆ ActionDelegate()

delegate void MoreMountains.Tools.MMReorderableList.ActionDelegate ( MMReorderableList  list)

◆ AddDropdownDelegate()

delegate void MoreMountains.Tools.MMReorderableList.AddDropdownDelegate ( Rect  buttonRect,
MMReorderableList  list 
)

◆ AddItem()

SerializedProperty MoreMountains.Tools.MMReorderableList.AddItem ( )

◆ AddItem< T >()

SerializedProperty MoreMountains.Tools.MMReorderableList.AddItem< T > ( item)
Type Constraints
T :Object 

◆ DoLayoutList()

void MoreMountains.Tools.MMReorderableList.DoLayoutList ( )

◆ DoList()

void MoreMountains.Tools.MMReorderableList.DoList ( Rect  rect,
GUIContent  label 
)

◆ DragDropAppendDelegate()

delegate void MoreMountains.Tools.MMReorderableList.DragDropAppendDelegate ( Object  reference,
MMReorderableList  list 
)

◆ DragDropReferenceDelegate()

delegate Object MoreMountains.Tools.MMReorderableList.DragDropReferenceDelegate ( Object[]  references,
MMReorderableList  list 
)

◆ DrawElementDelegate()

delegate void MoreMountains.Tools.MMReorderableList.DrawElementDelegate ( Rect  rect,
SerializedProperty  element,
GUIContent  label,
bool  selected,
bool  focused 
)

◆ DrawFooterDelegate()

delegate void MoreMountains.Tools.MMReorderableList.DrawFooterDelegate ( Rect  rect)

◆ DrawHeaderDelegate()

delegate void MoreMountains.Tools.MMReorderableList.DrawHeaderDelegate ( Rect  rect,
GUIContent  label 
)

◆ GetElementHeightDelegate()

delegate float MoreMountains.Tools.MMReorderableList.GetElementHeightDelegate ( SerializedProperty  element)

◆ GetElementNameDelegate()

delegate string MoreMountains.Tools.MMReorderableList.GetElementNameDelegate ( SerializedProperty  element)

◆ GetElementsHeightDelegate()

delegate float MoreMountains.Tools.MMReorderableList.GetElementsHeightDelegate ( MMReorderableList  list)

◆ GetHeight()

float MoreMountains.Tools.MMReorderableList.GetHeight ( )

◆ GetItem()

SerializedProperty MoreMountains.Tools.MMReorderableList.GetItem ( int  index)

◆ GrabKeyboardFocus()

void MoreMountains.Tools.MMReorderableList.GrabKeyboardFocus ( )

◆ HasKeyboardControl()

bool MoreMountains.Tools.MMReorderableList.HasKeyboardControl ( )

◆ IndexOf()

int MoreMountains.Tools.MMReorderableList.IndexOf ( SerializedProperty  element)

◆ ReleaseKeyboardFocus()

void MoreMountains.Tools.MMReorderableList.ReleaseKeyboardFocus ( )

◆ Remove()

void MoreMountains.Tools.MMReorderableList.Remove ( int[]  selection)

◆ RemoveItem()

void MoreMountains.Tools.MMReorderableList.RemoveItem ( int  index)

Member Data Documentation

◆ canAdd

bool MoreMountains.Tools.MMReorderableList.canAdd

◆ canRemove

bool MoreMountains.Tools.MMReorderableList.canRemove

◆ draggable

bool MoreMountains.Tools.MMReorderableList.draggable

◆ elementDisplayType

ElementDisplayType MoreMountains.Tools.MMReorderableList.elementDisplayType

◆ elementIcon

Texture MoreMountains.Tools.MMReorderableList.elementIcon

◆ elementNameOverride

string MoreMountains.Tools.MMReorderableList.elementNameOverride

◆ elementNameProperty

string MoreMountains.Tools.MMReorderableList.elementNameProperty

◆ expandable

bool MoreMountains.Tools.MMReorderableList.expandable

◆ footerHeight

float MoreMountains.Tools.MMReorderableList.footerHeight

◆ headerHeight

float MoreMountains.Tools.MMReorderableList.headerHeight

◆ label

GUIContent MoreMountains.Tools.MMReorderableList.label

◆ multipleSelection

bool MoreMountains.Tools.MMReorderableList.multipleSelection

◆ showDefaultBackground

bool MoreMountains.Tools.MMReorderableList.showDefaultBackground

◆ slideEasing

float MoreMountains.Tools.MMReorderableList.slideEasing

◆ verticalSpacing

float MoreMountains.Tools.MMReorderableList.verticalSpacing

Property Documentation

◆ HasList

bool MoreMountains.Tools.MMReorderableList.HasList
get

◆ Index

int MoreMountains.Tools.MMReorderableList.Index
getset

◆ IsDragging

bool MoreMountains.Tools.MMReorderableList.IsDragging
get

◆ Length

int? MoreMountains.Tools.MMReorderableList.Length
get

◆ List

SerializedProperty MoreMountains.Tools.MMReorderableList.List
getset

◆ Selected

int [] MoreMountains.Tools.MMReorderableList.Selected
getset

Event Documentation

◆ drawElementBackgroundCallback

DrawElementDelegate MoreMountains.Tools.MMReorderableList.drawElementBackgroundCallback

◆ drawElementCallback

DrawElementDelegate MoreMountains.Tools.MMReorderableList.drawElementCallback

◆ drawFooterCallback

DrawFooterDelegate MoreMountains.Tools.MMReorderableList.drawFooterCallback

◆ drawHeaderCallback

DrawHeaderDelegate MoreMountains.Tools.MMReorderableList.drawHeaderCallback

◆ getElementHeightCallback

GetElementHeightDelegate MoreMountains.Tools.MMReorderableList.getElementHeightCallback

◆ getElementNameCallback

GetElementNameDelegate MoreMountains.Tools.MMReorderableList.getElementNameCallback

◆ getElementsHeightCallback

GetElementsHeightDelegate MoreMountains.Tools.MMReorderableList.getElementsHeightCallback

◆ onAddCallback

ActionDelegate MoreMountains.Tools.MMReorderableList.onAddCallback

◆ onAddDropdownCallback

AddDropdownDelegate MoreMountains.Tools.MMReorderableList.onAddDropdownCallback

◆ onAppendDragDropCallback

DragDropAppendDelegate MoreMountains.Tools.MMReorderableList.onAppendDragDropCallback

◆ onCanRemoveCallback

ActionBoolDelegate MoreMountains.Tools.MMReorderableList.onCanRemoveCallback

◆ onChangedCallback

ActionDelegate MoreMountains.Tools.MMReorderableList.onChangedCallback

◆ onMouseUpCallback

ActionDelegate MoreMountains.Tools.MMReorderableList.onMouseUpCallback

◆ onRemoveCallback

ActionDelegate MoreMountains.Tools.MMReorderableList.onRemoveCallback

◆ onReorderCallback

ActionDelegate MoreMountains.Tools.MMReorderableList.onReorderCallback

◆ onSelectCallback

ActionDelegate MoreMountains.Tools.MMReorderableList.onSelectCallback

◆ onValidateDragAndDropCallback

DragDropReferenceDelegate MoreMountains.Tools.MMReorderableList.onValidateDragAndDropCallback

The documentation for this class was generated from the following file: