Grid loader UID
This commit is contained in:
parent
f994d6e2df
commit
dbb1881da8
1 changed files with 2 additions and 3 deletions
|
|
@ -5,12 +5,11 @@ namespace Newlon.Components.GUI;
|
|||
|
||||
public partial class GridLoader : GridContainer
|
||||
{
|
||||
private const string PLANT_RESOURCE_PATH = "res://resources/plants/";
|
||||
private PackedScene _plantCard;
|
||||
|
||||
const string SEEDPACKED_UID = "uid://e7vutg71l6f2";
|
||||
public override void _Ready()
|
||||
{
|
||||
_plantCard = ResourceLoader.Load<PackedScene>("res://scenes/gui/seedpacket.tscn");
|
||||
_plantCard = ResourceLoader.Load<PackedScene>(SEEDPACKED_UID);
|
||||
|
||||
var list = GameRegistry.GetPlants();
|
||||
list.Sort((a, b) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue