mirror of
https://codeberg.org/Ikatono/TierMaker.git
synced 2025-10-28 20:45:35 -05:00
basically function but needs a lot of refinement
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user