mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Device visualizer - Added LedClicked event
Device properties - Added the ability to select LEDs by clicking on them in the preview
This commit is contained in:
1 parent
6005535000
commit
5611ad420a
6 files changed
+90
-17
No files matched your search
@@ -25,10 +25,10 @@ namespace Artemis.Core
|
||||
public static SKRect ToSKRect(this Rectangle rectangle)
|
||||
{
|
||||
return SKRect.Create(
|
||||
(float) rectangle.Location.X,
|
||||
(float) rectangle.Location.Y,
|
||||
(float) rectangle.Size.Width,
|
||||
(float) rectangle.Size.Height
|
||||
rectangle.Location.X,
|
||||
rectangle.Location.Y,
|
||||
rectangle.Size.Width,
|
||||
rectangle.Size.Height
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -337,6 +337,7 @@ namespace Artemis.Core
|
||||
|
||||
Layout = layout;
|
||||
Layout.ApplyDevice(this);
|
||||
CalculateRenderProperties();
|
||||
OnDeviceUpdated();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user