mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Implemented Entity and Component Drop-Targets and added Name property for entities
- Also fixed non generic GetComponent - Use UUID as Drag-Drop value for entities - Removed unused methods from ComponentEditWindow - Started a marginally type-safe version of ImGui.Payload
This commit is contained in:
@@ -21,6 +21,11 @@ enum DragDropPayloadType
|
||||
|
||||
extension ImGui
|
||||
{
|
||||
public static Payload<T>? AcceptDragDropPayload<T>(ImGui.DragDropPayloadType type, DragDropFlags flags = .None) where T : struct
|
||||
{
|
||||
return AcceptDragDropPayload<T>(type.GetName(), flags);
|
||||
}
|
||||
|
||||
public static Payload* AcceptDragDropPayload(DragDropPayloadType type, DragDropFlags flags = .None)
|
||||
{
|
||||
return AcceptDragDropPayload(type.GetName(), flags);
|
||||
|
||||
Reference in New Issue
Block a user