User
How do I make a slider in the right of the menu? So I don't need to always adjust the windowWidth and winodowHeight?

if (this.showGUI1)
				{
					Microsoft.Xna.Framework.Rectangle guiWindowRect = new Microsoft.Xna.Framework.Rectangle((int)windowX, (int)windowY, (int)fixedWindowWidth, (int)fixedWindowHeight);
int borderWidth = 2;
Microsoft.Xna.Framework.Rectangle borderRect = new Microsoft.Xna.Framework.Rectangle(guiWindowRect.X - borderWidth, guiWindowRect.Y - borderWidth, guiWindowRect.Width + 2 * borderWidth, guiWindowRect.Height + 2 * borderWidth);
Microsoft.Xna.Framework.Color borderColor = Microsoft.Xna.Framework.Color.Black;
this.m_spriteBatch.Draw(this.pixelTexture, borderRect, borderColor);
Microsoft.Xna.Framework.Color guiWindowColor = new Microsoft.Xna.Framework.Color(50, 50, 50, 200);
this.m_spriteBatch.Draw(this.pixelTexture, guiWindowRect, guiWindowColor);

    string guiMessage = "MadeByHowque || Mouse2 to drag!";
    Vector2 guiMessageSize = Constants.FontSimple.MeasureString(guiMessage);
    Vector2 guiMessagePosition = new Vector2((float)(guiWindowRect.X + 10), (float)(guiWindowRect.Y + 10));
    this.m_spriteBatch.DrawString(Constants.FontSimple, guiMessage, guiMessagePosition, guiMessageColor);
    float leftOffset = 20f;
    Vector2 checkboxPosition = new Vector2((float)guiWindowRect.X + leftOffset, guiMessagePosition.Y + guiMessageSize.Y + 7f);
    
    // Checkbox 1
    string checkbox1Text = "SpeedHack";
    Microsoft.Xna.Framework.Color checkbox1Color = GameSFD.checkboxState ? Microsoft.Xna.Framework.Color.Green : Microsoft.Xna.Framework.Color.Red;
    this.m_spriteBatch.Draw(this.pixelTexture, new Microsoft.Xna.Framework.Rectangle((int)checkboxPosition.X, (int)checkboxPosition.Y, 20, 20), checkbox1Color);
    this.m_spriteBatch.DrawString(Constants.FontSimple, checkbox1Text, new Vector2(checkboxPosition.X + 30f, checkboxPosition.Y), Microsoft.Xna.Framework.Color.White);
    checkboxPosition.Y += 30f;

    // Checkbox 2
    string checkbox2Text = "FlyHack";
    Microsoft.Xna.Framework.Color checkbox2Color = GameSFD.checkboxState2 ? Microsoft.Xna.Framework.Color.Green : Microsoft.Xna.Framework.Color.Red;
    this.m_spriteBatch.Draw(this.pixelTexture, new Microsoft.Xna.Framework.Rectangle((int)checkboxPosition.X, (int)checkboxPosition.Y, 20, 20), checkbox2Color);
    this.m_spriteBatch.DrawString(Constants.FontSimple, checkbox2Text, new Vector2(checkboxPosition.X + 30f, checkboxPosition.Y), Microsoft.Xna.Framework.Color.White);
    checkboxPosition.Y += 30f;

    // Checkbox 3
    string checkbox3Text = "AlwaysRechargeEnergy";
    Microsoft.Xna.Framework.Color checkbox3Color = GameSFD.checkboxState3 ? Microsoft.Xna.Framework.Color.Green : Microsoft.Xna.Framework.Color.Red;
    this.m_spriteBatch.Draw(this.pixelTexture, new Microsoft.Xna.Framework.Rectangle((int)checkboxPosition.X, (int)checkboxPosition.Y, 20, 20), checkbox3Color);
    this.m_spriteBatch.DrawString(Constants.FontSimple, checkbox3Text, new Vector2(checkboxPosition.X + 30f, checkboxPosition.Y), Microsoft.Xna.Framework.Color.White);
    checkboxPosition.Y += 30;

    // Checkbox 4
    string checkbox4Text = "NoCooldowns";
    Microsoft.Xna.Framework.Color checkbox4Color = GameSFD.checkboxState4 ? Microsoft.Xna.Framework.Color.Green : Microsoft.Xna.Framework.Color.Red;
    this.m_spriteBatch.Draw(this.pixelTexture, new Microsoft.Xna.Framework.Rectangle((int)checkboxPosition.X, (int)checkboxPosition.Y, 20, 20), checkbox4Color);
    this.m_spriteBatch.DrawString(Constants.FontSimple, checkbox4Text, new Vector2(checkboxPosition.X + 30f, checkboxPosition.Y), Microsoft.Xna.Framework.Color.White);
    checkboxPosition.Y += 30;

    // Checkbox 5
    string checkbox5Text = "InfiniteEnergy";
    Microsoft.Xna.Framework.Color checkbox5Color = GameSFD.checkboxState5 ? Microsoft.Xna.Framework.Color.Green : Microsoft.Xna.Framework.Color.Red;
    this.m_spriteBatch.Draw(this.pixelTexture, new Microsoft.Xna.Framework.Rectangle((int)checkboxPosition.X, (int)checkboxPosition.Y, 20, 20), checkbox5Color);
    this.m_spriteBatch.DrawString(Constants.FontSimple, checkbox5Text, new Vector2(checkboxPosition.X + 30f, checkboxPosition.Y), Microsoft.Xna.Framework.Color.White);
    checkboxPosition.Y += 30;

    // Checkbox 6
    string checkbox6Text = "LadderDiveExploit";
    Microsoft.Xna.Framework.Color checkbox6Color = GameSFD.checkboxState6 ? Microsoft.Xna.Framework.Color.Green : Microsoft.Xna.Framework.Color.Red;
    this.m_spriteBatch.Draw(this.pixelTexture, new Microsoft.Xna.Framework.Rectangle((int)checkboxPosition.X, (int)checkboxPosition.Y, 20, 20), checkbox6Color);
    this.m_spriteBatch.DrawString(Constants.FontSimple, checkbox6Text, new Vector2(checkboxPosition.X + 30f, checkboxPosition.Y), Microsoft.Xna.Framework.Color.White);
    checkboxPosition.Y += 30;// Add more checkboxes as needed...
	// Checkbox 7
    string checkbox7Text = "FakelagExploit";
    Microsoft.Xna.Framework.Color checkbox7Color = GameSFD.checkboxState7 ? Microsoft.Xna.Framework.Color.Green : Microsoft.Xna.Framework.Color.Red;
    this.m_spriteBatch.Draw(this.pixelTexture, new Microsoft.Xna.Framework.Rectangle((int)checkboxPosition.X, (int)checkboxPosition.Y, 20, 20), checkbox7Color);
    this.m_spriteBatch.DrawString(Constants.FontSimple, checkbox7Text, new Vector2(checkboxPosition.X + 30f, checkboxPosition.Y), Microsoft.Xna.Framework.Color.White);
    checkboxPosition.Y += 30;