fix stuff
This commit is contained in:
@@ -49,6 +49,10 @@ public partial class MeetingControl : Control
|
||||
otherMeetingControl = meetingData.MeetingControl;
|
||||
var otherParent = otherMeetingControl.GetParent();
|
||||
|
||||
// TODO: refactor mit Signal
|
||||
var timeSlot = GetParent<TimeSlot>();
|
||||
timeSlot.MeetingControl = otherMeetingControl;
|
||||
|
||||
otherMeetingControl.Reparent(GetParent(), false);
|
||||
Reparent(otherParent, false);
|
||||
|
||||
@@ -107,12 +111,24 @@ public partial class MeetingControl : Control
|
||||
{
|
||||
var tween = CreateTween();
|
||||
|
||||
tween.TweenProperty(
|
||||
this,
|
||||
new NodePath(Control.PropertyName.Scale),
|
||||
new Vector2(1.2f, 1.2f),
|
||||
0.4f
|
||||
);
|
||||
tween.TweenProperty(this, new NodePath(Control.PropertyName.Scale), Vector2.One, 0.4f);
|
||||
tween
|
||||
.TweenProperty(
|
||||
this,
|
||||
new NodePath(Control.PropertyName.OffsetTransformScale),
|
||||
new Vector2(1.2f, 1.2f),
|
||||
0.2f
|
||||
)
|
||||
.SetTrans(Tween.TransitionType.Back)
|
||||
.SetEase(Tween.EaseType.Out);
|
||||
|
||||
tween
|
||||
.TweenProperty(
|
||||
this,
|
||||
new NodePath(Control.PropertyName.OffsetTransformScale),
|
||||
Vector2.One,
|
||||
0.2f
|
||||
)
|
||||
.SetTrans(Tween.TransitionType.Quad)
|
||||
.SetEase(Tween.EaseType.Out);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user