mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Added some of the architecture for the profile editor
This commit is contained in:
1 parent
b22fcb3c2a
commit
c846d63acf
26 files changed
+181
-76
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using System.Drawing;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using Artemis.Core.Models.Surface;
|
||||
using Artemis.Core.Plugins.Models;
|
||||
using RGB.NET.Core;
|
||||
@@ -42,9 +43,9 @@ namespace Artemis.Core.Plugins.Abstract
|
||||
public abstract void Render(double deltaTime, Surface surface, Graphics graphics);
|
||||
|
||||
/// <summary>
|
||||
/// Called when the module's main view is being shown
|
||||
/// Called when the module's view model is being show, return view models here to create tabs for them
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public abstract IScreen GetMainViewModel();
|
||||
public abstract IEnumerable<ModuleViewModel> GetViewModels();
|
||||
}
|
||||
}
|
||||
@@ -4,11 +4,13 @@ namespace Artemis.Core.Plugins.Abstract
|
||||
{
|
||||
public abstract class ModuleViewModel : Screen
|
||||
{
|
||||
protected ModuleViewModel(Module module)
|
||||
protected ModuleViewModel(Module module, string name)
|
||||
{
|
||||
Module = module;
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public string Name { get; }
|
||||
public Module Module { get; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user