Costveil
This commit is contained in:
parent
175d813230
commit
85eb5deede
5 changed files with 38 additions and 7 deletions
21
scripts/gui/seedpackets/CostVeil.cs
Normal file
21
scripts/gui/seedpackets/CostVeil.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using Godot;
|
||||
using Newlon.Components.GUI.Seedpackets;
|
||||
using Newlon.Components.Level;
|
||||
using System;
|
||||
|
||||
public partial class CostVeil : ColorRect
|
||||
{
|
||||
private Seedpacket packet;
|
||||
public override void _Ready()
|
||||
{
|
||||
packet = GetParent<Seedpacket>();
|
||||
}
|
||||
|
||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
//Visible = RuntimeLevelData.Instance.SunCount < packet.GetResource().Cost;
|
||||
|
||||
Visible = packet.disablePacket;
|
||||
}
|
||||
}
|
||||
1
scripts/gui/seedpackets/CostVeil.cs.uid
Normal file
1
scripts/gui/seedpackets/CostVeil.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://chag6sgjsjb2u
|
||||
Loading…
Add table
Add a link
Reference in a new issue