nice nice nice

This commit is contained in:
2026-08-03 13:15:39 +02:00
parent 0bb8ce47c0
commit 737919f66f
25 changed files with 206 additions and 61 deletions

View File

@@ -1,4 +1,5 @@
using Godot;
using yourareanaiceo;
public sealed partial class MeetingControlDragData(MeetingControl meetingControl) : GodotObject
{
@@ -86,9 +87,9 @@ public partial class MeetingControl : Control
private void RespawnPhysicsBoxFromSpawn()
{
var main = (Main)FindParent("Main");
main.AddChild(MeetingPhysicsBox);
MeetingPhysicsBox.Position = main.MeetingSpawn.GlobalPosition;
var game = this.GetGame();
game.AddChild(MeetingPhysicsBox);
MeetingPhysicsBox.Position = game.MeetingSpawn.GlobalPosition;
QueueFree();
}
@@ -101,4 +102,17 @@ public partial class MeetingControl : Control
return preview;
}
public void Animate()
{
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);
}
}