Class OfferOddsWindow
- Namespace
- SurvivorsMaker.Editor
- Assembly
- SurvivorsMaker.Editor.dll
Offer Odds: how often each item and weapon shows up in the shop or level-up choices at each progress value (wave in arena mode, level in field mode), from many seeded draws. Sortable, heat-colored, with tier odds and an optional comparison that shows what guarantees or character bans change.
public sealed class OfferOddsWindow : MakerToolWindow
- Inheritance
-
ObjectScriptableObjectEditorWindowOfferOddsWindow
- 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.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
OfferOddsWindow()
public OfferOddsWindow()
Properties
Report
public OfferOddsReport Report { get; }
Property Value
Rows
public IReadOnlyList<OfferOddsRow> Rows { get; }
Property Value
ToolDescription
protected override string ToolDescription { get; }
Property Value
ToolTitle
protected override string ToolTitle { get; }
Property Value
Methods
BuildBody(VisualElement)
Builds the window's controls under the shared header.
protected override void BuildBody(VisualElement root)
Parameters
rootVisualElement
OnClosing()
The window is closing or reloading: stop jobs and timers.
protected override void OnClosing()
OnContextChanged()
Content or settings changed (also after the first build).
protected override void OnContextChanged()
Open()
[MenuItem("Tools/Survivor Roguelite Maker/Offer Odds", false, 34)]
public static OfferOddsWindow Open()
Returns
Open(ContentAsset, CharacterAsset)
public static OfferOddsWindow Open(ContentAsset content, CharacterAsset characterAsset)
Parameters
contentContentAssetcharacterAssetCharacterAsset
Returns
Run()
public bool Run()
Returns
ShowReport(OfferOddsReport, OfferOddsReport)
Shows a report (and optional baseline) without running.
public void ShowReport(OfferOddsReport report, OfferOddsReport baseline)
Parameters
reportOfferOddsReportbaselineOfferOddsReport