mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Modules - Added ListItemName prop to the DataModelProperty attribute
Conditions - Display the full path of a condition (can be disabled in the editor options menu) Hotkeys - Fixed hotkeys not working after restarting Artemis Profile editor - Fixed display conditions not showing last selected layer on editor open
This commit is contained in:
1 parent
4034f438ed
commit
4fe0ea38cb
15 files changed
+111
-36
No files matched your search
@@ -28,6 +28,11 @@ namespace Artemis.Core.Modules
|
||||
/// </summary>
|
||||
public string? Affix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of list items, only applicable to enumerable data model properties
|
||||
/// </summary>
|
||||
public string? ListItemName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an optional maximum value, this value is not enforced but used for percentage calculations.
|
||||
/// </summary>
|
||||
|
||||
@@ -69,6 +69,15 @@ namespace Artemis.Core.Modules
|
||||
return Module.HiddenProperties;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the property description of the provided property info
|
||||
/// </summary>
|
||||
/// <returns>If found, the property description attribute, otherwise <see langword="null"/>.</returns>
|
||||
public virtual DataModelPropertyAttribute? GetPropertyDescription(PropertyInfo propertyInfo)
|
||||
{
|
||||
return (DataModelPropertyAttribute?) Attribute.GetCustomAttribute(propertyInfo, typeof(DataModelPropertyAttribute));
|
||||
}
|
||||
|
||||
#region Dynamic children
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user