mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Keyframes - Copy/paste WIP
Timeline - Improved sizing, avoid unnecessary scrolling Timeline - Fix selection rectangle appearing on mousedown
This commit is contained in:
1 parent
7c955d1134
commit
f110383ed4
18 files changed
+381
-122
No files matched your search
@@ -156,6 +156,11 @@ namespace Artemis.UI.Shared.Services
|
||||
/// <returns>The pasted render element</returns>
|
||||
ProfileElement? PasteProfileElement(Folder target, int position);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a boolean indicating whether a profile element is on the clipboard
|
||||
/// </summary>
|
||||
bool GetCanPasteProfileElement();
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when a new profile is selected
|
||||
/// </summary>
|
||||
|
||||
@@ -384,6 +384,12 @@ namespace Artemis.UI.Shared.Services
|
||||
return clipboardObject != null ? PasteClipboardData(clipboardObject, target, position) : null;
|
||||
}
|
||||
|
||||
public bool GetCanPasteProfileElement()
|
||||
{
|
||||
object? clipboardObject = JsonClipboard.GetData();
|
||||
return clipboardObject is LayerEntity || clipboardObject is FolderClipboardModel;
|
||||
}
|
||||
|
||||
private RenderProfileElement? PasteClipboardData(object clipboardObject, Folder target, int position)
|
||||
{
|
||||
RenderProfileElement? pasted = null;
|
||||
|
||||
Reference in new issue
Block a user