basically function but needs a lot of refinement

This commit is contained in:
2024-04-23 03:24:23 -05:00
parent 3ac7bf33c4
commit d3beca8014
26 changed files with 985 additions and 345 deletions

View File

@@ -3,8 +3,16 @@ using System;
using System.Collections;
using System.Collections.Generic;
public partial class PictureDropHandler : Control
public partial class PictureDropHandler : Node
{
private Settings _Settings;
private Settings Settings
{ get
{
_Settings ??= GetNode<Settings>("/root/Settings");
return _Settings;
}
}
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
@@ -28,6 +36,7 @@ public partial class PictureDropHandler : Control
continue;
var c = card.MakeCard(GetTree());
c.SetImage(tex);
c.SetStretchMode(Settings.StretchMode);
g.AddUnassignedCard(c);
}
}