main menu

This commit is contained in:
Rendo 2025-07-01 17:31:12 +05:00
commit 089ebc4797
35 changed files with 389 additions and 117 deletions

View file

@ -0,0 +1,9 @@
using Godot;
[GlobalClass]
public partial class CustomSeedpacketFrame : Resource
{
[Export] public Texture2D frame;
[Export] public LabelSettings font;
[Export] public Texture2D almanachField;
}

View file

@ -0,0 +1 @@
uid://3m7xks3xq3hl

View file

@ -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()