internal void Close() { GameMenuHandler.selectedCharacterContext.currentCharContext = CharacterContextMenu.CharacterContextMenuType.Select; cpl.Close(); talentGrid.Close(); }
private static void UpdateController() { KeyboardState kbs = Keyboard.GetState(); MouseState ms = Mouse.GetState(); if (kbs.IsKeyDown(Keys.W)) { TalentGrid.mPos.Y -= 3; TalentGrid.bUpdateMatrix = true; } if (kbs.IsKeyDown(Keys.S)) { TalentGrid.mPos.Y += 3; TalentGrid.bUpdateMatrix = true; } if (kbs.IsKeyDown(Keys.A)) { TalentGrid.mPos.X -= 3; TalentGrid.bUpdateMatrix = true; } if (kbs.IsKeyDown(Keys.D)) { TalentGrid.mPos.X += 3; TalentGrid.bUpdateMatrix = true; } if (kbs.IsKeyDown(Keys.Space)) { TalentGrid.mPos = new Point(0, 0); TalentGrid.mScale = 1f; TalentGrid.bUpdateMatrix = true; CCCRef.baseTalentSlot.Clear(); CCCRef.actualTalentSlots.Clear(); talentGrid = new TalentGrid(CCCRef.getEditorTalentNodesForGrid()); } if (kbs.IsKeyDown(Keys.Tab)) { bShowTalentTree = false; } else { bShowTalentTree = true; } if (ms.LeftButton == ButtonState.Pressed && kbs.IsKeyDown(Keys.LeftShift) && Game1.gameRef.GameHasMouse()) { HandleLB(); } if (ms.RightButton == ButtonState.Pressed && kbs.IsKeyDown(Keys.LeftShift) && Game1.gameRef.GameHasMouse()) { HandleRB(); } if (kbs.IsKeyDown(Keys.Escape)) { bIsRunning = false; talentGrid.Close(); } }