From 726019125661530f6b77b50442f84393ced169dc Mon Sep 17 00:00:00 2001 From: roxas0zero Date: Sun, 4 Feb 2024 16:00:36 +0300 Subject: [PATCH 1/2] pause the dialog audio when pausing the game --- Source/Scenes/World.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Scenes/World.cs b/Source/Scenes/World.cs index bb510964..8aa54d51 100644 --- a/Source/Scenes/World.cs +++ b/Source/Scenes/World.cs @@ -390,6 +390,7 @@ public void SetPaused(bool paused) { Audio.SetBusPaused(Sfx.bus_gameplay, paused); Audio.SetBusPaused(Sfx.bus_bside_music, paused); + Audio.SetBusPaused(Sfx.bus_dialog, paused); if (paused) { From a0813854e86f0aaca65e666b7fbb3822ee3c334a Mon Sep 17 00:00:00 2001 From: roxas0zero Date: Sun, 4 Feb 2024 16:36:50 +0300 Subject: [PATCH 2/2] keep rendering the npc dialog ui when pausing --- Source/Actors/Cutscene.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Actors/Cutscene.cs b/Source/Actors/Cutscene.cs index b31ea624..99a96d6e 100644 --- a/Source/Actors/Cutscene.cs +++ b/Source/Actors/Cutscene.cs @@ -213,7 +213,7 @@ public void RenderUI(Batcher batch, Rect bounds) batch.Rect(new Rect(bounds.X, bounds.Y, bounds.Width, BarSize * ease), Color.Black); batch.Rect(new Rect(bounds.X, bounds.Bottom - BarSize * ease, bounds.Width, BarSize * ease), Color.Black); - if (saying.Ease > 0 && !string.IsNullOrEmpty(saying.Text) && !World.Paused) + if (saying.Ease > 0 && !string.IsNullOrEmpty(saying.Text)) { var ease = Ease.CubeOut(saying.Ease); var font = Language.Current.SpriteFont;