alter vatter
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
using Godot;
|
||||
|
||||
[SceneTree]
|
||||
public partial class TimeSlot : PanelContainer
|
||||
{
|
||||
public MeetingControl MeetingControl { get; set; }
|
||||
|
||||
public override bool _CanDropData(Vector2 atPosition, Variant data)
|
||||
{
|
||||
GD.Print("DRAGGED OVERR!!!");
|
||||
return data.VariantType == Variant.Type.Object
|
||||
&& data.AsGodotObject() is MeetingControlDragData;
|
||||
}
|
||||
@@ -16,21 +16,18 @@ public partial class TimeSlot : PanelContainer
|
||||
var meetingData = (MeetingControlDragData)data;
|
||||
|
||||
MeetingControl = meetingData.MeetingControl;
|
||||
meetingData.MeetingControl.InSlot = true;
|
||||
MeetingControl.Reparent(this, false);
|
||||
MeetingControl.Visible = true;
|
||||
|
||||
meetingData.MeetingControl.DragIsHandled = true;
|
||||
}
|
||||
|
||||
public override void _Notification(int what)
|
||||
{
|
||||
if (what == NotificationDragBegin)
|
||||
{
|
||||
MouseFilter = MouseFilterEnum.Pass;
|
||||
}
|
||||
|
||||
if (what == NotificationDragEnd)
|
||||
{
|
||||
MouseFilter = MouseFilterEnum.Ignore;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user