Example #1
0
        static void Main()
        {
            GameLauncher.Prepare();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new LauncherEntry());
        }
Example #2
0
 private void BotgameLauncher_Load(object sender, EventArgs e)
 {
     GameModesCombo.DataSource    = GameLauncher.GetConfig().GameModes;
     GameModesCombo.SelectedIndex = 1;
     MapsCombo.DataSource         = GameLauncher.GetConfig().Maps;
     MapsCombo.SelectedIndex      = 9;
     BotCountNum.Value            = 10;
 }
Example #3
0
 private void LaunchButton_Click(object sender, EventArgs e)
 {
     if (UseCustomUrlCheckbox.Checked)
     {
         GameLauncher.LaunchServer(CustomUrlTextBox.Text);
     }
     else
     {
         GameLauncher.LaunchServer((string)MapsCombo.SelectedItem, (string)GameModesCombo.SelectedItem, (int)BotCountNum.Value, (int)PlayerCountNum.Value, AdditionalOptionsTextBox.Text);
     }
 }
Example #4
0
 private void LaunchButton_Click(object sender, EventArgs e)
 {
     if (SetCustomURLCheckBox.Checked)
     {
         GameLauncher.LaunchClient("", CustomURLTextBox.Text);
     }
     else
     {
         string options = $"?Name={PlayerNameTextBox.Text}{AdditionalGameOptionsTextBox.Text}";
         GameLauncher.LaunchClient(IPTextBox.Text, options);
     }
 }
Example #5
0
 private void button1_Click(object sender, EventArgs e)
 {
     GameLauncher.LaunchBotgame((string)MapsCombo.SelectedItem, (string)GameModesCombo.SelectedItem, (int)BotCountNum.Value, () => this.Close());
 }