public GamemodeWindow(Sidebar sidebar) { this.manager = sidebar.manager; this.sidebar = sidebar; window = new Window(manager); window.Init(); window.Left = sidebar.master.Left; window.Width = sidebar.master.Width; window.Top = 0; window.Height = 600; window.Text = "Game Mode"; manager.Add(window); TitlePanel titlePanel = new TitlePanel(sidebar, window, "Game Mode", true); titlePanel.btnBack.Click += (s, e) => window.Close(); HeightCounter += titlePanel.topPanel.Height + LeftPadding * 2; lblMode = new Label(manager); lblMode.Init(); lblMode.Parent = window; lblMode.Top = HeightCounter; lblMode.Left = LeftPadding; lblMode.Text = "Game Mode Options"; lblMode.Width = 120; lblMode.TextColor = Color.Black; //cbMode = new ComboBox(manager); //cbMode.Init(); //cbMode.Parent = window; //cbMode.Left = lblMode.Left + lblMode.Width; //cbMode.Top = HeightCounter; //cbMode.Width = 100; // //foreach (GameModes m in Enum.GetValues(typeof(GameModes))) //{ // cbMode.Items.Add(m); //} HeightCounter += lblMode.Height + LeftPadding * 3; insViewModes = new InspectorView(sidebar, window, LeftPadding, HeightCounter); insViewModes.Width -= 20; insViewModes.Height -= 100; HeightCounter += insViewModes.Height + LeftPadding * 3; insViewModes.SetRootObject(OrbIt.globalGameMode); //insViewGlobal = new InspectorView(sidebar, window, LeftPadding, HeightCounter); //insViewGlobal.Width -= 20; //insViewGlobal.Height -= 100; window.Refresh(); }