diff --git a/GeneralMods/StardustCore/Menus/ModualGameMenu.cs b/GeneralMods/StardustCore/Menus/ModualGameMenu.cs
index 3edfc8d9..b0f7a24a 100644
--- a/GeneralMods/StardustCore/Menus/ModualGameMenu.cs
+++ b/GeneralMods/StardustCore/Menus/ModualGameMenu.cs
@@ -12,6 +12,10 @@ using StardustCore.UIUtilities.MenuComponents;
namespace StardustCore.Menus
{
+ ///
+ /// TODO:
+ /// makebuttons to cycle through page
+ ///
public class ModularGameMenu : StardustCore.UIUtilities.IClickableMenuExtended
{
public static SortedDictionary>> StaticMenuTabsAndPages = new SortedDictionary>>();
@@ -30,6 +34,8 @@ namespace StardustCore.Menus
public const int tabsPerPage = 12;
+ public int currentPageIndex;
+
public ModularGameMenu()
: base(Game1.viewport.Width / 2 - (800 + IClickableMenu.borderWidth * 2) / 2, Game1.viewport.Height / 2 - (600 + IClickableMenu.borderWidth * 2) / 2, 800 + IClickableMenu.borderWidth * 2, 600 + IClickableMenu.borderWidth * 2, true)
{
@@ -114,16 +120,42 @@ namespace StardustCore.Menus
}
//this.menuTabsAndPages.Add(v.Key,v.Value.clone());
}
+ currentPageIndex = startingTab % tabsPerPage;
this.changeTab(startingTab);
}
+ ///
+ /// Takes in the static declared tabs and tries to set the menu tabs to that.
+ ///
+ ///
+ public ModularGameMenu(string startingTab) : base(Game1.viewport.Width / 2 - (800 + IClickableMenu.borderWidth * 2) / 2, Game1.viewport.Height / 2 - (600 + IClickableMenu.borderWidth * 2) / 2, 800 + IClickableMenu.borderWidth * 2, 600 + IClickableMenu.borderWidth * 2, true)
+ {
+ ModCore.ModMonitor.Log("INITIALIZE MENU: ", LogLevel.Alert);
+ if (Game1.activeClickableMenu == null)
+ Game1.playSound("bigSelect");
+ GameMenu.forcePreventClose = false;
+
+ this.menuTabsAndPages = new Dictionary