Data bindings - WIP commit

This commit is contained in:
SpoinkyNL committed 2020-09-06 21:24:35 +02:00
1 parent 0f1f8cd79c
commit e4fbc9ac55
42 files changed
+902 -356

No files matched your search

+14 -3
View File
@@ -186,9 +186,6 @@ namespace Artemis.Core
Transform.ApplyToEntity();
LayerBrush?.BaseProperties.ApplyToEntity();
// Effects
ApplyRenderElementToEntity();
// LEDs
LayerEntity.Leds.Clear();
foreach (var artemisLed in Leds)
@@ -204,6 +201,8 @@ namespace Artemis.Core
// Conditions
RenderElementEntity.RootDisplayCondition = DisplayConditionGroup?.Entity;
DisplayConditionGroup?.ApplyToEntity();
ApplyRenderElementToEntity();
}
#endregion
@@ -313,6 +312,18 @@ namespace Artemis.Core
}
}
/// <inheritdoc />
public override List<BaseLayerProperty> GetAllLayerProperties()
{
var result = base.GetAllLayerProperties();
result.AddRange(General.GetAllLayerProperties());
result.AddRange(Transform.GetAllLayerProperties());
if (LayerBrush?.BaseProperties != null)
result.AddRange(LayerBrush.BaseProperties.GetAllLayerProperties());
return result;
}
/// <inheritdoc />
public override void Render(double deltaTime, SKCanvas canvas, SKImageInfo canvasInfo)
{