Show / Hide Table of Contents

Class ViewEditorUtils

Inheritance
System.Object
ViewEditorUtils
Namespace: Eco.Gameplay.Systems
Assembly: Eco.Gameplay.dll
Syntax
public static class ViewEditorUtils : Object

Methods

PopupUserEditValue(User, Type, LocString, Object, IProvidesContext, Action<Object>)

Static function to retrieve a GameValue of type T from the player via a dialog box.

Declaration
public static void PopupUserEditValue(User user, Type type, LocString title, object existing, IProvidesContext contextProvider, Action<object> setVal)
Parameters
Type Name Description
User user
System.Type type
LocString title
System.Object existing
IProvidesContext contextProvider
System.Action<System.Object> setVal

PopupUserEditValueNoHolder(User, Type, Nullable<LocString>, IController, Action<Object>, ViewEditor.WindowType, Nullable<LocString>)

Static function to edit entry itself, without holder. Note: rename of simple entry within this editor will rename existing object (because this will cause Registrar.Rename)

Declaration
public static void PopupUserEditValueNoHolder(User user, Type type, Nullable<LocString> title, IController existing, Action<object> setVal, ViewEditor.WindowType windowType, Nullable<LocString> buttonName = null)
Parameters
Type Name Description
User user
System.Type type
System.Nullable<LocString> title
IController existing
System.Action<System.Object> setVal
ViewEditor.WindowType windowType
System.Nullable<LocString> buttonName
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾