Minor UI fixes, add SFX
This commit is contained in:
@@ -157,7 +157,7 @@ text = "Continue"
|
|||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
process_mode = 3
|
process_mode = 3
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 4
|
size_flags_horizontal = 0
|
||||||
focus_neighbor_top = NodePath("../Continue")
|
focus_neighbor_top = NodePath("../Continue")
|
||||||
focus_neighbor_bottom = NodePath(".")
|
focus_neighbor_bottom = NodePath(".")
|
||||||
focus_next = NodePath(".")
|
focus_next = NodePath(".")
|
||||||
@@ -176,3 +176,4 @@ theme_override_styles/pressed = ExtResource("4_byrtd")
|
|||||||
theme_override_styles/normal_mirrored = ExtResource("4_byrtd")
|
theme_override_styles/normal_mirrored = ExtResource("4_byrtd")
|
||||||
theme_override_styles/normal = ExtResource("4_byrtd")
|
theme_override_styles/normal = ExtResource("4_byrtd")
|
||||||
text = "Exit"
|
text = "Exit"
|
||||||
|
alignment = 0
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ public partial class UseTeleportPrompt : Control, IUseTeleportPrompt
|
|||||||
{
|
{
|
||||||
YesButton.Disabled = true;
|
YesButton.Disabled = true;
|
||||||
NoButton.Disabled = true;
|
NoButton.Disabled = true;
|
||||||
|
SfxDatabase.Instance.Play(SoundEffect.SelectUI);
|
||||||
EmitSignal(SignalName.CloseTeleportPrompt);
|
EmitSignal(SignalName.CloseTeleportPrompt);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,6 +53,7 @@ public partial class UseTeleportPrompt : Control, IUseTeleportPrompt
|
|||||||
{
|
{
|
||||||
YesButton.Disabled = true;
|
YesButton.Disabled = true;
|
||||||
NoButton.Disabled = true;
|
NoButton.Disabled = true;
|
||||||
|
SfxDatabase.Instance.Play(SoundEffect.SelectUI);
|
||||||
EmitSignal(SignalName.TeleportToNextFloor);
|
EmitSignal(SignalName.TeleportToNextFloor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ public partial class LoadNextLevel : Control, IFloorClearMenu
|
|||||||
{
|
{
|
||||||
ContinueButton.FocusMode = FocusModeEnum.None;
|
ContinueButton.FocusMode = FocusModeEnum.None;
|
||||||
ExitButton.FocusMode = FocusModeEnum.None;
|
ExitButton.FocusMode = FocusModeEnum.None;
|
||||||
|
SfxDatabase.Instance.Play(SoundEffect.SelectUI);
|
||||||
FadeOut();
|
FadeOut();
|
||||||
Exit?.Invoke();
|
Exit?.Invoke();
|
||||||
}
|
}
|
||||||
@@ -79,6 +80,7 @@ public partial class LoadNextLevel : Control, IFloorClearMenu
|
|||||||
{
|
{
|
||||||
ContinueButton.FocusMode = FocusModeEnum.None;
|
ContinueButton.FocusMode = FocusModeEnum.None;
|
||||||
ExitButton.FocusMode = FocusModeEnum.None;
|
ExitButton.FocusMode = FocusModeEnum.None;
|
||||||
|
SfxDatabase.Instance.Play(SoundEffect.SelectUI);
|
||||||
GoToNextFloor?.Invoke();
|
GoToNextFloor?.Invoke();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -291,6 +291,7 @@ horizontal_alignment = 2
|
|||||||
|
|
||||||
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
alignment = 1
|
||||||
|
|
||||||
[node name="LevelText" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer"]
|
[node name="LevelText" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
|||||||
Reference in New Issue
Block a user