public void ShowItemInfoPopup(ItemDesign itemDesign) { string str = string.Empty; if (itemDesign.EnhancementType != EnhancementType.None) { str = string.Format("\n<color=lime>{0} +{1:##.##}</color>", (object)Singleton <SharedManager> .Instance.GetEnhancementTypeShortString(itemDesign.EnhancementType), (object)itemDesign.EnhancementValue); } AlertController.ShowAlert(itemDesign.ItemDesignName, itemDesign.ItemDesignDescription + str, false, (Action)null, itemDesign.ImageSprite, (Action <bool>)null, string.Empty, (string)null, 0.0f); }
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); } }