mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Display conditions - Implemented expression tree creation
Display conditions - Use the most appropriate number input UI general - Use current localisation for decimal seperators and enfore in inputs
This commit is contained in:
1 parent
b869078f08
commit
3da2fbcf0a
21 files changed
+282
-131
No files matched your search
@@ -93,6 +93,15 @@ namespace Artemis.Core.Services
|
||||
return null;
|
||||
}
|
||||
|
||||
public DataModel GetPluginDataModelByGuid(Guid pluginGuid)
|
||||
{
|
||||
var pluginInfo = _pluginService.GetAllPluginInfo().FirstOrDefault(i => i.Guid == pluginGuid);
|
||||
if (pluginInfo == null || !pluginInfo.Enabled)
|
||||
return null;
|
||||
|
||||
return GetPluginDataModel(pluginInfo.Instance);
|
||||
}
|
||||
|
||||
public bool GetPluginExtendsDataModel(Plugin plugin)
|
||||
{
|
||||
if (plugin is Module module)
|
||||
|
||||
@@ -31,6 +31,12 @@ namespace Artemis.Core.Services.Interfaces
|
||||
/// <param name="plugin">Should be a module with a data model or a data model expansion</param>
|
||||
DataModel GetPluginDataModel(Plugin plugin);
|
||||
|
||||
/// <summary>
|
||||
/// If found, returns the data model of the provided plugin
|
||||
/// </summary>
|
||||
/// <param name="pluginGuid">Should be a module with a data model or a data model expansion</param>
|
||||
DataModel GetPluginDataModelByGuid(Guid pluginGuid);
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the given plugin expands the main data model
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user