Demo Finish
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using Godot;
|
||||
using Skeleton.DataStructure.Link;
|
||||
using VirtualChemistry.Chemistry.Mixtures.Implements;
|
||||
@@ -37,17 +36,6 @@ public partial class FlaskContent : ColorRect
|
||||
Mixture.ColorGreen,
|
||||
Mixture.ColorTransparent
|
||||
);
|
||||
|
||||
/*Animation a = AP.GetAnimation("HeightChange");
|
||||
a.TrackSetKeyValue(0, 0, Size);
|
||||
a.TrackSetKeyValue(0, 1, new Vector2(Size.X, (float)height));
|
||||
AP.Play("HeightChange");
|
||||
AP.Play("PositionChange");
|
||||
a = AP.GetAnimation("PositionChange");
|
||||
a.TrackSetKeyValue(0,0,Position);
|
||||
a.TrackSetKeyValue(0,1, new Vector2(Position.X, 512-(float)(StartFrom + height)));
|
||||
Color = Color.Color8(Mixture.ColorRed, Mixture.ColorGreen, Mixture.ColorGreen, Mixture.ColorTransparent);
|
||||
AP.Play();*/
|
||||
}
|
||||
|
||||
// Called when the node enters the scene tree for the first time.
|
||||
@@ -62,15 +50,8 @@ public partial class FlaskContent : ColorRect
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
}
|
||||
|
||||
private void OnSizeChange() => Mask.Size = Size;
|
||||
|
||||
private void OnMouseEnter() => AP.Play("MouseEntered");
|
||||
|
||||
private void OnMouseExit() => AP.PlayBackwards("MouseEntered");
|
||||
|
||||
private void OnClick()
|
||||
{
|
||||
GlobalScene.MainControlPanel.Update(Mixture);
|
||||
}
|
||||
private void OnClick() => GlobalScene.MainControlPanel.Update(Mixture);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user