public PartyMenuScene(Game game) : base(game) { var keyboard = new KeyboardInputLayer(this, null); keyboard.AddKeyDownBinding(Keys.Escape, () => Game.PopScene()); Components.Add(keyboard); _menu = new MenuDialog(); _menu.MenuChanged += ChangeMenu; Gui.Screen.Desktop.Children.Add(_menu); _partyMenuDialog = new PartyMenuDialog(((SRPGGame)Game).Party); _partyMenuDialog.OnCharacterChange += SetCharacter; Gui.Screen.Desktop.Children.Add(_partyMenuDialog); _characterInfoDialog = new CharacterInfoDialog(); _characterInfoDialog.ChangeItem += ChangeItem; Gui.Screen.Desktop.Children.Add(_characterInfoDialog); _inventoryDialog = new InventoryDialog(); Gui.Screen.Desktop.Children.Add(_inventoryDialog); Gui.DrawOrder = 1000; Gui.Visualizer = FlatGuiVisualizer.FromFile(Game.Services, "Content/Gui/main_gui.xml"); ((FlatGuiVisualizer)Gui.Visualizer).RendererRepository.AddAssembly(typeof(FlatPictureControlRenderer).Assembly); }