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

@@ -82,6 +82,8 @@ layout_mode = 2
[node name="CurrentTimeLine" type="Panel" parent="." unique_id=961292687]
unique_name_in_owner = true
z_index = 2
z_as_relative = false
custom_minimum_size = Vector2(0, 5)
clip_contents = true
layout_mode = 2

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

View File

@@ -4,6 +4,8 @@
[ext_resource type="PackedScene" uid="uid://b2cpk0ef3rw87" path="res://MeetingControlGfx.tscn" id="1_o8u20"]
[node name="MeetingControl" type="Control" unique_id=778678487]
z_index = 1
z_as_relative = false
layout_mode = 3
anchors_preset = 8
anchor_left = 0.5
@@ -16,6 +18,7 @@ offset_right = 103.0
offset_bottom = 27.0
grow_horizontal = 2
grow_vertical = 2
offset_transform_enabled = true
script = ExtResource("1_o5h3n")
[node name="MeetingControlGfx" parent="." unique_id=1923695250 instance=ExtResource("1_o8u20")]