main menu
This commit is contained in:
parent
29254dbda0
commit
089ebc4797
35 changed files with 389 additions and 117 deletions
|
|
@ -0,0 +1,9 @@
|
|||
using Godot;
|
||||
|
||||
[GlobalClass]
|
||||
public partial class CustomSeedpacketFrame : Resource
|
||||
{
|
||||
[Export] public Texture2D frame;
|
||||
[Export] public LabelSettings font;
|
||||
[Export] public Texture2D almanachField;
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
uid://3m7xks3xq3hl
|
||||
|
|
@ -73,6 +73,11 @@ public partial class Seedpacket : TextureButton
|
|||
_cost.Text = _resource.Cost.ToString();
|
||||
_icon.Texture = _resource.Preview;
|
||||
_timer.WaitTime = _resource.ReloadTime;
|
||||
if (_resource.customFrame != null)
|
||||
{
|
||||
TextureNormal = _resource.customFrame.frame;
|
||||
_cost.LabelSettings = _resource.customFrame.font;
|
||||
}
|
||||
}
|
||||
|
||||
public override void _Pressed()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue