full gamepad support
This commit is contained in:
parent
31ba172123
commit
a57d79e84a
21 changed files with 213 additions and 46 deletions
17
scripts/gui/choose_your_seeds/CYSResetButton.cs
Normal file
17
scripts/gui/choose_your_seeds/CYSResetButton.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using Godot;
|
||||
using Newlon.Components;
|
||||
using Newlon.Components.GUI.Seedpackets;
|
||||
|
||||
public partial class CYSResetButton : Button
|
||||
{
|
||||
public override void _Pressed()
|
||||
{
|
||||
foreach (Seedpacket packet in LevelGUIElements.Instance.SeedpacketsHotbar.GetChildren())
|
||||
{
|
||||
packet._Pressed();
|
||||
packet.EmitSignal(Seedpacket.SignalName.Pressed);
|
||||
}
|
||||
GrabFocus();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue