示例#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);
 }
示例#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]);
     }
 }
示例#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);
 }
示例#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);
 }
示例#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);
 }