thief-mission-viewer/project/code/TMV/UI/AssetBrowser.cs

29 lines
571 B
C#
Raw Normal View History

using Godot;
namespace KeepersCompound.TMV.UI;
public partial class AssetBrowser : Control
{
// 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 override void _ShortcutInput(InputEvent input)
{
if (input is InputEventKey keyEvent && keyEvent.Pressed)
{
if (keyEvent.Keycode == Key.Space)
{
Visible = !Visible;
GetViewport().SetInputAsHandled();
}
}
}
}