Class TemplateInspectorBase
- Namespace
- TDMaker.Editor
- Assembly
- TDMaker.Editor.dll
Base for grouped template inspectors: draws named property groups in persistent foldouts and any fields not claimed by a group under "Other", so new serialized fields never disappear from the inspector.
public abstract class TemplateInspectorBase : Editor
- Inheritance
-
ObjectScriptableObjectEditorTemplateInspectorBase
- Derived
- Inherited Members
-
Editor.SaveChanges()Editor.DiscardChanges()Editor.CreateEditorWithContext(Object[], Object)Editor.CreateEditor(Object)Editor.CreateEditor(Object[])Editor.DrawDefaultInspector()Editor.Repaint()Editor.OnInspectorGUI()Editor.CreateInspectorGUI()Editor.RequiresConstantRepaint()Editor.DrawHeader()Editor.OnHeaderGUI()Editor.ShouldHideOpenButton()Editor.DrawFoldoutInspector(Object, ref Editor)Editor.HasPreviewGUI()Editor.CreatePreview(VisualElement)Editor.GetPreviewTitle()Editor.OnPreviewGUI(Rect, GUIStyle)Editor.OnInteractivePreviewGUI(Rect, GUIStyle)Editor.OnPreviewSettings()Editor.GetInfoString()Editor.DrawPreview(Rect)Editor.ReloadPreviewInstances()Editor.UseDefaultMargins()Editor.MoveNextTarget()Editor.ResetTarget()Editor.hasUnsavedChangesEditor.saveChangesMessageEditor.targetEditor.targetsEditor.serializedObjectEditor.finishedDefaultHeaderGUIScriptableObject.SetDirty()ScriptableObject.CreateInstance<T>()Object.GetEntityId()Object.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate<T>(T, InstantiateParameters)Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.FindObjectsByType<T>()Object.FindObjectsByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Constructors
TemplateInspectorBase()
protected TemplateInspectorBase()
Properties
Key
Key prefix for foldout state.
protected abstract string Key { get; }
Property Value
Methods
Begin()
Starts a frame; call before drawing groups.
protected void Begin()
Cells(Rect, string, string, string, string, GUIStyle)
Draws a four-column row.
protected static void Cells(Rect rect, string a, string b, string c, string d, GUIStyle style)
Parameters
DefenseOf(DamageKind)
Label for a damage kind's defense.
protected static string DefenseOf(DamageKind kind)
Parameters
kindDamageKind
Returns
DpsTable(string, List<RangedAttackData>, MeleeData, int)
Draws a DPS-vs-defense table for a list of attacks.
protected static void DpsTable(string title, List<RangedAttackData> attacks, MeleeData melee, int multiplier = 1)
Parameters
titlestringattacksList<RangedAttackData>meleeMeleeDatamultiplierint
Ehp(double)
Formats an effective-HP value.
protected static string Ehp(double value)
Parameters
valuedouble
Returns
End()
Applies changes and draws unclaimed fields.
protected void End()
Group(string, params string[])
Draws a foldout group with the given fields; returns whether it is open.
protected bool Group(string title, params string[] fields)
Parameters
Returns
Identity(EntityAssetBase)
Draws the identity header (template id, display name) with a duplicate-id warning.
protected void Identity(EntityAssetBase asset)
Parameters
assetEntityAssetBase
StatsBox(Action)
Begins a tinted box for computed stats.
protected static void StatsBox(Action body)
Parameters
bodyAction