From 088bb1ceb2c0f71ee0f9e55a65e43f8248d68635 Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Sat, 27 May 2023 19:27:48 +0200 Subject: [PATCH] Incorrect Quit Correction + Localizable QuitButton And some corrected tokens --- P3D/Content/Localization/Tokens_en.dat | 22 ++++---- .../Textures/VoltorbFlip/Quit_Button.png | Bin 407 -> 247 bytes P3D/Screens/VoltorbFlipScreen.vb | 51 +++++++++--------- 3 files changed, 37 insertions(+), 36 deletions(-) diff --git a/P3D/Content/Localization/Tokens_en.dat b/P3D/Content/Localization/Tokens_en.dat index a4952aa6b..e4c06e0e1 100644 --- a/P3D/Content/Localization/Tokens_en.dat +++ b/P3D/Content/Localization/Tokens_en.dat @@ -413,17 +413,19 @@ VoltorbFlip_MemoButton_Open_Line2,Memos VoltorbFlip_MemoButton_Close_Line1,Close VoltorbFlip_MemoButton_Close_Line2,Memos -VoltorbFlip_QuitQuestion_Question,Do you want to stop~playing Voltorb Flip? +VoltorbFlip_QuitButton,Quit + +VoltorbFlip_QuitQuestion_Question_1,If you quit now, you will~receive +VoltorbFlip_QuitQuestion_Question_2,Coin(s).*Will you quit? VoltorbFlip_QuitQuestion_AnswerYes,Yes VoltorbFlip_QuitQuestion_AnswerNo,No -VoltorbFlip_GameWon_1,Game clear! You received~ -VoltorbFlip_GameWon_2,Coins! +VoltorbFlip_GameWon_1,Game clear!* received~ +VoltorbFlip_GameWon_2,Coin(s)! -VoltorbFlip_GameLost,Oh no! You get 0 coins! +VoltorbFlip_GameLost,Oh no! You get 0 Coins! -VoltorbFlip_MaxCoins1,Your Coin Case can't fit~any more Coins!*You received~ -VoltorbFlip_MaxCoins2,Coins instead! +VoltorbFlip_MaxCoins,Your Coin Case can't fit~any more Coin(s)! VoltorbFlip_NewLevel_Lower1,Dropped to Game Lv. VoltorbFlip_NewLevel_Lower2,! @@ -432,12 +434,12 @@ VoltorbFlip_NewLevel_Same2,! VoltorbFlip_NewLevel_Higher1,Advanced to Game Lv. VoltorbFlip_NewLevel_Higher2,! -VoltorbFlip_GameOver1,Game Over!~Dropped to Game Lv. -VoltorbFlip_GameOver2,! +VoltorbFlip_QuitGame_1, received~ +VoltorbFlip_QuitGame_2,Coin(s)! VoltorbFlip_AfterGame_Won1,You've won -VoltorbFlip_AfterGame_Won2,Coins! -VoltorbFlip_AfterGame_Lost,Too bad, you didn't win~any Coins!*Better luck next time! +VoltorbFlip_AfterGame_Won2,Coin(s)! +VoltorbFlip_AfterGame_Lost,Too bad, you didn't win~any Coin(s)!*Better luck next time! VoltorbFlip_BeforeGame_FullCoinCase,Your Coin Case is already full! VoltorbFlip_BeforeGame_NoCoinCase,You don't have a Coin Case!~Come back when you have one! diff --git a/P3D/Content/Textures/VoltorbFlip/Quit_Button.png b/P3D/Content/Textures/VoltorbFlip/Quit_Button.png index 74dd083f1d4894c1bcb0bee545d2e6f1ee75e70b..bbe56f58ca8d9151d76698c5615f6a004c16b7d6 100644 GIT binary patch delta 160 zcmbQv{GD+^d_6;xr;B4q#NoF$HVQT<@VF&zW>j6eR5{|5THiCZ2&*PlRaNPP_l@nj zpZ@XQ3xBG#_1ei#EDhog9FAK(dIEPb+2^fE0MT`njxgN@xNA D*Y`P; delta 321 zcmV-H0lxnC0ha@iUw;82Nkl0?A$#-p0?J0x=jM*~EiyQs4INpyR{6vrhx{ZKEaH##Z&J?E;X^ z0HXk7YF!@NLBG>$XP*YrwaKn!{8M-;0AB>X1K?ZPlg0M&N@4b2xf6#(r& z$4popfDW8LWjZnKbwxw+{#F2}Fy?xXtpc$6he!bM8Nl^Y0{DRN_qVu@= MaxCoins AndAlso GameState = States.Game Then - Dim GameClearText = Localization.GetString("VoltorbFlip_GameWon_1", "Game clear! You received~") & CurrentCoins.ToString & " " & Localization.GetString("VoltorbFlip_GameWon_2", "Coins!") + Dim GameClearText = Localization.GetString("VoltorbFlip_GameWon_1", "Game clear!* received~") & CurrentCoins.ToString & " " & Localization.GetString("VoltorbFlip_GameWon_2", "Coin(s)!") SoundManager.PlaySound("VoltorbFlip\WinGame") TextBox.Show(GameClearText) If Delay = 0 Then @@ -960,7 +971,7 @@ TryAgain: If Core.Player.Coins + TotalCoins > 50000 Then TotalCoins = 50000 - Core.Player.Coins CurrentCoins = 0 - TextBox.Show(Localization.GetString("VoltorbFlip_MaxCoins1", "Your Coin Case can't fit~any more Coins!*You received~") & TotalCoins.ToString & " " & Localization.GetString("VoltorbFlip_MaxCoins2", "Coins instead!")) + TextBox.Show(Localization.GetString("VoltorbFlip_MaxCoins", "Your Coin Case can't fit~any more Coin(s)!")) Quit() Else TotalCoins += CurrentCoins @@ -1080,13 +1091,7 @@ TryAgain: 'Animation of opening/closing the window If GameState = States.Closing Then - Dim ResultCoins As Integer = 0 - Dim AnimationCurrentCoins As Single = CurrentCoins - - If CurrentCoins > ResultCoins Then - - CurrentCoins = 0 - End If + CurrentCoins = 0 If _interfaceFade > 0F Then _interfaceFade = MathHelper.Lerp(0, _interfaceFade, 0.8F) @@ -1131,21 +1136,15 @@ TryAgain: End Sub Public Sub Quit() - If CurrentFlips < CurrentLevel Then - CurrentLevel = Math.Max(1, CurrentFlips) - Else - CurrentLevel = 1 - End If - PreviousLevel = CurrentLevel - SoundManager.PlaySound("VoltorbFlip\QuitGame", True) - TextBox.Show(Localization.GetString("VoltorbFlip_GameOver1", "Game Over!~Dropped to Game Lv.") & " " & CurrentLevel & Localization.GetString("VoltorbFlip_GameOver2", "!")) + TextBox.Show(Localization.GetString("VoltorbFlip_QuitGame_1", " received~") & CurrentCoins.ToString & " " & Localization.GetString("VoltorbFlip_QuitGame_2", "Coin(s)!")) - CurrentFlips = 0 - TotalFlips = 0 - - CurrentCoins = 0 + If GameState = States.QuitQuestion Then + TotalCoins += CurrentCoins + CurrentFlips = 0 + CurrentCoins = 0 + End If GameState = States.Closing End Sub End Class @@ -1257,7 +1256,7 @@ TryAgain: If VoltorbFlipScreen.GameState = VoltorbFlipScreen.States.Game Then SoundManager.PlaySound("VoltorbFlip\LoseGame", True) End If - Screen.TextBox.Show(Localization.GetString("VoltorbFlip_GameLost", "Oh no! You get 0 coins!")) + Screen.TextBox.Show(Localization.GetString("VoltorbFlip_GameLost", "Oh no! You get 0 Coins!")) VoltorbFlipScreen.ConsecutiveWins = 0 VoltorbFlipScreen.GameState = VoltorbFlipScreen.States.GameLost Else