public override void LoadContent() { base.LoadContent(); Dialog = new ConfirmationDialog<LevelShopItem>(_game); Dialog.Initialize(); Dialog.DrawColor = new Color(0.2f, 0.2f, 0.2f, 0.5f); Dialog.NeedDisplayText += i => i.ItemTitle; Dialog.Item = Item; Dialog.CancelButton.Selected += (s, e) => LoadingScreen.Load(ScreenManager, false, new LevelMenuScreen { SelectedTab = LevelMenuScreen.Tabs.Shop, ShopSelectedCategory = ShopSelectedCategory }); Dialog.OkButton.Selected += (s, e) => { Item.OnBuy(); LoadingScreen.Load(ScreenManager, false, new LevelMenuScreen { SelectedTab = LevelMenuScreen.Tabs.Shop, ShopSelectedCategory = ShopSelectedCategory }); }; }