fix stuff

This commit is contained in:
2026-08-03 13:40:15 +02:00
parent 737919f66f
commit c9f0dbdac0
3 changed files with 28 additions and 7 deletions

View File

@@ -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);
}
}