mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Artemis.Core.Plugins.Abstract;
|
|
using Artemis.Core.Plugins.Abstract.ViewModels;
|
|
using Artemis.Core.Plugins.Models;
|
|
using Artemis.Plugins.Modules.General.ViewModels;
|
|
|
|
namespace Artemis.Plugins.Modules.General
|
|
{
|
|
public class GeneralModule : ProfileModule
|
|
{
|
|
private readonly PluginSettings _settings;
|
|
|
|
public GeneralModule(PluginSettings settings)
|
|
{
|
|
_settings = settings;
|
|
}
|
|
|
|
public override IEnumerable<ModuleViewModel> GetViewModels()
|
|
{
|
|
return new List<ModuleViewModel> {new GeneralViewModel(this)};
|
|
}
|
|
|
|
public override void EnablePlugin()
|
|
{
|
|
DisplayName = "General";
|
|
DisplayIcon = "AllInclusive";
|
|
ExpandsMainDataModel = true;
|
|
DataModel = new GeneralDataModel(this);
|
|
|
|
var testSetting = _settings.GetSetting("TestSetting", DateTime.Now);
|
|
}
|
|
|
|
public override void DisablePlugin()
|
|
{
|
|
}
|
|
}
|
|
} |