2016-10-20 15:01:51 +08:00
|
|
|
|
using StardewValley;
|
|
|
|
|
|
2017-07-28 08:28:39 +08:00
|
|
|
|
namespace Omegasis.HappyBirthday.OmegasisUtility
|
2016-10-20 15:01:51 +08:00
|
|
|
|
{
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|