Minor fixes

This commit is contained in:
2025-04-30 21:46:08 -07:00
parent 68c91d8f13
commit 7ab5e32c74
9 changed files with 344 additions and 63 deletions

View File

@@ -43,18 +43,26 @@ public partial class UseTeleportPrompt : Control, IUseTeleportPrompt
private void NoButton_Pressed()
{
YesButton.Disabled = true;
NoButton.Disabled = true;
EmitSignal(SignalName.CloseTeleportPrompt);
}
private void YesButton_Pressed()
{
YesButton.Disabled = true;
NoButton.Disabled = true;
EmitSignal(SignalName.TeleportToNextFloor);
}
private void AnimationPlayer_AnimationFinished(StringName animName)
{
if (animName == "fade_in")
{
YesButton.Disabled = false;
NoButton.Disabled = false;
YesButton.CallDeferred(MethodName.GrabFocus);
}
if (animName == "fade_out")
CallDeferred(MethodName.ReleaseFocus);
}

View File

@@ -48,6 +48,8 @@ public partial class PauseDebugMenu : Control, IDebugMenu
var tempEnemy = enemy.Instantiate<Enemy>();
SpawnEnemyDropDown.AddItem(tempEnemy.Name);
}
SpawnItemDropDown.AllowReselect = true;
SpawnEnemyDropDown.AllowReselect = true;
SpawnItemDropDown.ItemSelected += SpawnItemDropDown_ItemSelected;
SpawnEnemyDropDown.ItemSelected += SpawnEnemyDropDown_ItemSelected;