Class MakerToolWindow
- Namespace
- SurvivorsMaker.Editor
- Assembly
- SurvivorsMaker.Editor.dll
Shared frame of the maker tool windows: header, Content and Settings pickers (defaulting to the selection or the first asset found), an "analysis not available" notice and a status line.
public abstract class MakerToolWindow : EditorWindow
- Inheritance
-
ObjectScriptableObjectEditorWindowMakerToolWindow
- Derived
- Inherited Members
-
EditorWindow.focusedWindowChangedEditorWindow.BeginWindows()EditorWindow.EndWindows()EditorWindow.ShowNotification(GUIContent)EditorWindow.RemoveNotification()EditorWindow.ShowTab()EditorWindow.Focus()EditorWindow.ShowUtility()EditorWindow.ShowPopup()EditorWindow.ShowModalUtility()EditorWindow.ShowAsDropDown(Rect, Vector2)EditorWindow.Show()EditorWindow.ShowAuxWindow()EditorWindow.ShowModal()EditorWindow.GetWindow<T>()EditorWindow.HasOpenInstances<T>()EditorWindow.FocusWindowIfItsOpen<T>()EditorWindow.GetWindowWithRect<T>(Rect)EditorWindow.SaveChanges()EditorWindow.DiscardChanges()EditorWindow.Close()EditorWindow.Repaint()EditorWindow.SendEvent(Event)EditorWindow.GetExtraPaneTypes()EditorWindow.OnBackingScaleFactorChanged()EditorWindow.dataModeControllerEditorWindow.rootVisualElementEditorWindow.overlayCanvasEditorWindow.wantsMouseMoveEditorWindow.wantsMouseEnterLeaveWindowEditorWindow.wantsLessLayoutEventsEditorWindow.autoRepaintOnSceneChangeEditorWindow.maximizedEditorWindow.hasFocusEditorWindow.dockedEditorWindow.focusedWindowEditorWindow.mouseOverWindowEditorWindow.hasUnsavedChangesEditorWindow.saveChangesMessageEditorWindow.minSizeEditorWindow.maxSizeEditorWindow.titleEditorWindow.titleContentEditorWindow.depthBufferBitsEditorWindow.antiAliasEditorWindow.positionEditorWindow.windowFocusChangedScriptableObject.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.ToString()Object.nameObject.hideFlags
Constructors
MakerToolWindow()
protected MakerToolWindow()
Fields
analysisBox
protected HelpBox analysisBox
Field Value
- HelpBox
body
protected ScrollView body
Field Value
- ScrollView
content
[SerializeField]
protected ContentAsset content
Field Value
contentField
protected ObjectField contentField
Field Value
- ObjectField
settings
[SerializeField]
protected GameSettingsAsset settings
Field Value
settingsField
protected ObjectField settingsField
Field Value
- ObjectField
status
protected HelpBox status
Field Value
- HelpBox
Properties
Content
public ContentAsset Content { get; }
Property Value
EffectiveSettings
Settings override, else Content.Settings.
protected GameSettingsAsset EffectiveSettings { get; }
Property Value
SettingsAsset
public GameSettingsAsset SettingsAsset { get; }
Property Value
ToolDescription
protected abstract string ToolDescription { get; }
Property Value
ToolTitle
protected abstract string ToolTitle { get; }
Property Value
Methods
BuildBody(VisualElement)
Builds the window's controls under the shared header.
protected abstract void BuildBody(VisualElement root)
Parameters
rootVisualElement
CreateGUI()
public void CreateGUI()
OnClosing()
The window is closing or reloading: stop jobs and timers.
protected virtual void OnClosing()
OnContextChanged()
Content or settings changed (also after the first build).
protected virtual void OnContextChanged()
OnDisable()
protected virtual void OnDisable()
OnEnable()
protected virtual void OnEnable()
OnUndoRedo()
protected virtual void OnUndoRedo()
OpenWindow<T>(string)
protected static T OpenWindow<T>(string title) where T : MakerToolWindow
Parameters
titlestring
Returns
- T
Type Parameters
T
SetContent(ContentAsset)
public void SetContent(ContentAsset value)
Parameters
valueContentAsset
SetSettings(GameSettingsAsset)
public void SetSettings(GameSettingsAsset value)
Parameters
valueGameSettingsAsset
Status(string, HelpBoxMessageType)
protected void Status(string text, HelpBoxMessageType type = HelpBoxMessageType.Info)
Parameters
textstringtypeHelpBoxMessageType
TryAnalysis(out IMakerAnalysis)
Gets the analysis or shows why it is missing. Windows keep working for the parts that do not need it.
protected bool TryAnalysis(out IMakerAnalysis analysis)
Parameters
analysisIMakerAnalysis