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
Object
ScriptableObject
EditorWindow
MakerToolWindow
Derived
Inherited Members
EditorWindow.focusedWindowChanged
EditorWindow.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.dataModeController
EditorWindow.rootVisualElement
EditorWindow.overlayCanvas
EditorWindow.wantsMouseMove
EditorWindow.wantsMouseEnterLeaveWindow
EditorWindow.wantsLessLayoutEvents
EditorWindow.autoRepaintOnSceneChange
EditorWindow.maximized
EditorWindow.hasFocus
EditorWindow.docked
EditorWindow.focusedWindow
EditorWindow.mouseOverWindow
EditorWindow.hasUnsavedChanges
EditorWindow.saveChangesMessage
EditorWindow.minSize
EditorWindow.maxSize
EditorWindow.title
EditorWindow.titleContent
EditorWindow.depthBufferBits
EditorWindow.antiAlias
EditorWindow.position
EditorWindow.windowFocusChanged
ScriptableObject.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.name
Object.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

ContentAsset

contentField

protected ObjectField contentField

Field Value

ObjectField

settings

[SerializeField]
protected GameSettingsAsset settings

Field Value

GameSettingsAsset

settingsField

protected ObjectField settingsField

Field Value

ObjectField

status

protected HelpBox status

Field Value

HelpBox

Properties

Content

public ContentAsset Content { get; }

Property Value

ContentAsset

EffectiveSettings

Settings override, else Content.Settings.

protected GameSettingsAsset EffectiveSettings { get; }

Property Value

GameSettingsAsset

SettingsAsset

public GameSettingsAsset SettingsAsset { get; }

Property Value

GameSettingsAsset

ToolDescription

protected abstract string ToolDescription { get; }

Property Value

string

ToolTitle

protected abstract string ToolTitle { get; }

Property Value

string

Methods

BuildBody(VisualElement)

Builds the window's controls under the shared header.

protected abstract void BuildBody(VisualElement root)

Parameters

root VisualElement

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

title string

Returns

T

Type Parameters

T

SetContent(ContentAsset)

public void SetContent(ContentAsset value)

Parameters

value ContentAsset

SetSettings(GameSettingsAsset)

public void SetSettings(GameSettingsAsset value)

Parameters

value GameSettingsAsset

Status(string, HelpBoxMessageType)

protected void Status(string text, HelpBoxMessageType type = HelpBoxMessageType.Info)

Parameters

text string
type HelpBoxMessageType

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

analysis IMakerAnalysis

Returns

bool