You can use ''Reflection'' to get the current active ''GameMenu''. The ''GameMenu'' contains the Inventory, Skills, Social, Map, Crafting, Collections, and Options pages in this respective order, accessed by the tab index with ''inventoryTab'' at 0.
+
+
Here is an example for getting the MapPage:
+
<source lang="c#">
+
GameMenu menu = (GameMenu)Game1.activeClickableMenu;