mirror of
https://github.com/ZuneDev/ZuneModdingHelper.git
synced 2026-07-27 13:12:21 -07:00
Initial work for AbstractUI options
This commit is contained in:
+13
-1
@@ -30,13 +30,25 @@ namespace ZuneModCore
|
||||
|
||||
public abstract string Author { get; }
|
||||
|
||||
public virtual AbstractUIElementGroup? GetDefaultOptionsUI() => null;
|
||||
|
||||
public virtual Task Init() => Task.CompletedTask;
|
||||
|
||||
public abstract Task<string?> Apply();
|
||||
|
||||
public abstract Task<string?> Reset();
|
||||
|
||||
public abstract AbstractUIElementGroup? OptionsUI { get; }
|
||||
private AbstractUIElementGroup? _OptionsUI;
|
||||
public AbstractUIElementGroup? OptionsUI
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_OptionsUI == null)
|
||||
_OptionsUI = GetDefaultOptionsUI();
|
||||
return _OptionsUI;
|
||||
}
|
||||
set => _OptionsUI = value;
|
||||
}
|
||||
|
||||
public string StorageDirectory
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user