/// <summary> /// Creates per-pixel lighting button /// </summary> private void CreatePerPixelLightingButton() { perpixelLightingButton = new Checkbox(this, "Buttons/perPixelLight_60x60", new Rectangle(GraphicsDevice.Viewport.Width - (buttonWidth + buttonMargin), GraphicsDevice.Viewport.Height - (buttonHeight + buttonMargin), buttonWidth, buttonHeight), false); this.Components.Add(perpixelLightingButton); }
/// <summary> /// Creates light enabling buttons /// </summary> private void CreateLightEnablingButtons() { lightEnablingButtons = new Checkbox[3]; for (int n = 0; n < lightEnablingButtons.Length; n++) { lightEnablingButtons[n] = new Checkbox(this, "Buttons/lamp_60x60", new Rectangle(GraphicsDevice.Viewport.Width - (n + 1) * (buttonWidth + buttonMargin), buttonMargin, buttonWidth, buttonHeight), true); this.Components.Add(lightEnablingButtons[n]); } }
/// <summary> /// Creates animation button /// </summary> private void CreateAnimationButton() { animationButton = new Checkbox(this, "Buttons/animation_60x60", new Rectangle(buttonMargin, GraphicsDevice.Viewport.Height - (buttonHeight + buttonMargin), buttonWidth, buttonHeight), false); this.Components.Add(animationButton); }
/// <summary> /// Create texture enabling button /// </summary> private void CreateBackgroundTextureEnablingButton() { backgroundTextureEnablingButton = new Checkbox(this, "Buttons/textureOnOff", new Rectangle(buttonMargin, buttonMargin, buttonWidth, buttonHeight), false); this.Components.Add(backgroundTextureEnablingButton); }