mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Layers - Added support for rendering multiple timelines at once
Events - Added trigger modes
This commit is contained in:
1 parent
c6a06f0131
commit
86d6e540d7
21 files changed
+495
-333
No files matched your search
@@ -49,6 +49,11 @@ namespace Artemis.Core.Services
|
||||
/// <param name="profileModule"></param>
|
||||
void ActivateLastProfile(ProfileModule profileModule);
|
||||
|
||||
/// <summary>
|
||||
/// Reloads the currently active profile on the provided profile module
|
||||
/// </summary>
|
||||
void ReloadProfile(ProfileModule module);
|
||||
|
||||
/// <summary>
|
||||
/// Asynchronously activates the last profile of the given profile module using a fade animation
|
||||
/// </summary>
|
||||
|
||||
@@ -82,6 +82,19 @@ namespace Artemis.Core.Services
|
||||
return profile;
|
||||
}
|
||||
|
||||
public void ReloadProfile(ProfileModule module)
|
||||
{
|
||||
if (module.ActiveProfile == null)
|
||||
return;
|
||||
|
||||
ProfileEntity entity = _profileRepository.Get(module.ActiveProfile.EntityId);
|
||||
Profile profile = new Profile(module, entity);
|
||||
InstantiateProfile(profile);
|
||||
|
||||
module.ChangeActiveProfile(null, _surfaceService.ActiveSurface);
|
||||
module.ChangeActiveProfile(profile, _surfaceService.ActiveSurface);
|
||||
}
|
||||
|
||||
public async Task<Profile> ActivateProfileAnimated(ProfileDescriptor profileDescriptor)
|
||||
{
|
||||
if (profileDescriptor.ProfileModule.ActiveProfile?.EntityId == profileDescriptor.Id)
|
||||
|
||||
Reference in new issue
Block a user