nice nice nice
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user