Profile editor - Redesigned adding/removing timeline segments

General module - Added some basic window information to the data model
Profiles - Don't render when opacity is 0
Profile editor - Render non-selected layers in their main segment
Profile editor - Condition editor fixes
This commit is contained in:
SpoinkyNL committed 2020-07-24 23:04:21 +02:00
1 parent 527fef3dc6
commit 72d606f40d
39 files changed
+831 -261

No files matched your search

+8 -2
View File
@@ -47,7 +47,7 @@ namespace Artemis.Core.Services
_profileService = profileService;
_loggingLevel = settingsService.GetSetting("Core.LoggingLevel", LogEventLevel.Debug);
_frameStopWatch = new Stopwatch();
UpdatePluginCache();
ConfigureJsonConvert();
@@ -96,6 +96,12 @@ namespace Artemis.Core.Services
OnInitialized();
}
public void SetMainWindowHandle(IntPtr handle)
{
Constants.MainWindowHandle = handle;
}
protected virtual void OnFrameRendering(FrameRenderingEventArgs e)
{
FrameRendering?.Invoke(this, e);
@@ -109,7 +115,7 @@ namespace Artemis.Core.Services
private void UpdatePluginCache()
{
_modules = _pluginService.GetPluginsOfType<Module>().Where(p => p.Enabled).ToList();
_dataModelExpansions = _pluginService.GetPluginsOfType<BaseDataModelExpansion>().Where(p => p.Enabled).ToList();
_dataModelExpansions = _pluginService.GetPluginsOfType<BaseDataModelExpansion>().Where(p => p.Enabled).ToList();
}
private void ConfigureJsonConvert()
@@ -50,5 +50,11 @@ namespace Artemis.Core.Services.Interfaces
/// Occurs whenever a frame is finished rendering and processed by RGB.NET
/// </summary>
event EventHandler<FrameRenderedEventArgs> FrameRendered;
/// <summary>
/// To be called by the UI to setup the main window handle
/// </summary>
/// <param name="handle"></param>
void SetMainWindowHandle(IntPtr handle);
}
}