diff --git a/ModEntry.cs b/ModEntry.cs index 2d261fe..7d26643 100644 --- a/ModEntry.cs +++ b/ModEntry.cs @@ -5,6 +5,8 @@ using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using StardewValley; using StardewValley.BellsAndWhistles; +using StardewValley.Menus; +using StardewValley.Mobile; using StardewValley.Objects; using StardewValley.Projectiles; @@ -75,7 +77,16 @@ namespace StardewModdingAPI.Mods.CustomLocalization Game1.mobileSpriteSheet = ((ContentManager)Game1.content).Load("LooseSprites\\MobileAtlas_manually_made"); Game1.achievements = (Dictionary)((ContentManager)Game1.content).Load>("Data\\Achievements"); Game1.NPCGiftTastes = (IDictionary)((ContentManager)Game1.content).Load>("Data\\NPCGiftTastes"); + Game1.onScreenMenus.Clear(); this.Helper.Reflection.GetMethod(Game1.game1, "TranslateFields").Invoke(); + Game1.dayTimeMoneyBox = new DayTimeMoneyBox(); + Game1.dayTimeMoneyBox.game1 = Game1.game1; + Game1.onScreenMenus.Add((IClickableMenu)Game1.dayTimeMoneyBox); + Game1.toolbar = new Toolbar(); + Game1.virtualJoypad = new VirtualJoypad(); + Game1.onScreenMenus.Add((IClickableMenu)Game1.toolbar); + Game1.buffsDisplay = new BuffsDisplay(); + Game1.onScreenMenus.Add((IClickableMenu)Game1.buffsDisplay); Game1.dialogueFont = (SpriteFont)((ContentManager)Game1.content).Load("Fonts\\SpriteFont1"); Game1.smallFont = (SpriteFont)((ContentManager)Game1.content).Load("Fonts\\SmallFont"); Game1.tinyFont = (SpriteFont)((ContentManager)Game1.content).Load("Fonts\\tinyFont"); diff --git a/manifest.json b/manifest.json index b53560b..b8ba392 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "Name": "Custom Localization", "Author": "ZaneYork", - "Version": "1.0.2", + "Version": "1.0.3", "Description": "Localization for not exist locale.", "UniqueID": "ZaneYork.CustomLocalization", "EntryDll": "CustomLocalization.dll",