Class ViewEditor
Inheritance
System.Object
ViewEditor
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public class ViewEditor : Object, IController, IViewController, IHasUniversalID, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, INotifyPropertyChanged, IDisplayErrorUI, IProvidesContext
Constructors
ViewEditor()
Declaration
Properties
Declaration
public Color ButtonColor { get; set; }
Property Value
ButtonText
Declaration
public string ButtonText { get; set; }
Property Value
Type |
Description |
System.String |
|
ContextProvided
Declaration
public IEnumerable<IContextValue> ContextProvided { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<IContextValue> |
|
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
Type |
Description |
System.Int32 |
|
ErrorData
Declaration
public ErrorDisplayData ErrorData { get; set; }
Property Value
Errors
Declaration
public List<PropError> Errors { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.List<PropError> |
|
Declaration
public bool HasBackButton { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ObjectToEdit
Declaration
public IController ObjectToEdit { get; set; }
Property Value
OverrideTitle
Declaration
public string OverrideTitle { get; set; }
Property Value
Type |
Description |
System.String |
|
ShowAdminEditableProperties
Declaration
public bool ShowAdminEditableProperties { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Subscriptions
Declaration
public ref ThreadSafeSubscriptions Subscriptions { get; }
Property Value
Methods
Close(Player)
When the view get closed, we invoke the onClose event.
Declaration
public void Close(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
CloseForUser(User, ViewEditor.WindowType)
Tell the user to close an open editor.
Declaration
public static void CloseForUser(User user, ViewEditor.WindowType windowType)
Parameters
Edit(User, IController, Action<IController>, ISaveablePlugin, String, Nullable<Color>, String, ViewEditor.WindowType, Boolean, IProvidesContext, Action<IController>, Action<IController>, Boolean)
Declaration
public static void Edit(User user, IController toEdit, Action<IController> onSubmit = null, ISaveablePlugin savePlugin = null, string buttonText = null, Nullable<Color> buttonColor = null, string overrideTitle = null, ViewEditor.WindowType windowType, bool readOnly = false, IProvidesContext overrideContext = null, Action<IController> onClose = null, Action<IController> onBack = null, bool showAdminEditableOnlyProperties = false)
Parameters
Finalize()
Declaration
protected override void Finalize()
Init()
Declaration
OnPropertyChanged(String, Object, Object)
Declaration
public void OnPropertyChanged(string propertyName, object before, object after)
Parameters
Type |
Name |
Description |
System.String |
propertyName |
|
System.Object |
before |
|
System.Object |
after |
|
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods