Stardew_Valley_Mods/GeneralMods/HappyBirthday/OmegasisUtility/Messages.cs

54 lines
1.6 KiB
C#
Raw Normal View History

using StardewValley;
2017-07-28 08:28:39 +08:00
namespace Omegasis.HappyBirthday.OmegasisUtility
{
class Messages
{
public static void showStarMessage(string message)
{
Game1.addHUDMessage(new HUDMessage(message, 1));
if (!message.Contains("Inventory"))
{
Game1.playSound("cancel");
return;
}
if (!Game1.player.mailReceived.Contains("BackpackTip"))
{
Game1.player.mailReceived.Add("BackpackTip");
Game1.addMailForTomorrow("pierreBackpack", false, false);
}
}
public static void showMessage2(string message)
{
Game1.addHUDMessage(new HUDMessage(message, 2));
if (!message.Contains("Inventory"))
{
Game1.playSound("cancel");
return;
}
if (!Game1.player.mailReceived.Contains("BackpackTip"))
{
Game1.player.mailReceived.Add("BackpackTip");
Game1.addMailForTomorrow("pierreBackpack", false, false);
}
}
public static void showRedMessage(string message)
{
Game1.addHUDMessage(new HUDMessage(message, 3));
if (!message.Contains("Inventory"))
{
Game1.playSound("cancel");
return;
}
if (!Game1.player.mailReceived.Contains("BackpackTip"))
{
Game1.player.mailReceived.Add("BackpackTip");
Game1.addMailForTomorrow("pierreBackpack", false, false);
}
}
}
}