Added some of the architecture for the profile editor

This commit is contained in:
SpoinkyNL committed 2019-11-11 22:12:36 +01:00
1 parent b22fcb3c2a
commit c846d63acf
26 files changed
+181 -76

No files matched your search

+4 -3
View File
@@ -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; }
}
}