mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Test handle Windows Explorer drag'n'drop in ImGui
This commit is contained in:
@@ -187,6 +187,25 @@ namespace GlitchyEditor.EditWindows
|
||||
}
|
||||
|
||||
ImGui.EndTable();
|
||||
|
||||
if (ImGui.BeginDragDropTarget())
|
||||
{
|
||||
ImGui.Payload* peekPayload = ImGui.AcceptDragDropPayload(.ExternFiles, .AcceptBeforeDelivery);
|
||||
|
||||
if (peekPayload != null)
|
||||
{
|
||||
if (peekPayload.IsDelivery())
|
||||
{
|
||||
Log.EngineLogger.Info("Buup!");
|
||||
}
|
||||
else
|
||||
{
|
||||
EditorLayer.SetDropEffect(.Copy);
|
||||
}
|
||||
}
|
||||
|
||||
ImGui.EndDragDropTarget();
|
||||
}
|
||||
}
|
||||
|
||||
ImGui.PopStyleVar(1);
|
||||
|
||||
Reference in New Issue
Block a user