protected override void LoadContent() { base.LoadContent(); this.position = new Vector2(426, -400); ////background of the shutdown window this.bg = Game.Content.Load<Texture2D>("icons/shutdownBg"); ////fader to darken the screen when the shutdown window is active this.darken = Game.Content.Load<Texture2D>("icons/darken"); ////close ok button(used in the shutdown window) this.shutdownControlButtons.Add(this.closeOk = new Button(Game, "icons/closeOkButton", "icons/closeOkButtonRollOver", new Vector2(450, -200), new EventHandler(this.CloseOkAction))); ////close no button(used in the shutdown window) this.shutdownControlButtons.Add(this.closeNo = new Button(Game, "icons/closeNoButton", "icons/closeNoButtonRollOver", new Vector2(600, -200), new EventHandler(this.CloseNoAction))); }
protected override void LoadContent() { base.LoadContent(); this.position = new Vector2(316, -700); this.cursor = new Cursor(Game); this.cursor.Active = Settings.Get<bool>("cursor.Active"); this.picker = new ColorPicker(Game); this.buttonColor = this.picker.GetColor(); this.complementColor.R = Convert.ToByte(Color.White.R - this.buttonColor.R); this.complementColor.G = Convert.ToByte(Color.White.G - this.buttonColor.G); this.complementColor.B = Convert.ToByte(Color.White.B - this.buttonColor.B); ////background of the setup window this.bg = Game.Content.Load<Texture2D>("icons/setupBg"); ////setup close button(to close the setup window) this.setupControlButtons.Add(this.setupClose = new Button(Game, "icons/setupCloseButton", "icons/setupCloseButtonRollOver", new Vector2(820, -700), new EventHandler(this.SetupCloseAction))); this.setupControlButtons.Add(this.cursorActiveChange = new CheckBox(Game, "icons/cursorActive", "icons/cursorActiveRollOver", "icons/cursorInactive", "icons/cursorInactiveRollOver", new Vector2(370, -700), new EventHandler(this.CursorActiveAction), "enable / disable")); this.cursorActiveChange.Toggle(this.cursor.Active ? false : true); }