public static void Open() { var menu = new WarpMenu(); Game1.activeClickableMenu = new WarpMenu(); menu.BaseMenu.UpdateBounds(); }
private void Input_ButtonPressed(object sender, ButtonPressedEventArgs e) { e.Button.TryGetKeyboard(out Keys keyPressed); if (e.Button != config.MenuButton) { return; } if (Context.IsWorldReady) { WarpMenu.Open(); } }