Example #1
0
 public static void ShowInsufficientStarbuxDialogue(int starbuxCost)
 {
     if (SingletonManager <Configuration> .Instance.ShouldHideBank)
     {
         AlertController.ShowAlert(SingletonManager <LocalizationManager> .Instance.GetLocalizedText("Not enough Starbux"), SingletonManager <LocalizationManager> .Instance.GetLocalizedText("You don't have enough Starbux to make this purchase."), true, (Action)null, (SpriteDesign)null, (Action <bool>)null, string.Empty, (string)null, 0.0f);
     }
     else
     {
         AlertController.ShowOptionPanel(SingletonManager <LocalizationManager> .Instance.GetLocalizedText("Not enough Starbux"), string.Format(SingletonManager <LocalizationManager> .Instance.GetLocalizedText("You require {0} more Starbux for this purchase. Would you like to visit the Bank to buy more Starbux?"), (object)(starbuxCost - UserManager.Starbux)), (Action)(() => GameController.CurrentUIManager.OpenMenuPanel("BankMenuPanel", (Action <GameObject>)null)), (Action)null, 0.0f, false, string.Empty);
     }
 }