Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 /// <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]);
     }
 }
Esempio n. 3
0
 /// <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);
 }
Esempio n. 4
0
 /// <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);
 }
Esempio n. 5
0
 /// <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);
 }