2018-05-19 05:24:59 +08:00
|
|
|
|
|
2018-05-10 05:23:42 +08:00
|
|
|
|
using StardewValley;
|
2018-05-07 09:21:31 +08:00
|
|
|
|
using System.Collections.Generic;
|
2016-10-20 15:01:51 +08:00
|
|
|
|
|
2017-07-31 11:07:07 +08:00
|
|
|
|
namespace Omegasis.HappyBirthday.Framework
|
2016-10-20 15:01:51 +08:00
|
|
|
|
{
|
2017-07-30 06:02:49 +08:00
|
|
|
|
/// <summary>Provides utility methods for displaying messages to the user.</summary>
|
|
|
|
|
internal class Messages
|
2016-10-20 15:01:51 +08:00
|
|
|
|
{
|
2017-07-30 06:02:49 +08:00
|
|
|
|
/*********
|
|
|
|
|
** Public methods
|
|
|
|
|
*********/
|
|
|
|
|
/// <summary>Show a message to the user with a star icon.</summary>
|
|
|
|
|
/// <param name="message">The message to display.</param>
|
|
|
|
|
public static void ShowStarMessage(string message)
|
2016-10-20 15:01:51 +08:00
|
|
|
|
{
|
2018-05-07 09:21:31 +08:00
|
|
|
|
//IEnumerable<Farmer> players= Game1.getAllFarmers();
|
|
|
|
|
|
2016-10-20 15:01:51 +08:00
|
|
|
|
Game1.addHUDMessage(new HUDMessage(message, 1));
|
2018-05-07 09:21:31 +08:00
|
|
|
|
|
2016-10-20 15:01:51 +08:00
|
|
|
|
if (!message.Contains("Inventory"))
|
|
|
|
|
{
|
|
|
|
|
Game1.playSound("cancel");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (!Game1.player.mailReceived.Contains("BackpackTip"))
|
|
|
|
|
{
|
|
|
|
|
Game1.player.mailReceived.Add("BackpackTip");
|
|
|
|
|
Game1.addMailForTomorrow("pierreBackpack", false, false);
|
|
|
|
|
}
|
2018-05-10 05:23:42 +08:00
|
|
|
|
|
|
|
|
|
|
2016-10-20 15:01:51 +08:00
|
|
|
|
}
|
2018-05-10 05:23:42 +08:00
|
|
|
|
|
2016-10-20 15:01:51 +08:00
|
|
|
|
}
|
|
|
|
|
}
|