mirror of
https://codeberg.org/Ikatono/TierMaker.git
synced 2025-10-28 20:45:35 -05:00
functional card/row edit and drag
This commit is contained in:
23
ClearButton.cs
Normal file
23
ClearButton.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class ClearButton : Button
|
||||
{
|
||||
// Called when the node enters the scene tree for the first time.
|
||||
public override void _Ready()
|
||||
{
|
||||
}
|
||||
|
||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
}
|
||||
public void EnableToggled(bool newState)
|
||||
{
|
||||
Disabled = !newState;
|
||||
}
|
||||
public void ClearPressed()
|
||||
{
|
||||
this.GetParentOfType<game>().Clear();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user