Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Drawing;
- using System.IO;
- using System.Linq;
- using System.Net;
- using System.Net.NetworkInformation;
- using System.Reflection;
- using System.Runtime.InteropServices;
- using System.Threading;
- using System.Windows.Forms;
- using System.Xml.Linq;
- using Ambiance;
- using iTalk;
- using Launcher_Arma3.Properties;
- using MonoFlat;
- using WMPLib;
- namespace Launcher_Arma3
- {
- // Token: 0x02000002 RID: 2
- public class Launch : Form
- {
- // Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250
- public Launch()
- {
- this.InitializeComponent();
- if (File.Exists(this.appdata + this.dest_options + "\\" + this.file_language))
- {
- string[] array = File.ReadAllLines(this.appdata + this.dest_options + "\\" + this.file_language);
- this.language = array[1];
- }
- this.Check_Mods.RunWorkerAsync();
- WebClient webClient = new WebClient();
- try
- {
- webClient.OpenRead("http://launcher.altistudio.fr/" + this.file_modslist);
- }
- catch (WebException)
- {
- this.error404 = true;
- if (!this.Erreur_Msg.IsBusy)
- {
- this.error_time = -1;
- this.error_code = 404;
- this.Erreur_Msg.RunWorkerAsync();
- }
- }
- if (this.fader_statut)
- {
- this.Fader.Start();
- return;
- }
- base.Opacity = 1.0;
- }
- // Token: 0x06000018 RID: 24 RVA: 0x00004DE8 File Offset: 0x00002FE8
- private void Anti_Cheat_DoWork(object sender, DoWorkEventArgs e)
- {
- }
- // Token: 0x0600000D RID: 13 RVA: 0x000041C8 File Offset: 0x000023C8
- private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
- {
- this.Download_Progressbar.Value = e.ProgressPercentage;
- this.Label_valu.Text = string.Concat(new string[]
- {
- this.Trans_Progress,
- ": ",
- this.bytes,
- " / ",
- this.bytes_d
- });
- }
- // Token: 0x0600000E RID: 14 RVA: 0x0000422C File Offset: 0x0000242C
- private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
- {
- this.counter++;
- this.Total_Progress.Value = (long)(this.counter * 100 / this.counter_total);
- if (this.Total_Progress.Value == 100L)
- {
- if (this.start_arma)
- {
- this.Start_Arma.RunWorkerAsync();
- }
- else
- {
- this.start_arma = true;
- }
- this.Play_bouton.Text = this.Trans_Play;
- this.Play_bouton.Font = new Font(this.Play_bouton.Text, float.Parse("14"));
- File.WriteAllText(this.appdata + this.dest_version + "\\" + this.file_vmods, this.version_up);
- this.download_finish = true;
- this.download_progress = false;
- this.Download_Group.Visible = false;
- this.Panel.Visible = true;
- return;
- }
- this.Download_Mods.RunWorkerAsync();
- }
- // Token: 0x0600001A RID: 26 RVA: 0x00004E74 File Offset: 0x00003074
- private void Changelogs_DoWork(object sender, DoWorkEventArgs e)
- {
- if (!Directory.Exists(this.appdata + this.dest_news))
- {
- Directory.CreateDirectory(this.appdata + this.dest_news);
- }
- WebClient webClient = new WebClient();
- if (File.Exists(this.appdata + this.dest_news + "\\" + this.file_changlauncher))
- {
- File.Delete(this.appdata + this.dest_news + "\\" + this.file_changlauncher);
- }
- webClient.DownloadFile("http://launcher.altistudio.fr/" + this.dest_news + "\\" + this.file_changlauncher, this.appdata + this.dest_news + "\\" + this.file_changlauncher);
- if (File.Exists(this.appdata + this.dest_news + "\\" + this.file_changserveur))
- {
- File.Delete(this.appdata + this.dest_news + "\\" + this.file_changserveur);
- }
- webClient.DownloadFile("http://launcher.altistudio.fr/" + this.dest_news + "\\" + this.file_changserveur, this.appdata + this.dest_news + "\\" + this.file_changserveur);
- if (File.Exists(this.appdata + this.dest_news + "\\" + this.file_changserveur))
- {
- int i = 0;
- string[] array = File.ReadAllLines(this.appdata + this.dest_news + "\\" + this.file_changserveur);
- int num = array.Length;
- this.Changelogs_Serveur.Items.Clear();
- while (i < num)
- {
- this.Changelogs_Serveur.Items.Add(array[i]);
- i++;
- }
- }
- if (File.Exists(this.appdata + this.dest_news + "\\" + this.file_changlauncher))
- {
- int j = 0;
- string[] array2 = File.ReadAllLines(this.appdata + this.dest_news + "\\" + this.file_changlauncher);
- int num2 = array2.Length;
- this.Changelogs_Launcher.Items.Clear();
- while (j <= num2)
- {
- this.Changelogs_Launcher.Items.Add(array2[j]);
- j++;
- }
- }
- }
- // Token: 0x06000009 RID: 9 RVA: 0x00002FF4 File Offset: 0x000011F4
- private void Change_Lang_DoWork(object sender, DoWorkEventArgs e)
- {
- if (!File.Exists(this.appdata + this.file_translate))
- {
- WebClient webClient = new WebClient();
- webClient.DownloadFile("http://launcher.altistudio.fr/" + this.file_translate, this.appdata + this.file_translate);
- }
- XDocument xDocument = XDocument.Load(this.appdata + this.file_translate);
- string[] value = (from r in xDocument.Descendants(this.language).Elements("Links")
- select r.Value).ToArray<string>();
- string[] value2 = (from r in xDocument.Descendants(this.language).Elements("WebSite")
- select r.Value).ToArray<string>();
- string[] value3 = (from r in xDocument.Descendants(this.language).Elements("Play")
- select r.Value).ToArray<string>();
- string[] value4 = (from r in xDocument.Descendants(this.language).Elements("Connected")
- select r.Value).ToArray<string>();
- string[] value5 = (from r in xDocument.Descendants(this.language).Elements("Disconnected")
- select r.Value).ToArray<string>();
- string[] value6 = (from r in xDocument.Descendants(this.language).Elements("Settings")
- select r.Value).ToArray<string>();
- string[] value7 = (from r in xDocument.Descendants(this.language).Elements("Directory")
- select r.Value).ToArray<string>();
- string[] value8 = (from r in xDocument.Descendants(this.language).Elements("Downloading")
- select r.Value).ToArray<string>();
- string[] value9 = (from r in xDocument.Descendants(this.language).Elements("Download")
- select r.Value).ToArray<string>();
- string[] value10 = (from r in xDocument.Descendants(this.language).Elements("Progress")
- select r.Value).ToArray<string>();
- string[] value11 = (from r in xDocument.Descendants(this.language).Elements("ModsDeal")
- select r.Value).ToArray<string>();
- string[] value12 = (from r in xDocument.Descendants(this.language).Elements("Checks")
- select r.Value).ToArray<string>();
- string[] value13 = (from r in xDocument.Descendants(this.language).Elements("Forum")
- select r.Value).ToArray<string>();
- string[] value14 = (from r in xDocument.Descendants(this.language).Elements("Launch")
- select r.Value).ToArray<string>();
- string[] value15 = (from r in xDocument.Descendants(this.language).Elements("Server")
- select r.Value).ToArray<string>();
- string text = string.Join(",", value);
- string.Join(",", value2);
- string text2 = string.Join(",", value3);
- string text3 = string.Join(",", value4);
- string text4 = string.Join(",", value5);
- string text5 = string.Join(",", value6);
- string text6 = string.Join(",", value7);
- string text7 = string.Join(",", value8);
- string text8 = string.Join(",", value9);
- string trans_Progress = string.Join(",", value10);
- string trans_Deal = string.Join(",", value11);
- string trans_Checks = string.Join(",", value12);
- string.Join(",", value13);
- string text9 = string.Join(",", value14);
- string text10 = string.Join(",", value15);
- string[] value16 = (from r in xDocument.Descendants(this.error_xml).Elements(this.language).Elements("error10")
- select r.Value).ToArray<string>();
- string text11 = string.Join(",", value16);
- this.Trans_Progress = trans_Progress;
- this.Trans_Download = text7;
- this.Trans_Download2 = text8;
- this.Trans_Deal = trans_Deal;
- this.Trans_Checks = trans_Checks;
- this.Trans_Play = text2;
- this.error10 = text11;
- this.Group_Link.Text = text;
- this.Option_Boutton.Text = text5;
- this.destination_bouton.Text = text6;
- this.msg_darma = text6 + " Arma3: ";
- this.label_darma.Text = this.msg_darma + this.dest_arma;
- this.Download_Group.Text = text7;
- this.Label_valu.Text = this.Trans_Progress + ": 0 / 0";
- this.Label_mods.Text = this.Trans_Download + ": ";
- this.Label_modsdeal.Text = this.Trans_Deal + ": ";
- this.Option_Group.Text = text5;
- this.tabPage1.Text = text10;
- this.tabPage2.Text = text9;
- if (!File.Exists(this.appdata + this.dest_version + "\\" + this.file_vmods))
- {
- this.mods_update = "true";
- }
- if (this.Force_Update.Checked.ToString() == "True")
- {
- this.Force_Update_Label.ForeColor = Color.LightGreen;
- if (File.Exists(this.appdata + this.dest_options + "\\" + this.file_option))
- {
- string[] array = File.ReadAllLines(this.appdata + this.dest_options + "\\" + this.file_option);
- if (array[0] == "True")
- {
- this.Play_bouton.Text = this.Trans_Download2 + " / " + this.Trans_Play;
- this.Play_bouton.Font = new Font(this.Play_bouton.Text, float.Parse("11"));
- this.start_arma = true;
- }
- else
- {
- this.Play_bouton.Text = this.Trans_Download2;
- this.Play_bouton.Font = new Font(this.Play_bouton.Text, float.Parse("14"));
- this.start_arma = false;
- }
- }
- else
- {
- this.Play_bouton.Text = this.Trans_Download2;
- this.Play_bouton.Font = new Font(this.Play_bouton.Text, float.Parse("11"));
- this.start_arma = false;
- }
- }
- else if (this.mods_update != "true")
- {
- this.Play_bouton.Text = text2;
- this.Play_bouton.Font = new Font(this.Play_bouton.Text, float.Parse("14"));
- }
- else if (this.download_finish)
- {
- this.Play_bouton.Text = text2;
- this.Play_bouton.Font = new Font(this.Play_bouton.Text, float.Parse("14"));
- }
- else if (File.Exists(this.appdata + this.dest_options + "\\" + this.file_option))
- {
- string[] array2 = File.ReadAllLines(this.appdata + this.dest_options + "\\" + this.file_option);
- if (array2[0] == "True")
- {
- this.Play_bouton.Text = text8 + " / " + text2;
- this.Play_bouton.Font = new Font(this.Play_bouton.Text, float.Parse("11"));
- this.start_arma = true;
- }
- else
- {
- this.Play_bouton.Text = text8;
- this.Play_bouton.Font = new Font(this.Play_bouton.Text, float.Parse("14"));
- this.start_arma = false;
- }
- }
- else
- {
- this.Play_bouton.Text = text8;
- this.Play_bouton.Font = new Font(this.Play_bouton.Text, float.Parse("14"));
- this.start_arma = false;
- }
- if (this.web_type == "Forum")
- {
- this.Web_Icon.Image = Resources.forum_icon;
- }
- if (this.web_type == "WebSite")
- {
- this.Web_Icon.Image = Resources.website_icon;
- }
- if (!this.connection)
- {
- text4 = "Error #405 ! No network found ...";
- this.error_message = "No network found ...";
- if (!this.Erreur_Msg.IsBusy)
- {
- this.error_code = 405;
- this.Erreur_Msg.RunWorkerAsync();
- }
- }
- if (this.error_code == 404 || this.error404 || !this.connection)
- {
- this.connection_label.ForeColor = Color.Red;
- this.connection_label.Text = text4;
- }
- else
- {
- this.connection_label.ForeColor = Color.Green;
- this.connection_label.Text = text3;
- }
- this.News.RunWorkerAsync();
- }
- // Token: 0x06000019 RID: 25 RVA: 0x00004DEC File Offset: 0x00002FEC
- private void CheckInternet_DoWork(object sender, DoWorkEventArgs e)
- {
- Thread.Sleep(7000);
- if (this.connection_label.Text == "Loading ..")
- {
- if (!this.Erreur_Msg.IsBusy)
- {
- this.error_code = 405;
- this.error_time = -1;
- this.Erreur_Msg.RunWorkerAsync();
- }
- if (File.Exists(this.appdata + this.file_translate))
- {
- File.Delete(this.appdata + this.file_translate);
- }
- }
- }
- // Token: 0x0600001B RID: 27 RVA: 0x000050B4 File Offset: 0x000032B4
- private void Check_Mods_DoWork(object sender, DoWorkEventArgs e)
- {
- if (!Directory.Exists(this.appdata + this.dest_version))
- {
- Directory.CreateDirectory(this.appdata + this.dest_version);
- }
- if (!File.Exists(this.appdata + this.dest_version + "\\" + this.file_vmods))
- {
- WebClient webClient = new WebClient();
- Stream stream = webClient.OpenRead("http://launcher.altistudio.fr/" + this.dest_version + "/" + this.file_vmods);
- StreamReader streamReader = new StreamReader(stream);
- this.version_up = streamReader.ReadLine();
- this.mods_update = "true";
- return;
- }
- this.version_now = File.ReadAllText(this.appdata + this.dest_version + "\\" + this.file_vmods);
- WebClient webClient2 = new WebClient();
- Stream stream2 = webClient2.OpenRead("http://launcher.altistudio.fr/" + this.dest_version + "/" + this.file_vmods);
- StreamReader streamReader2 = new StreamReader(stream2);
- this.version_up = streamReader2.ReadLine();
- if (this.version_now != this.version_up)
- {
- this.mods_update = "true";
- if (!this.Change_Lang.IsBusy)
- {
- this.Change_Lang.RunWorkerAsync();
- return;
- }
- Thread.Sleep(500);
- if (!this.Change_Lang.IsBusy)
- {
- this.Change_Lang.RunWorkerAsync();
- }
- }
- }
- // Token: 0x0600000A RID: 10 RVA: 0x00003AFA File Offset: 0x00001CFA
- private void Close_Form(object sender, EventArgs e)
- {
- if (this.fader_statut)
- {
- this.Close.Start();
- return;
- }
- base.Opacity = 0.0;
- }
- // Token: 0x06000011 RID: 17 RVA: 0x000044B4 File Offset: 0x000026B4
- private void Close_Tick(object sender, EventArgs e)
- {
- base.Opacity -= 0.05;
- if (base.Opacity == 0.0)
- {
- this.Close.Stop();
- Application.Exit();
- }
- }
- // Token: 0x06000004 RID: 4 RVA: 0x00002790 File Offset: 0x00000990
- private void destination_bouton_Click_1(object sender, EventArgs e)
- {
- if (this.locked)
- {
- if (!this.Erreur_Msg.IsBusy)
- {
- this.error_code = 100;
- this.Erreur_Msg.RunWorkerAsync();
- }
- this.credits_label.Text = Resources.Copyright;
- return;
- }
- this.Folder.ShowDialog();
- this.dest_arma = this.Folder.SelectedPath + "\\";
- File.WriteAllText(this.appdata + this.file_darma, this.dest_arma);
- if (!File.Exists(this.dest_arma + this.file_arma3))
- {
- if (!this.Erreur_Msg.IsBusy)
- {
- this.error_code = 401;
- this.Erreur_Msg.RunWorkerAsync();
- }
- this.label_darma.ForeColor = Color.Red;
- this.picture_darma.Image = Resources.cross;
- }
- else
- {
- this.label_darma.ForeColor = Color.Green;
- this.picture_darma.Image = Resources.checkmark;
- }
- this.label_darma.Text = this.msg_darma + this.dest_arma;
- }
- // Token: 0x0600001D RID: 29 RVA: 0x000053FB File Offset: 0x000035FB
- protected override void Dispose(bool disposing)
- {
- if (disposing && this.components != null)
- {
- this.components.Dispose();
- }
- base.Dispose(disposing);
- }
- // Token: 0x06000016 RID: 22 RVA: 0x00004C9C File Offset: 0x00002E9C
- private void Download_CPP_DoWork(object sender, DoWorkEventArgs e)
- {
- this.Loading.Visible = true;
- this.Panel.Visible = false;
- WebClient webClient = new WebClient();
- if (this.counter_cpp == 0)
- {
- if (File.Exists(this.appdata + this.file_cpp))
- {
- File.Delete(this.appdata + this.file_cpp);
- }
- webClient.DownloadFile("http://launcher.altistudio.fr/" + this.file_cpp, this.appdata + this.file_cpp);
- }
- string[] array = File.ReadAllLines(this.appdata + this.file_cpp);
- this.language = array[this.counter_cpp];
- this.line_1 = array.Length;
- webClient.DownloadFile("http://launcher.altistudio.fr/" + this.dest_cpp + "\\" + array[this.counter_cpp], this.dest_arma + "@Studio\\" + array[this.counter_cpp]);
- }
- // Token: 0x0600000C RID: 12 RVA: 0x00003C38 File Offset: 0x00001E38
- private void Download_Mods_DoWork(object sender, DoWorkEventArgs e)
- {
- if (this.counter == 0)
- {
- WebClient webClient = new WebClient();
- webClient.DownloadFile("http://launcher.altistudio.fr/" + this.file_modslist, this.appdata + this.file_modslist);
- if (!File.Exists(this.appdata + this.file_modslist))
- {
- if (!this.Erreur_Msg.IsBusy)
- {
- this.error_code = 402;
- this.Erreur_Msg.RunWorkerAsync();
- }
- return;
- }
- }
- string[] array = File.ReadAllLines(this.appdata + this.file_modslist);
- this.line = array[this.counter];
- this.counter_total = array.Length;
- HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create("http://launcher.altistudio.fr/" + this.dest_mods + "/" + this.line);
- httpWebRequest.Method = "HEAD";
- this.Label_modsdeal.Text = string.Concat(new object[]
- {
- this.Trans_Deal,
- ": ",
- this.counter,
- " / ",
- this.counter_total
- });
- using (HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse())
- {
- this.wrs_1 = httpWebResponse.ContentLength.ToString();
- }
- if (File.Exists(this.dest_arma + "@Studio\\addons\\" + this.line))
- {
- byte[] array2 = File.ReadAllBytes(this.dest_arma + "@Studio\\addons\\" + this.line);
- this.wrs_2 = array2.Length.ToString();
- }
- if (this.wrs_1 != this.wrs_2)
- {
- this.Label_mods.Text = this.Trans_Download + ": " + this.line;
- string uriString = "http://launcher.altistudio.fr/" + this.dest_mods + "/" + this.line;
- string path = this.dest_arma + "@Studio\\addons\\" + this.line;
- Uri requestUri = new Uri(uriString);
- HttpWebRequest httpWebRequest2 = (HttpWebRequest)WebRequest.Create(requestUri);
- HttpWebResponse httpWebResponse2 = (HttpWebResponse)httpWebRequest2.GetResponse();
- httpWebResponse2.Close();
- long contentLength = httpWebResponse2.ContentLength;
- long num = 0L;
- using (WebClient webClient2 = new WebClient())
- {
- using (Stream stream = webClient2.OpenRead(new Uri(uriString)))
- {
- using (Stream stream2 = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.None))
- {
- byte[] array3 = new byte[contentLength];
- int num2;
- while ((num2 = stream.Read(array3, 0, array3.Length)) > 0)
- {
- stream2.Write(array3, 0, num2);
- num += (long)num2;
- double num3 = (double)num;
- double num4 = (double)array3.Length;
- double num5 = num3 / num4;
- int percentProgress = (int)(num5 * 100.0);
- this.Download_Mods.ReportProgress(percentProgress);
- if ((int)num3 < 1048576)
- {
- this.bytes = ((int)num3 / 1024).ToString() + " Ko";
- this.bytes_d = ((int)num4 / 1024).ToString() + " Ko";
- }
- else
- {
- this.bytes = ((int)num3 / 1048576).ToString() + " Mo";
- this.bytes_d = ((int)num4 / 1048576).ToString() + " Mo";
- }
- }
- stream2.Close();
- }
- stream.Close();
- }
- return;
- }
- }
- this.Label_mods.Text = this.Trans_Checks + ": " + this.line;
- string uriString2 = "http://launcher.altistudio.fr/copyright.txt";
- string path2 = this.dest_arma + "copyright.txt";
- Uri requestUri2 = new Uri(uriString2);
- HttpWebRequest httpWebRequest3 = (HttpWebRequest)WebRequest.Create(requestUri2);
- HttpWebResponse httpWebResponse3 = (HttpWebResponse)httpWebRequest3.GetResponse();
- httpWebResponse3.Close();
- long contentLength2 = httpWebResponse3.ContentLength;
- long num6 = 0L;
- using (WebClient webClient3 = new WebClient())
- {
- using (Stream stream3 = webClient3.OpenRead(new Uri(uriString2)))
- {
- using (Stream stream4 = new FileStream(path2, FileMode.Create, FileAccess.Write, FileShare.None))
- {
- byte[] array4 = new byte[contentLength2];
- int num7;
- while ((num7 = stream3.Read(array4, 0, array4.Length)) > 0)
- {
- stream4.Write(array4, 0, num7);
- num6 += (long)num7;
- double num8 = (double)num6;
- double num9 = (double)array4.Length;
- double num10 = num8 / num9;
- int percentProgress2 = (int)(num10 * 100.0);
- this.Download_Mods.ReportProgress(percentProgress2);
- }
- stream4.Close();
- }
- stream3.Close();
- }
- }
- }
- // Token: 0x0600000F RID: 15 RVA: 0x0000432C File Offset: 0x0000252C
- private void Erreur_Msg_DoWork(object sender, DoWorkEventArgs e)
- {
- if (this.error_code != 405)
- {
- XDocument xDocument = XDocument.Load(this.appdata + this.file_translate);
- string[] value = (from r in xDocument.Descendants(this.error_xml).Elements(this.language).Elements("error" + this.error_code)
- select r.Value).ToArray<string>();
- string text = string.Join(",", value);
- this.error_message = text;
- }
- else
- {
- this.error_message = "No network found or server not responding ...";
- this.connection_label.ForeColor = Color.Red;
- this.connection_label.Text = "Error #405 | No network found or server not responding.";
- }
- this.notif_1.Text = string.Concat(new object[]
- {
- "Error #",
- this.error_code,
- " | ",
- this.error_message
- });
- this.notif_1.BringToFront();
- this.notif_1.Visible = true;
- Thread.Sleep(this.error_time);
- this.notif_1.Visible = false;
- this.notif_1.SendToBack();
- }
- // Token: 0x06000010 RID: 16 RVA: 0x00004480 File Offset: 0x00002680
- private void Fader_Tick(object sender, EventArgs e)
- {
- base.Opacity += 0.05;
- if (base.Opacity == 1.0)
- {
- this.Fader.Stop();
- }
- }
- // Token: 0x0600001C RID: 28 RVA: 0x0000521C File Offset: 0x0000341C
- private void Force_Update_CheckedChanged(object sender)
- {
- File.WriteAllText(this.appdata + this.dest_options + "\\start_" + this.file_option, this.Force_Update.Checked.ToString());
- if (this.Force_Update.Checked.ToString() == "True")
- {
- this.Force_Update_Label.ForeColor = Color.LightGreen;
- if (!this.download_finish)
- {
- if (File.Exists(this.appdata + this.dest_options + "\\" + this.file_option))
- {
- string[] array = File.ReadAllLines(this.appdata + this.dest_options + "\\" + this.file_option);
- if (array[0] == "True")
- {
- this.Play_bouton.Text = this.Trans_Download2 + " / " + this.Trans_Play;
- this.Play_bouton.Font = new Font(this.Play_bouton.Text, float.Parse("11"));
- this.start_arma = true;
- }
- else
- {
- this.Play_bouton.Text = this.Trans_Download2;
- this.Play_bouton.Font = new Font(this.Play_bouton.Text, float.Parse("14"));
- this.start_arma = false;
- }
- }
- else
- {
- this.Play_bouton.Text = this.Trans_Download2;
- this.Play_bouton.Font = new Font(this.Play_bouton.Text, float.Parse("11"));
- this.start_arma = false;
- }
- }
- this.force_download = true;
- return;
- }
- this.Force_Update_Label.ForeColor = Color.Red;
- if (!this.download_finish)
- {
- if (!this.Change_Lang.IsBusy)
- {
- this.Change_Lang.RunWorkerAsync();
- }
- this.force_download = false;
- }
- }
- // Token: 0x0600001E RID: 30 RVA: 0x0000541C File Offset: 0x0000361C
- private void InitializeComponent()
- {
- this.components = new Container();
- ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Launch));
- this.Update_Launcher = new BackgroundWorker();
- this.Change_Lang = new BackgroundWorker();
- this.Folder = new FolderBrowserDialog();
- this.Download_Mods = new BackgroundWorker();
- this.Erreur_Msg = new BackgroundWorker();
- this.Fader = new System.Windows.Forms.Timer(this.components);
- this.Close = new System.Windows.Forms.Timer(this.components);
- this.Start_Arma = new BackgroundWorker();
- this.News = new BackgroundWorker();
- this.Anti_Cheat = new BackgroundWorker();
- this.Music = new BackgroundWorker();
- this.Download_CPP = new BackgroundWorker();
- this.CheckInternet = new BackgroundWorker();
- this.Changelogs = new BackgroundWorker();
- this.Check_Mods = new BackgroundWorker();
- this.Back_Test = new BackgroundWorker();
- this.iTalk_ThemeContainer1 = new iTalk_ThemeContainer();
- this.Option_Group = new iTalk_GroupBox();
- this.label1 = new Label();
- this.Force_Update_Label = new iTalk_Label();
- this.Force_Update = new iTalk_CheckBox();
- this.Maintenance_Label = new Ambiance_Label();
- this.Sound = new PictureBox();
- this.Download_Group = new iTalk_GroupBox();
- this.Download_Progressbar = new PerplexProgressBar();
- this.Label_modsdeal = new iTalk_Label();
- this.Label_mods = new iTalk_Label();
- this.Label_valu = new iTalk_Label();
- this.Total_Progress = new iTalk_ProgressBar();
- this.picture_darma = new PictureBox();
- this.credits_label = new Label();
- this.label_darma = new iTalk_Label();
- this.connection_label = new iTalk_Label();
- this.destination_bouton = new iTalk_Button_2();
- this.Option_Boutton = new iTalk_Button_1();
- this.Play_bouton = new iTalk_Button_2();
- this.iTalk_ControlBox1 = new iTalk_ControlBox();
- this.imagebox = new PictureBox();
- this.Group_Link = new iTalk_GroupBox();
- this.Vocal_Icon = new PictureBox();
- this.Web_Icon = new PictureBox();
- this.notif_1 = new MonoFlat_NotificationBox();
- this.News_Notif = new MonoFlat_NotificationBox();
- this.Panel = new iTalk_TabControl();
- this.tabPage1 = new TabPage();
- this.Changelogs_Serveur = new Ambiance_ListBox();
- this.tabPage2 = new TabPage();
- this.Changelogs_Launcher = new Ambiance_ListBox();
- this.Loading = new Ambiance_ProgressIndicator();
- this.Maintenance = new PictureBox();
- this.label2 = new Label();
- this.iTalk_ThemeContainer1.SuspendLayout();
- this.Option_Group.SuspendLayout();
- ((ISupportInitialize)this.Sound).BeginInit();
- this.Download_Group.SuspendLayout();
- ((ISupportInitialize)this.picture_darma).BeginInit();
- ((ISupportInitialize)this.imagebox).BeginInit();
- this.Group_Link.SuspendLayout();
- ((ISupportInitialize)this.Vocal_Icon).BeginInit();
- ((ISupportInitialize)this.Web_Icon).BeginInit();
- this.Panel.SuspendLayout();
- this.tabPage1.SuspendLayout();
- this.tabPage2.SuspendLayout();
- ((ISupportInitialize)this.Maintenance).BeginInit();
- base.SuspendLayout();
- this.Update_Launcher.DoWork += new DoWorkEventHandler(this.Update_Launcher_DoWork);
- this.Change_Lang.DoWork += new DoWorkEventHandler(this.Change_Lang_DoWork);
- this.Folder.Description = "Choose Arma3 directory */* Choissisez la destination d'arma3";
- this.Folder.SelectedPath = "C:\\Users\\Leo\\Desktop";
- this.Download_Mods.WorkerReportsProgress = true;
- this.Download_Mods.DoWork += new DoWorkEventHandler(this.Download_Mods_DoWork);
- this.Download_Mods.ProgressChanged += new ProgressChangedEventHandler(this.backgroundWorker1_ProgressChanged);
- this.Download_Mods.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this.backgroundWorker1_RunWorkerCompleted);
- this.Erreur_Msg.WorkerReportsProgress = true;
- this.Erreur_Msg.DoWork += new DoWorkEventHandler(this.Erreur_Msg_DoWork);
- this.Fader.Interval = 30;
- this.Fader.Tick += new EventHandler(this.Fader_Tick);
- this.Close.Interval = 30;
- this.Close.Tick += new EventHandler(this.Close_Tick);
- this.Start_Arma.DoWork += new DoWorkEventHandler(this.Start_Arma_DoWork);
- this.News.DoWork += new DoWorkEventHandler(this.News_DoWork);
- this.Anti_Cheat.DoWork += new DoWorkEventHandler(this.Anti_Cheat_DoWork);
- this.Music.DoWork += new DoWorkEventHandler(this.Music_DoWork);
- this.Download_CPP.WorkerReportsProgress = true;
- this.Download_CPP.DoWork += new DoWorkEventHandler(this.Download_CPP_DoWork);
- this.Download_CPP.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this.Pont_Cpp);
- this.CheckInternet.DoWork += new DoWorkEventHandler(this.CheckInternet_DoWork);
- this.Changelogs.DoWork += new DoWorkEventHandler(this.Changelogs_DoWork);
- this.Check_Mods.DoWork += new DoWorkEventHandler(this.Check_Mods_DoWork);
- this.iTalk_ThemeContainer1.BackColor = Color.FromArgb(246, 246, 246);
- this.iTalk_ThemeContainer1.Controls.Add(this.Option_Group);
- this.iTalk_ThemeContainer1.Controls.Add(this.Maintenance_Label);
- this.iTalk_ThemeContainer1.Controls.Add(this.Sound);
- this.iTalk_ThemeContainer1.Controls.Add(this.Download_Group);
- this.iTalk_ThemeContainer1.Controls.Add(this.picture_darma);
- this.iTalk_ThemeContainer1.Controls.Add(this.credits_label);
- this.iTalk_ThemeContainer1.Controls.Add(this.label_darma);
- this.iTalk_ThemeContainer1.Controls.Add(this.connection_label);
- this.iTalk_ThemeContainer1.Controls.Add(this.destination_bouton);
- this.iTalk_ThemeContainer1.Controls.Add(this.Option_Boutton);
- this.iTalk_ThemeContainer1.Controls.Add(this.Play_bouton);
- this.iTalk_ThemeContainer1.Controls.Add(this.iTalk_ControlBox1);
- this.iTalk_ThemeContainer1.Controls.Add(this.imagebox);
- this.iTalk_ThemeContainer1.Controls.Add(this.Group_Link);
- this.iTalk_ThemeContainer1.Controls.Add(this.notif_1);
- this.iTalk_ThemeContainer1.Controls.Add(this.News_Notif);
- this.iTalk_ThemeContainer1.Controls.Add(this.Panel);
- this.iTalk_ThemeContainer1.Controls.Add(this.Loading);
- this.iTalk_ThemeContainer1.Controls.Add(this.Maintenance);
- this.iTalk_ThemeContainer1.Dock = DockStyle.Fill;
- this.iTalk_ThemeContainer1.Font = new Font("Segoe UI", 8f);
- this.iTalk_ThemeContainer1.ForeColor = Color.FromArgb(142, 142, 142);
- this.iTalk_ThemeContainer1.Location = new Point(0, 0);
- this.iTalk_ThemeContainer1.Name = "iTalk_ThemeContainer1";
- this.iTalk_ThemeContainer1.Padding = new Padding(3, 28, 3, 28);
- this.iTalk_ThemeContainer1.Sizable = false;
- this.iTalk_ThemeContainer1.Size = new Size(1004, 484);
- this.iTalk_ThemeContainer1.SmartBounds = false;
- this.iTalk_ThemeContainer1.StartPosition = FormStartPosition.WindowsDefaultLocation;
- this.iTalk_ThemeContainer1.TabIndex = 0;
- this.iTalk_ThemeContainer1.Text = "Launcher Arma 3";
- this.iTalk_ThemeContainer1.DoubleClick += new EventHandler(this.Show_Launcher_Info);
- this.Option_Group.BackColor = Color.Transparent;
- this.Option_Group.Controls.Add(this.label2);
- this.Option_Group.Controls.Add(this.label1);
- this.Option_Group.Controls.Add(this.Force_Update_Label);
- this.Option_Group.Controls.Add(this.Force_Update);
- this.Option_Group.Location = new Point(786, 324);
- this.Option_Group.MinimumSize = new Size(136, 50);
- this.Option_Group.Name = "Option_Group";
- this.Option_Group.Padding = new Padding(5, 28, 5, 5);
- this.Option_Group.Size = new Size(212, 117);
- this.Option_Group.TabIndex = 30;
- this.Option_Group.Text = "Options";
- this.label1.AutoSize = true;
- this.label1.Location = new Point(8, 52);
- this.label1.Name = "label1";
- this.label1.Size = new Size(198, 13);
- this.label1.TabIndex = 36;
- this.label1.Text = "Il est affiché sur le forum quand vous";
- this.Force_Update_Label.AutoSize = true;
- this.Force_Update_Label.BackColor = Color.Transparent;
- this.Force_Update_Label.Font = new Font("Segoe UI", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.Force_Update_Label.ForeColor = Color.Red;
- this.Force_Update_Label.Location = new Point(31, 31);
- this.Force_Update_Label.Name = "Force_Update_Label";
- this.Force_Update_Label.Size = new Size(111, 13);
- this.Force_Update_Label.TabIndex = 35;
- this.Force_Update_Label.Text = "Forcer la mise à jour";
- this.Force_Update.BackColor = Color.Transparent;
- this.Force_Update.Checked = false;
- this.Force_Update.Font = new Font("Segoe UI", 10f);
- this.Force_Update.ForeColor = Color.LightCoral;
- this.Force_Update.Location = new Point(6, 31);
- this.Force_Update.Name = "Force_Update";
- this.Force_Update.RightToLeft = RightToLeft.No;
- this.Force_Update.Size = new Size(136, 15);
- this.Force_Update.TabIndex = 34;
- this.Force_Update.CheckedChanged += new iTalk_CheckBox.CheckedChangedEventHandler(this.Force_Update_CheckedChanged);
- this.Maintenance_Label.AutoSize = true;
- this.Maintenance_Label.BackColor = Color.Transparent;
- this.Maintenance_Label.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.Maintenance_Label.ForeColor = Color.Red;
- this.Maintenance_Label.Location = new Point(180, 140);
- this.Maintenance_Label.Name = "Maintenance_Label";
- this.Maintenance_Label.Size = new Size(0, 20);
- this.Maintenance_Label.TabIndex = 29;
- this.Sound.BackColor = Color.Transparent;
- this.Sound.Cursor = Cursors.Default;
- this.Sound.Image = (Image)componentResourceManager.GetObject("Sound.Image");
- this.Sound.Location = new Point(6, 460);
- this.Sound.Name = "Sound";
- this.Sound.Size = new Size(34, 24);
- this.Sound.SizeMode = PictureBoxSizeMode.Zoom;
- this.Sound.TabIndex = 24;
- this.Sound.TabStop = false;
- this.Sound.Click += new EventHandler(this.Show_Launcher_Info);
- this.Download_Group.BackColor = Color.Transparent;
- this.Download_Group.Controls.Add(this.Download_Progressbar);
- this.Download_Group.Controls.Add(this.Label_modsdeal);
- this.Download_Group.Controls.Add(this.Label_mods);
- this.Download_Group.Controls.Add(this.Label_valu);
- this.Download_Group.Controls.Add(this.Total_Progress);
- this.Download_Group.Cursor = Cursors.Default;
- this.Download_Group.Location = new Point(230, 258);
- this.Download_Group.MinimumSize = new Size(136, 50);
- this.Download_Group.Name = "Download_Group";
- this.Download_Group.Padding = new Padding(5, 28, 5, 5);
- this.Download_Group.RightToLeft = RightToLeft.No;
- this.Download_Group.Size = new Size(550, 183);
- this.Download_Group.TabIndex = 19;
- this.Download_Group.Text = "Téléchargement";
- this.Download_Group.Visible = false;
- this.Download_Progressbar.BackColor = Color.Transparent;
- this.Download_Progressbar.Location = new Point(8, 31);
- this.Download_Progressbar.Maximum = 100;
- this.Download_Progressbar.Name = "Download_Progressbar";
- this.Download_Progressbar.ShowPercentage = false;
- this.Download_Progressbar.Size = new Size(534, 38);
- this.Download_Progressbar.TabIndex = 25;
- this.Download_Progressbar.Text = "perplexProgressBar1";
- this.Download_Progressbar.Value = 0;
- this.Label_modsdeal.AutoSize = true;
- this.Label_modsdeal.BackColor = Color.Transparent;
- this.Label_modsdeal.Font = new Font("Impact", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.Label_modsdeal.ForeColor = Color.Black;
- this.Label_modsdeal.Location = new Point(8, 116);
- this.Label_modsdeal.Name = "Label_modsdeal";
- this.Label_modsdeal.Size = new Size(91, 15);
- this.Label_modsdeal.TabIndex = 24;
- this.Label_modsdeal.Text = "Mods Treaty: 0 / 0 ";
- this.Label_mods.AutoSize = true;
- this.Label_mods.BackColor = Color.Transparent;
- this.Label_mods.Font = new Font("Impact", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.Label_mods.ForeColor = Color.Black;
- this.Label_mods.Location = new Point(8, 101);
- this.Label_mods.Name = "Label_mods";
- this.Label_mods.Size = new Size(98, 15);
- this.Label_mods.TabIndex = 22;
- this.Label_mods.Text = "Download: ******.pbo";
- this.Label_valu.AutoSize = true;
- this.Label_valu.BackColor = Color.Transparent;
- this.Label_valu.Font = new Font("Impact", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.Label_valu.ForeColor = Color.Black;
- this.Label_valu.Location = new Point(8, 86);
- this.Label_valu.Name = "Label_valu";
- this.Label_valu.Size = new Size(73, 15);
- this.Label_valu.TabIndex = 20;
- this.Label_valu.Text = "Progress: 0 / 0";
- this.Total_Progress.BackColor = SystemColors.ButtonHighlight;
- this.Total_Progress.Font = new Font("Segoe UI", 15f);
- this.Total_Progress.ForeColor = Color.FromArgb(0, 192, 0);
- this.Total_Progress.Location = new Point(442, 75);
- this.Total_Progress.Maximum = 100L;
- this.Total_Progress.MinimumSize = new Size(100, 100);
- this.Total_Progress.Name = "Total_Progress";
- this.Total_Progress.ProgressColor1 = Color.Lime;
- this.Total_Progress.ProgressColor2 = Color.Lime;
- this.Total_Progress.ProgressShape = iTalk_ProgressBar._ProgressShape.Flat;
- this.Total_Progress.Size = new Size(100, 100);
- this.Total_Progress.TabIndex = 17;
- this.Total_Progress.Text = "Total_Progress";
- this.Total_Progress.Value = 0L;
- this.picture_darma.Location = new Point(6, 438);
- this.picture_darma.Name = "picture_darma";
- this.picture_darma.Size = new Size(20, 19);
- this.picture_darma.SizeMode = PictureBoxSizeMode.Zoom;
- this.picture_darma.TabIndex = 14;
- this.picture_darma.TabStop = false;
- this.credits_label.AutoSize = true;
- this.credits_label.BackColor = Color.Transparent;
- this.credits_label.Font = new Font("Lucida Sans Unicode", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.credits_label.ForeColor = Color.White;
- this.credits_label.Location = new Point(789, 469);
- this.credits_label.Name = "credits_label";
- this.credits_label.Size = new Size(211, 15);
- this.credits_label.TabIndex = 13;
- this.credits_label.Text = "Copyright HUBERT Léo © 2014 - 2015";
- this.label_darma.AutoSize = true;
- this.label_darma.BackColor = Color.Transparent;
- this.label_darma.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label_darma.ForeColor = Color.Black;
- this.label_darma.Location = new Point(32, 443);
- this.label_darma.Name = "label_darma";
- this.label_darma.Size = new Size(105, 13);
- this.label_darma.TabIndex = 12;
- this.label_darma.Text = "Arma3 Directory: ";
- this.connection_label.AutoSize = true;
- this.connection_label.BackColor = Color.Transparent;
- this.connection_label.Font = new Font("Microsoft Sans Serif", 11.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.connection_label.ForeColor = Color.RoyalBlue;
- this.connection_label.Location = new Point(2, 421);
- this.connection_label.Name = "connection_label";
- this.connection_label.Size = new Size(82, 18);
- this.connection_label.TabIndex = 11;
- this.connection_label.Text = "Loading ..";
- this.destination_bouton.BackColor = Color.Transparent;
- this.destination_bouton.Font = new Font("Segoe UI", 14f);
- this.destination_bouton.ForeColor = Color.White;
- this.destination_bouton.Image = null;
- this.destination_bouton.ImageAlign = ContentAlignment.MiddleLeft;
- this.destination_bouton.Location = new Point(12, 258);
- this.destination_bouton.Name = "destination_bouton";
- this.destination_bouton.Size = new Size(212, 40);
- this.destination_bouton.TabIndex = 8;
- this.destination_bouton.Text = "Destination";
- this.destination_bouton.TextAlignment = StringAlignment.Center;
- this.destination_bouton.Click += new EventHandler(this.destination_bouton_Click_1);
- this.Option_Boutton.BackColor = Color.Transparent;
- this.Option_Boutton.Font = new Font("Segoe UI", 12f);
- this.Option_Boutton.Image = null;
- this.Option_Boutton.ImageAlign = ContentAlignment.MiddleLeft;
- this.Option_Boutton.Location = new Point(12, 304);
- this.Option_Boutton.Name = "Option_Boutton";
- this.Option_Boutton.Size = new Size(212, 33);
- this.Option_Boutton.TabIndex = 7;
- this.Option_Boutton.Text = "Options";
- this.Option_Boutton.TextAlignment = StringAlignment.Center;
- this.Option_Boutton.Click += new EventHandler(this.Option_Boutton_Click);
- this.Play_bouton.BackColor = Color.Transparent;
- this.Play_bouton.Font = new Font("Segoe UI", 14f);
- this.Play_bouton.ForeColor = Color.White;
- this.Play_bouton.Image = null;
- this.Play_bouton.ImageAlign = ContentAlignment.MiddleLeft;
- this.Play_bouton.Location = new Point(786, 258);
- this.Play_bouton.Name = "Play_bouton";
- this.Play_bouton.Size = new Size(212, 60);
- this.Play_bouton.TabIndex = 6;
- this.Play_bouton.Text = "Play";
- this.Play_bouton.TextAlignment = StringAlignment.Center;
- this.Play_bouton.Click += new EventHandler(this.play_bouton_Click);
- this.iTalk_ControlBox1.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
- this.iTalk_ControlBox1.BackColor = Color.Transparent;
- this.iTalk_ControlBox1.Location = new Point(923, -1);
- this.iTalk_ControlBox1.Name = "iTalk_ControlBox1";
- this.iTalk_ControlBox1.Size = new Size(77, 19);
- this.iTalk_ControlBox1.TabIndex = 5;
- this.iTalk_ControlBox1.Text = "iTalk_ControlBox1";
- this.imagebox.BackColor = Color.Transparent;
- this.imagebox.Image = (Image)componentResourceManager.GetObject("imagebox.Image");
- this.imagebox.Location = new Point(6, 31);
- this.imagebox.Name = "imagebox";
- this.imagebox.Size = new Size(992, 221);
- this.imagebox.SizeMode = PictureBoxSizeMode.StretchImage;
- this.imagebox.TabIndex = 4;
- this.imagebox.TabStop = false;
- this.Group_Link.BackColor = Color.Transparent;
- this.Group_Link.Controls.Add(this.Vocal_Icon);
- this.Group_Link.Controls.Add(this.Web_Icon);
- this.Group_Link.Location = new Point(12, 343);
- this.Group_Link.MinimumSize = new Size(136, 50);
- this.Group_Link.Name = "Group_Link";
- this.Group_Link.Padding = new Padding(5, 28, 5, 5);
- this.Group_Link.Size = new Size(212, 75);
- this.Group_Link.TabIndex = 2;
- this.Group_Link.Text = "Links";
- this.Group_Link.DoubleClick += new EventHandler(this.Show_Launcher_Info);
- this.Vocal_Icon.Image = Resources.teamspeak_icon;
- this.Vocal_Icon.Location = new Point(154, 27);
- this.Vocal_Icon.Name = "Vocal_Icon";
- this.Vocal_Icon.Size = new Size(50, 40);
- this.Vocal_Icon.SizeMode = PictureBoxSizeMode.Zoom;
- this.Vocal_Icon.TabIndex = 1;
- this.Vocal_Icon.TabStop = false;
- this.Vocal_Icon.Click += new EventHandler(this.Vocal_bouton_Click);
- this.Web_Icon.Image = Resources.website_icon;
- this.Web_Icon.Location = new Point(8, 27);
- this.Web_Icon.Name = "Web_Icon";
- this.Web_Icon.Size = new Size(50, 40);
- this.Web_Icon.SizeMode = PictureBoxSizeMode.Zoom;
- this.Web_Icon.TabIndex = 0;
- this.Web_Icon.TabStop = false;
- this.Web_Icon.Click += new EventHandler(this.WebSite_bouton_Click);
- this.notif_1.BorderCurve = 8;
- this.notif_1.Font = new Font("Tahoma", 9f);
- this.notif_1.Image = null;
- this.notif_1.Location = new Point(6, 31);
- this.notif_1.MinimumSize = new Size(100, 40);
- this.notif_1.Name = "notif_1";
- this.notif_1.NotificationType = MonoFlat_NotificationBox.Type.Error;
- this.notif_1.RoundCorners = false;
- this.notif_1.ShowCloseButton = false;
- this.notif_1.Size = new Size(992, 40);
- this.notif_1.TabIndex = 0;
- this.News_Notif.BorderCurve = 8;
- this.News_Notif.Font = new Font("Tahoma", 9f);
- this.News_Notif.Image = null;
- this.News_Notif.Location = new Point(6, 212);
- this.News_Notif.MinimumSize = new Size(100, 40);
- this.News_Notif.Name = "News_Notif";
- this.News_Notif.NotificationType = MonoFlat_NotificationBox.Type.Notice;
- this.News_Notif.RoundCorners = false;
- this.News_Notif.ShowCloseButton = true;
- this.News_Notif.Size = new Size(992, 40);
- this.News_Notif.TabIndex = 23;
- this.Panel.Alignment = TabAlignment.Left;
- this.Panel.Controls.Add(this.tabPage1);
- this.Panel.Controls.Add(this.tabPage2);
- this.Panel.DrawMode = TabDrawMode.OwnerDrawFixed;
- this.Panel.ItemSize = new Size(44, 135);
- this.Panel.Location = new Point(230, 258);
- this.Panel.Multiline = true;
- this.Panel.Name = "Panel";
- this.Panel.SelectedIndex = 0;
- this.Panel.Size = new Size(545, 183);
- this.Panel.SizeMode = TabSizeMode.Fixed;
- this.Panel.TabIndex = 27;
- this.Panel.DoubleClick += new EventHandler(this.Show_Launcher_Info);
- this.tabPage1.BackColor = Color.FromArgb(246, 246, 246);
- this.tabPage1.Controls.Add(this.Changelogs_Serveur);
- this.tabPage1.Location = new Point(139, 4);
- this.tabPage1.Name = "tabPage1";
- this.tabPage1.Padding = new Padding(3);
- this.tabPage1.Size = new Size(402, 175);
- this.tabPage1.TabIndex = 0;
- this.tabPage1.Text = "Serveur";
- this.Changelogs_Serveur.DrawMode = DrawMode.OwnerDrawFixed;
- this.Changelogs_Serveur.Font = new Font("Microsoft Sans Serif", 11f);
- this.Changelogs_Serveur.FormattingEnabled = true;
- this.Changelogs_Serveur.IntegralHeight = false;
- this.Changelogs_Serveur.ItemHeight = 18;
- this.Changelogs_Serveur.Items.AddRange(new object[]
- {
- "Loading ....",
- "Please Wait !"
- });
- this.Changelogs_Serveur.Location = new Point(6, 6);
- this.Changelogs_Serveur.Name = "Changelogs_Serveur";
- this.Changelogs_Serveur.RightToLeft = RightToLeft.No;
- this.Changelogs_Serveur.Size = new Size(390, 166);
- this.Changelogs_Serveur.TabIndex = 26;
- this.Changelogs_Serveur.DoubleClick += new EventHandler(this.Show_Launcher_Info);
- this.tabPage2.BackColor = Color.FromArgb(246, 246, 246);
- this.tabPage2.Controls.Add(this.Changelogs_Launcher);
- this.tabPage2.Location = new Point(139, 4);
- this.tabPage2.Name = "tabPage2";
- this.tabPage2.Padding = new Padding(3);
- this.tabPage2.Size = new Size(402, 175);
- this.tabPage2.TabIndex = 1;
- this.tabPage2.Text = "Launcher";
- this.Changelogs_Launcher.DrawMode = DrawMode.OwnerDrawFixed;
- this.Changelogs_Launcher.Font = new Font("Microsoft Sans Serif", 11f);
- this.Changelogs_Launcher.FormattingEnabled = true;
- this.Changelogs_Launcher.IntegralHeight = false;
- this.Changelogs_Launcher.ItemHeight = 18;
- this.Changelogs_Launcher.Items.AddRange(new object[]
- {
- "Loading ....",
- "Please Wait !"
- });
- this.Changelogs_Launcher.Location = new Point(6, 6);
- this.Changelogs_Launcher.Name = "Changelogs_Launcher";
- this.Changelogs_Launcher.Size = new Size(390, 166);
- this.Changelogs_Launcher.TabIndex = 0;
- this.Loading.Location = new Point(447, 289);
- this.Loading.MinimumSize = new Size(80, 80);
- this.Loading.Name = "Loading";
- this.Loading.P_AnimationColor = Color.Gray;
- this.Loading.P_AnimationSpeed = 100;
- this.Loading.P_BaseColor = Color.FromArgb(76, 76, 76);
- this.Loading.Size = new Size(107, 107);
- this.Loading.TabIndex = 25;
- this.Loading.Text = "ambiance_ProgressIndicator1";
- this.Loading.Visible = false;
- this.Maintenance.InitialImage = (Image)componentResourceManager.GetObject("Maintenance.InitialImage");
- this.Maintenance.Location = new Point(161, 101);
- this.Maintenance.Name = "Maintenance";
- this.Maintenance.Size = new Size(10, 10);
- this.Maintenance.TabIndex = 28;
- this.Maintenance.TabStop = false;
- this.label2.AutoSize = true;
- this.label2.Location = new Point(8, 65);
- this.label2.Name = "label2";
- this.label2.Size = new Size(173, 13);
- this.label2.TabIndex = 37;
- this.label2.Text = "devez mettre à jour vos addons !";
- base.AutoScaleDimensions = new SizeF(6f, 13f);
- base.AutoScaleMode = AutoScaleMode.Font;
- this.BackColor = Color.FromArgb(246, 246, 246);
- this.BackgroundImage = (Image)componentResourceManager.GetObject("$this.BackgroundImage");
- base.ClientSize = new Size(1004, 484);
- base.Controls.Add(this.iTalk_ThemeContainer1);
- base.FormBorderStyle = FormBorderStyle.None;
- base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
- this.MinimumSize = new Size(126, 39);
- base.Name = "Launch";
- base.Opacity = 0.0;
- this.Text = "Launcher Arma 3";
- base.TransparencyKey = Color.Fuchsia;
- base.FormClosed += new FormClosedEventHandler(this.Launch_FormClosed);
- base.Load += new EventHandler(this.Launch_Load);
- base.Click += new EventHandler(this.Close_Form);
- this.iTalk_ThemeContainer1.ResumeLayout(false);
- this.iTalk_ThemeContainer1.PerformLayout();
- this.Option_Group.ResumeLayout(false);
- this.Option_Group.PerformLayout();
- ((ISupportInitialize)this.Sound).EndInit();
- this.Download_Group.ResumeLayout(false);
- this.Download_Group.PerformLayout();
- ((ISupportInitialize)this.picture_darma).EndInit();
- ((ISupportInitialize)this.imagebox).EndInit();
- this.Group_Link.ResumeLayout(false);
- ((ISupportInitialize)this.Vocal_Icon).EndInit();
- ((ISupportInitialize)this.Web_Icon).EndInit();
- this.Panel.ResumeLayout(false);
- this.tabPage1.ResumeLayout(false);
- this.tabPage2.ResumeLayout(false);
- ((ISupportInitialize)this.Maintenance).EndInit();
- base.ResumeLayout(false);
- }
- // Token: 0x06000014 RID: 20 RVA: 0x00004B00 File Offset: 0x00002D00
- private void Launch_FormClosed(object sender, FormClosedEventArgs e)
- {
- if (this.anticheat)
- {
- try
- {
- Process[] processesByName = Process.GetProcessesByName("arma3");
- processesByName[0].Kill();
- MessageBox.Show("Error #10 | " + this.error10);
- }
- catch
- {
- }
- }
- }
- // Token: 0x06000002 RID: 2 RVA: 0x00002380 File Offset: 0x00000580
- private void Launch_Load(object sender, EventArgs e)
- {
- this.Change_Lang.RunWorkerAsync();
- this.CheckInternet.RunWorkerAsync();
- if (!this.changelogs)
- {
- this.Panel.Visible = false;
- }
- if (File.Exists(this.appdata + this.dest_options + "\\" + this.file_option))
- {
- string[] array = File.ReadAllLines(this.appdata + this.dest_options + "\\" + this.file_option);
- if (this.intro_music && array[1] == "True")
- {
- if (array[1] == "False")
- {
- this.music_play = false;
- }
- else
- {
- this.music_play = true;
- }
- this.music_volume = int.Parse(array[2]);
- }
- }
- else
- {
- this.music_play = this.intro_music;
- }
- if (this.intro_music)
- {
- this.Music.RunWorkerAsync();
- }
- else
- {
- this.Sound.Visible = false;
- }
- this.iTalk_ThemeContainer1.Text = "AltiStudio Launcher ©";
- this.Vocal_Icon.Image = Resources.teamspeak_icon;
- if (this.credits_label.Text != Resources.Copyright)
- {
- if (!this.Erreur_Msg.IsBusy)
- {
- this.error_time = -1;
- this.error_code = 100;
- this.Erreur_Msg.RunWorkerAsync();
- }
- this.credits_label.Text = Resources.Copyright;
- this.locked = true;
- return;
- }
- this.GUID = "http://launcher.altistudio.fr/".Replace(".", "");
- this.GUID = this.GUID.Replace("/", "");
- this.GUID = this.GUID.Replace(":", "");
- this.GUID = this.GUID.Replace("-", "");
- this.GUID = this.GUID.Replace("_", "");
- if (!Directory.Exists(this.appdata))
- {
- Directory.CreateDirectory(this.appdata);
- }
- if (!Directory.Exists(this.appdata + this.dest_options))
- {
- Directory.CreateDirectory(this.appdata + this.dest_options);
- }
- this.Update_Launcher.RunWorkerAsync();
- if (File.Exists(this.appdata + this.file_darma))
- {
- this.dest_arma = File.ReadAllText(this.appdata + this.file_darma);
- }
- else if (!File.Exists(this.dest_arma + this.file_arma3))
- {
- this.Folder.ShowDialog();
- this.dest_arma = this.Folder.SelectedPath + "\\";
- File.WriteAllText(this.appdata + this.file_darma, this.dest_arma);
- }
- if (!File.Exists(this.dest_arma + this.file_arma3))
- {
- if (!this.Erreur_Msg.IsBusy)
- {
- this.error_code = 401;
- this.Erreur_Msg.RunWorkerAsync();
- }
- this.label_darma.ForeColor = Color.Red;
- this.picture_darma.Image = Resources.cross;
- }
- else
- {
- this.label_darma.ForeColor = Color.Green;
- this.picture_darma.Image = Resources.checkmark;
- }
- this.label_darma.Text = this.msg_darma + this.dest_arma;
- if (!"http://launcher.altistudio.fr/".Contains("http://"))
- {
- MessageBox.Show("The FTP connection must be a link \"http: //\"! A link \"ftp: //\" or the like does not work!" + Environment.NewLine + Environment.NewLine + "Le lien FTP doit être obligatoirement un lien \" http:// \" ! Les liens tel que \" ftp:// \" ou autres ne marche pas ! ", "AltiStudio Launcher ©");
- }
- }
- // Token: 0x06000015 RID: 21 RVA: 0x00004B54 File Offset: 0x00002D54
- private void Music_DoWork(object sender, DoWorkEventArgs e)
- {
- if (this.started_arma)
- {
- this.Sound.Visible = false;
- this.wplayer.controls.pause();
- return;
- }
- if (!this.music_play)
- {
- this.Sound.Visible = false;
- this.wplayer.controls.pause();
- return;
- }
- if (!this.intro_music)
- {
- this.Sound.Visible = false;
- this.wplayer.controls.pause();
- return;
- }
- if (!this.Sound.Visible)
- {
- this.Sound.Visible = true;
- }
- this.wplayer.controls.play();
- if (!this.music_started)
- {
- this.wplayer.URL = "http://launcher.altistudio.fr/" + this.file_music;
- this.wplayer.settings.setMode("loop", true);
- this.music_started = true;
- }
- this.wplayer.settings.volume = this.music_volume;
- if (this.music_volume >= 0)
- {
- this.Sound.Image = Resources.muted;
- }
- if (this.music_volume >= 30)
- {
- this.Sound.Image = Resources.sound_1;
- }
- if (this.music_volume >= 60)
- {
- this.Sound.Image = Resources.sound;
- }
- }
- // Token: 0x06000013 RID: 19 RVA: 0x00004900 File Offset: 0x00002B00
- private void News_DoWork(object sender, DoWorkEventArgs e)
- {
- int i = 0;
- WebClient webClient = new WebClient();
- Stream stream = webClient.OpenRead("http://launcher.altistudio.fr/" + this.dest_news + "/" + this.file_news);
- StreamReader streamReader = new StreamReader(stream);
- string a = streamReader.ReadLine();
- string text = streamReader.ReadLine();
- string a2 = streamReader.ReadLine();
- string text2 = streamReader.ReadLine();
- if (a == "true")
- {
- this.News_Notif.Text = text;
- this.News_Notif.BringToFront();
- }
- this.load_finish = true;
- bool arg_84_0 = this.changelogs;
- this.Changelogs.RunWorkerAsync();
- if (a2 == "true")
- {
- this.Maintenance.ImageLocation = "http://launcher.altistudio.fr/" + this.dest_news + "\\" + this.file_maintenan_img;
- this.Maintenance.Location = new Point(0, 24);
- this.Maintenance.Width = 1004;
- this.Maintenance.Height = 433;
- this.Maintenance.SizeMode = PictureBoxSizeMode.Zoom;
- this.Maintenance.BringToFront();
- this.Maintenance_Label.Location = new Point(6, 460);
- this.Maintenance_Label.Text = text2;
- this.Maintenance_Label.BringToFront();
- this.music_play = false;
- if (!this.Music.IsBusy)
- {
- this.Music.RunWorkerAsync();
- }
- while (i < 2)
- {
- Thread.Sleep(10000);
- new WebClient();
- Stream stream2 = webClient.OpenRead("http://launcher.altistudio.fr/" + this.dest_news + "/" + this.file_news);
- StreamReader streamReader2 = new StreamReader(stream2);
- streamReader2.ReadLine();
- streamReader2.ReadLine();
- string a3 = streamReader2.ReadLine();
- streamReader2.ReadLine();
- if (a3 != "true")
- {
- this.Maintenance.Visible = false;
- this.Maintenance_Label.Visible = false;
- i = 3;
- }
- }
- }
- }
- // Token: 0x06000007 RID: 7 RVA: 0x00002B60 File Offset: 0x00000D60
- private void Option_Boutton_Click(object sender, EventArgs e)
- {
- if (this.locked)
- {
- if (!this.Erreur_Msg.IsBusy)
- {
- this.error_code = 100;
- this.Erreur_Msg.RunWorkerAsync();
- }
- this.credits_label.Text = Resources.Copyright;
- return;
- }
- Form2 form = new Form2(this.language, this.appdata, this.dest_options, this.file_username, this.file_a3options, this.file_language, this.file_option, this.dest_arma, "@Studio", this.download_progress, this.music_volume, this.intro_music, this.music_play, this.TaskForce_statut, this.file_teamspeak, this.file_listtask, this.dest_taskforce, "http://launcher.altistudio.fr/", this.file_arma3, this.error_xml, "teamspeak3", "none", "none", "none", "ts.altistudio.fr", "none", "none", this.file_translate, this.file_vmods, this.dest_version);
- form.ShowDialog();
- if (File.Exists(this.appdata + this.dest_options + "\\" + this.file_language))
- {
- string[] array = File.ReadAllLines(this.appdata + this.dest_options + "\\" + this.file_language);
- this.language = array[1];
- }
- if (File.Exists(this.appdata + this.dest_options + "\\" + this.file_option))
- {
- string[] array2 = File.ReadAllLines(this.appdata + this.dest_options + "\\" + this.file_option);
- if (array2[1] == "False")
- {
- this.music_play = false;
- }
- else
- {
- this.music_play = true;
- }
- this.music_volume = int.Parse(array2[2]);
- this.Music.RunWorkerAsync();
- }
- if (!this.Change_Lang.IsBusy)
- {
- this.Change_Lang.RunWorkerAsync();
- }
- }
- // Token: 0x06000006 RID: 6 RVA: 0x00002908 File Offset: 0x00000B08
- private void play_bouton_Click(object sender, EventArgs e)
- {
- if (this.locked)
- {
- if (!this.Erreur_Msg.IsBusy)
- {
- this.error_code = 100;
- this.Erreur_Msg.RunWorkerAsync();
- }
- this.credits_label.Text = Resources.Copyright;
- return;
- }
- if (!this.load_finish)
- {
- if (!this.Erreur_Msg.IsBusy)
- {
- this.error_code = 110;
- this.Erreur_Msg.RunWorkerAsync();
- }
- if (!this.News.IsBusy)
- {
- this.News.RunWorkerAsync();
- }
- return;
- }
- if (this.error404)
- {
- if (!this.Erreur_Msg.IsBusy)
- {
- this.error_code = 404;
- this.Erreur_Msg.RunWorkerAsync();
- }
- return;
- }
- if (!this.force_download && this.mods_update != "true")
- {
- this.Start_Arma.RunWorkerAsync();
- this.start_arma = true;
- return;
- }
- if (!File.Exists(this.dest_arma + this.file_arma3))
- {
- if (!this.Erreur_Msg.IsBusy)
- {
- this.error_code = 401;
- this.Erreur_Msg.RunWorkerAsync();
- }
- return;
- }
- bool flag = false;
- if (this.TaskForce_statut)
- {
- if (File.Exists(this.appdata + this.dest_options + "\\" + this.file_teamspeak))
- {
- if (File.ReadAllText(this.appdata + this.dest_options + "\\" + this.file_teamspeak) != "Installed")
- {
- flag = true;
- }
- }
- else
- {
- flag = true;
- }
- }
- if (flag)
- {
- if (!this.Erreur_Msg.IsBusy)
- {
- this.error_code = 55;
- this.Erreur_Msg.RunWorkerAsync();
- }
- return;
- }
- if (this.download_finish)
- {
- this.Start_Arma.RunWorkerAsync();
- return;
- }
- if (this.download_progress)
- {
- return;
- }
- this.download_progress = true;
- if (!Directory.Exists(this.dest_arma + "@Studio"))
- {
- Directory.CreateDirectory(this.dest_arma + "@Studio");
- }
- if (!Directory.Exists(this.dest_arma + "@Studio\\addons\\"))
- {
- Directory.CreateDirectory(this.dest_arma + "@Studio\\addons\\");
- }
- if (File.Exists(this.appdata + this.file_modslist))
- {
- File.Delete(this.appdata + this.file_modslist);
- }
- this.Download_CPP.RunWorkerAsync();
- }
- // Token: 0x06000017 RID: 23 RVA: 0x00004D90 File Offset: 0x00002F90
- private void Pont_Cpp(object sender, RunWorkerCompletedEventArgs e)
- {
- if (this.counter_cpp >= this.line_1)
- {
- this.Loading.Visible = false;
- this.Download_Mods.RunWorkerAsync();
- this.Download_Group.Visible = true;
- return;
- }
- this.counter_cpp++;
- this.Download_CPP.RunWorkerAsync();
- }
- // Token: 0x0600000B RID: 11 RVA: 0x00003B20 File Offset: 0x00001D20
- private void Show_Launcher_Info(object sender, EventArgs e)
- {
- try
- {
- File.WriteAllText(this.appdata + "info.txt", string.Concat(new string[]
- {
- "http://launcher.altistudio.fr/",
- Environment.NewLine,
- "AltiStudio",
- Environment.NewLine,
- this.ipserver,
- Environment.NewLine,
- "ts.altistudio.fr:none@none",
- Environment.NewLine,
- "http://altistudio.fr/",
- Environment.NewLine,
- this.GUID
- }));
- }
- catch
- {
- File.WriteAllText("info.txt", string.Concat(new string[]
- {
- "http://launcher.altistudio.fr/",
- Environment.NewLine,
- "AltiStudio",
- Environment.NewLine,
- this.ipserver,
- Environment.NewLine,
- "ts.altistudio.fr:none@none",
- Environment.NewLine,
- "http://altistudio.fr/",
- Environment.NewLine,
- this.GUID
- }));
- }
- }
- // Token: 0x06000012 RID: 18 RVA: 0x000044F0 File Offset: 0x000026F0
- private void Start_Arma_DoWork(object sender, DoWorkEventArgs e)
- {
- if (File.Exists(this.appdata + this.dest_options + "\\" + this.file_username))
- {
- string[] array = File.ReadAllLines(this.appdata + this.dest_options + "\\" + this.file_username);
- if (array[1] == "True")
- {
- this.speudo = array[0];
- }
- }
- if (File.Exists(this.appdata + this.dest_options + "\\" + this.file_a3options))
- {
- string[] array2 = File.ReadAllLines(this.appdata + this.dest_options + "\\" + this.file_a3options);
- if (array2[1] == "True")
- {
- this.startoption = array2[0];
- }
- }
- if (!this.start_arma)
- {
- return;
- }
- if (File.Exists(this.dest_arma + this.file_arma3))
- {
- if (this.servpassword == "none")
- {
- if (this.startoption == "any")
- {
- if (this.speudo == "any")
- {
- Process.Start(this.dest_arma + this.file_arma3, "0 1 -mod=@Studio -connect=" + this.ipserver);
- }
- else
- {
- Process.Start(this.dest_arma + this.file_arma3, "0 1 -mod=@Studio -connect=" + this.ipserver + " -name=" + this.speudo);
- }
- }
- else if (this.speudo == "any")
- {
- Process.Start(this.dest_arma + this.file_arma3, "0 1 -mod=@Studio -connect=" + this.ipserver + " " + this.startoption);
- }
- else
- {
- Process.Start(this.dest_arma + this.file_arma3, string.Concat(new string[]
- {
- "0 1 -mod=@Studio -connect=",
- this.ipserver,
- " -name=",
- this.speudo,
- " ",
- this.startoption
- }));
- }
- }
- else if (this.startoption == "any")
- {
- if (this.speudo == "any")
- {
- Process.Start(this.dest_arma + this.file_arma3, "0 1 -mod=@Studio -connect=" + this.ipserver + " -password=" + this.servpassword);
- }
- else
- {
- Process.Start(this.dest_arma + this.file_arma3, string.Concat(new string[]
- {
- "0 1 -mod=@Studio -connect=",
- this.ipserver,
- " -name=",
- this.speudo,
- " -password=",
- this.servpassword
- }));
- }
- }
- else if (this.speudo == "any")
- {
- Process.Start(this.dest_arma + this.file_arma3, string.Concat(new string[]
- {
- "0 1 -mod=@Studio -connect=",
- this.ipserver,
- " -password=",
- this.servpassword,
- " ",
- this.startoption
- }));
- }
- else
- {
- Process.Start(this.dest_arma + this.file_arma3, string.Concat(new string[]
- {
- "0 1 -mod=@Studio -connect=",
- this.ipserver,
- " -name=",
- this.speudo,
- " -password=",
- this.servpassword,
- " ",
- this.startoption
- }));
- }
- this.started_arma = true;
- if (!this.Music.IsBusy)
- {
- this.Music.RunWorkerAsync();
- return;
- }
- }
- else if (!this.Erreur_Msg.IsBusy)
- {
- this.error_code = 401;
- this.Erreur_Msg.RunWorkerAsync();
- }
- }
- // Token: 0x06000008 RID: 8 RVA: 0x00002D44 File Offset: 0x00000F44
- private void Update_Launcher_DoWork(object sender, DoWorkEventArgs e)
- {
- WebClient webClient = new WebClient();
- Stream stream = webClient.OpenRead("http://launcher.altistudio.fr/" + this.dest_version + "/" + this.file_vlauncher);
- StreamReader streamReader = new StreamReader(stream);
- string text = streamReader.ReadToEnd();
- if (text != this.vlauncher)
- {
- if (!Directory.Exists(this.appdata + this.dest_update))
- {
- Directory.CreateDirectory(this.appdata + this.dest_update);
- }
- MessageBox.Show(string.Concat(new string[]
- {
- "Une mise à jour du launcher est disponible ! Télécharger la sur notre site !",
- Environment.NewLine,
- Environment.NewLine,
- "Version Launcher: ",
- this.vlauncher,
- Environment.NewLine,
- "Version Update: ",
- text
- }));
- if (File.Exists(this.appdata + this.dest_update + "\\" + this.update_site))
- {
- File.Delete(this.appdata + this.dest_update + "\\" + this.update_site);
- }
- File.AppendAllText(this.appdata + this.dest_update + "\\" + this.update_site, "http://launcher.altistudio.fr/" + this.dest_update + "/AltiStudio.exe");
- if (File.Exists(this.appdata + this.dest_update + "\\" + this.update_destlaunch))
- {
- File.Delete(this.appdata + this.dest_update + "\\" + this.update_destlaunch);
- }
- File.AppendAllText(this.appdata + this.dest_update + "\\" + this.update_destlaunch, this.dlauncher);
- WebClient webClient2 = new WebClient();
- webClient2.DownloadFile("http://launcher.altistudio.fr/" + this.dest_update + "/" + this.update_ext, this.appdata + this.dest_update + "\\" + this.update_ext);
- Process.Start(this.appdata + this.dest_update + "\\" + this.update_ext);
- Application.Exit();
- }
- }
- // Token: 0x06000005 RID: 5 RVA: 0x000028B4 File Offset: 0x00000AB4
- private void Vocal_bouton_Click(object sender, EventArgs e)
- {
- if (this.locked)
- {
- if (!this.Erreur_Msg.IsBusy)
- {
- this.error_code = 100;
- this.Erreur_Msg.RunWorkerAsync();
- }
- this.credits_label.Text = Resources.Copyright;
- return;
- }
- Process.Start("ts3server://ts.altistudio.fr");
- }
- // Token: 0x06000003 RID: 3 RVA: 0x00002720 File Offset: 0x00000920
- private void WebSite_bouton_Click(object sender, EventArgs e)
- {
- if (this.locked)
- {
- if (!this.Erreur_Msg.IsBusy)
- {
- this.error_code = 100;
- this.Erreur_Msg.RunWorkerAsync();
- }
- this.credits_label.Text = Resources.Copyright;
- return;
- }
- if (this.web_type == "Forum")
- {
- Process.Start("http://forum.altistudio.fr");
- return;
- }
- Process.Start("http://altistudio.fr/");
- }
- // Token: 0x04000010 RID: 16
- private bool anticheat = true;
- // Token: 0x04000087 RID: 135
- private BackgroundWorker Anti_Cheat;
- // Token: 0x04000047 RID: 71
- private string appdata = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\AltiStudio\\";
- // Token: 0x04000058 RID: 88
- private Assembly assembly = Assembly.GetExecutingAssembly();
- // Token: 0x04000097 RID: 151
- private BackgroundWorker Back_Test;
- // Token: 0x0400005D RID: 93
- private string bytes;
- // Token: 0x0400005E RID: 94
- private string bytes_d;
- // Token: 0x04000011 RID: 17
- private bool changelogs = true;
- // Token: 0x04000093 RID: 147
- private BackgroundWorker Changelogs;
- // Token: 0x04000092 RID: 146
- private Ambiance_ListBox Changelogs_Launcher;
- // Token: 0x04000090 RID: 144
- private Ambiance_ListBox Changelogs_Serveur;
- // Token: 0x04000074 RID: 116
- private BackgroundWorker Change_Lang;
- // Token: 0x0400008D RID: 141
- private BackgroundWorker CheckInternet;
- // Token: 0x04000096 RID: 150
- private BackgroundWorker Check_Mods;
- // Token: 0x0400007F RID: 127
- private new System.Windows.Forms.Timer Close;
- // Token: 0x0400006A RID: 106
- private IContainer components;
- // Token: 0x04000059 RID: 89
- private bool connection = NetworkInterface.GetIsNetworkAvailable();
- // Token: 0x04000075 RID: 117
- private iTalk_Label connection_label;
- // Token: 0x04000066 RID: 102
- private int counter;
- // Token: 0x0400004F RID: 79
- private int counter_cpp;
- // Token: 0x04000067 RID: 103
- private int counter_total;
- // Token: 0x04000078 RID: 120
- protected Label credits_label;
- // Token: 0x04000073 RID: 115
- private iTalk_Button_2 destination_bouton;
- // Token: 0x0400001D RID: 29
- private string dest_arma = "C:\\Program Files (x86)\\Steam\\SteamApps\\common\\Arma 3\\";
- // Token: 0x04000020 RID: 32
- private string dest_cpp = "cpp";
- // Token: 0x0400001B RID: 27
- private string dest_mods = "mods";
- // Token: 0x0400001E RID: 30
- private string dest_news = "news";
- // Token: 0x0400001F RID: 31
- private string dest_options = "options";
- // Token: 0x04000021 RID: 33
- private string dest_taskforce = "taskforce";
- // Token: 0x0400001C RID: 28
- private string dest_update = "update";
- // Token: 0x0400001A RID: 26
- private string dest_version = "version";
- // Token: 0x04000048 RID: 72
- private string dlauncher = Application.ExecutablePath;
- // Token: 0x0400008B RID: 139
- private BackgroundWorker Download_CPP;
- // Token: 0x04000050 RID: 80
- private bool download_finish;
- // Token: 0x0400007E RID: 126
- private iTalk_GroupBox Download_Group;
- // Token: 0x0400007A RID: 122
- private BackgroundWorker Download_Mods;
- // Token: 0x0400005C RID: 92
- private bool download_progress;
- // Token: 0x04000082 RID: 130
- private PerplexProgressBar Download_Progress;
- // Token: 0x0400008A RID: 138
- private PerplexProgressBar Download_Progressbar;
- // Token: 0x0400007C RID: 124
- private BackgroundWorker Erreur_Msg;
- // Token: 0x0400003C RID: 60
- private string error10;
- // Token: 0x0400003B RID: 59
- private bool error404;
- // Token: 0x0400003F RID: 63
- private int error_code;
- // Token: 0x04000040 RID: 64
- private string error_message;
- // Token: 0x0400003D RID: 61
- private int error_time = 5000;
- // Token: 0x0400003E RID: 62
- private string error_type;
- // Token: 0x0400003A RID: 58
- private string error_xml = "errorlist";
- // Token: 0x04000005 RID: 5
- private const string extention = "AltiStudio.exe";
- // Token: 0x0400007D RID: 125
- private System.Windows.Forms.Timer Fader;
- // Token: 0x0400000F RID: 15
- private bool fader_statut = true;
- // Token: 0x0400002A RID: 42
- private string file_a3options = "A3_Options.a3";
- // Token: 0x04000025 RID: 37
- private string file_arma3 = "arma3battleye.exe";
- // Token: 0x04000032 RID: 50
- private string file_changlauncher = "changelogs_launcher.txt";
- // Token: 0x04000031 RID: 49
- private string file_changserveur = "changelogs_serveur.txt";
- // Token: 0x0400002E RID: 46
- private string file_cpp = "list_cpp.txt";
- // Token: 0x04000024 RID: 36
- private string file_darma = "darma3.a3";
- // Token: 0x0400002B RID: 43
- private string file_language = "Language.a3";
- // Token: 0x04000030 RID: 48
- private string file_listtask = "list_taskforce.txt";
- // Token: 0x04000033 RID: 51
- private string file_maintenan_img = "maintenance.png";
- // Token: 0x04000027 RID: 39
- private string file_modslist = "modslist.txt";
- // Token: 0x0400002D RID: 45
- private string file_music = "Music.wav";
- // Token: 0x04000028 RID: 40
- private string file_news = "news.txt";
- // Token: 0x0400002C RID: 44
- private string file_option = "options.a3";
- // Token: 0x0400002F RID: 47
- private string file_teamspeak = "teamspeak.a3";
- // Token: 0x04000026 RID: 38
- private string file_translate = "translate.xml";
- // Token: 0x04000029 RID: 41
- private string file_username = "UserName.a3";
- // Token: 0x04000022 RID: 34
- private string file_vlauncher = "vlauncher.txt";
- // Token: 0x04000023 RID: 35
- private string file_vmods = "vmods.txt";
- // Token: 0x04000076 RID: 118
- private FolderBrowserDialog Folder;
- // Token: 0x0400004B RID: 75
- private bool force_download;
- // Token: 0x0400009B RID: 155
- private iTalk_CheckBox Force_Update;
- // Token: 0x0400009C RID: 156
- private iTalk_Label Force_Update_Label;
- // Token: 0x04000007 RID: 7
- private const string forum = "http://forum.altistudio.fr";
- // Token: 0x04000001 RID: 1
- private const string ftp = "http://launcher.altistudio.fr/";
- // Token: 0x0400006D RID: 109
- private iTalk_GroupBox Group_Link;
- // Token: 0x0400005F RID: 95
- private string GUID;
- // Token: 0x0400006E RID: 110
- private PictureBox imagebox;
- // Token: 0x04000013 RID: 19
- private bool intro_music;
- // Token: 0x04000009 RID: 9
- private const string ipmumble = "none";
- // Token: 0x04000016 RID: 22
- private string ipserver = "151.80.110.174:2302";
- // Token: 0x0400000C RID: 12
- private const string ipTS = "ts.altistudio.fr";
- // Token: 0x0400006F RID: 111
- private iTalk_ControlBox iTalk_ControlBox1;
- // Token: 0x0400006B RID: 107
- private iTalk_ThemeContainer iTalk_ThemeContainer1;
- // Token: 0x0400009D RID: 157
- private Label label1;
- // Token: 0x0400009E RID: 158
- private Label label2;
- // Token: 0x04000077 RID: 119
- private iTalk_Label label_darma;
- // Token: 0x04000083 RID: 131
- private iTalk_Label Label_mods;
- // Token: 0x04000086 RID: 134
- private iTalk_Label Label_modsdeal;
- // Token: 0x04000081 RID: 129
- private iTalk_Label Label_valu;
- // Token: 0x04000018 RID: 24
- public string language = "FR";
- // Token: 0x04000019 RID: 25
- public string language_Text = "Français";
- // Token: 0x04000054 RID: 84
- private string line;
- // Token: 0x04000053 RID: 83
- private int line_1;
- // Token: 0x0400008C RID: 140
- private Ambiance_ProgressIndicator Loading;
- // Token: 0x0400004E RID: 78
- private bool load_finish;
- // Token: 0x0400005A RID: 90
- private bool locked;
- // Token: 0x04000094 RID: 148
- private PictureBox Maintenance;
- // Token: 0x04000095 RID: 149
- private Ambiance_Label Maintenance_Label;
- // Token: 0x04000004 RID: 4
- private const string modsname = "@Studio";
- // Token: 0x04000052 RID: 82
- private string mods_update;
- // Token: 0x04000057 RID: 87
- private string msg_darma = "Arma3 Directory: ";
- // Token: 0x04000088 RID: 136
- private BackgroundWorker Music;
- // Token: 0x04000055 RID: 85
- private bool music_play;
- // Token: 0x04000051 RID: 81
- private bool music_started;
- // Token: 0x04000014 RID: 20
- private int music_volume = 2;
- // Token: 0x04000003 RID: 3
- private const string namelaunch = "AltiStudio Launcher ©";
- // Token: 0x04000085 RID: 133
- private BackgroundWorker News;
- // Token: 0x04000084 RID: 132
- private MonoFlat_NotificationBox News_Notif;
- // Token: 0x0400006C RID: 108
- private MonoFlat_NotificationBox notif_1;
- // Token: 0x04000072 RID: 114
- private iTalk_Button_1 Option_Boutton;
- // Token: 0x0400009A RID: 154
- private iTalk_GroupBox Option_Group;
- // Token: 0x0400008E RID: 142
- private iTalk_TabControl Panel;
- // Token: 0x0400000B RID: 11
- private const string passmumble = "none";
- // Token: 0x0400000E RID: 14
- private const string passTS = "none";
- // Token: 0x04000079 RID: 121
- private PictureBox picture_darma;
- // Token: 0x04000070 RID: 112
- private iTalk_Button_2 Play_bouton;
- // Token: 0x0400000A RID: 10
- private const string portmumble = "none";
- // Token: 0x0400000D RID: 13
- private const string portTS = "none";
- // Token: 0x04000002 RID: 2
- private const string servername = "AltiStudio";
- // Token: 0x04000008 RID: 8
- private const string servervocal = "teamspeak3";
- // Token: 0x04000017 RID: 23
- private string servpassword = "azer123";
- // Token: 0x04000089 RID: 137
- private PictureBox Sound;
- // Token: 0x0400004D RID: 77
- private string speudo = "any";
- // Token: 0x04000056 RID: 86
- private bool started_arma;
- // Token: 0x0400004C RID: 76
- private string startoption = "any";
- // Token: 0x0400005B RID: 91
- private bool start_arma;
- // Token: 0x04000080 RID: 128
- private BackgroundWorker Start_Arma;
- // Token: 0x0400008F RID: 143
- private TabPage tabPage1;
- // Token: 0x04000091 RID: 145
- private TabPage tabPage2;
- // Token: 0x04000012 RID: 18
- private bool TaskForce_statut = true;
- // Token: 0x0400007B RID: 123
- private iTalk_ProgressBar Total_Progress;
- // Token: 0x04000044 RID: 68
- private string Trans_Checks;
- // Token: 0x04000045 RID: 69
- private string Trans_Deal;
- // Token: 0x04000042 RID: 66
- private string Trans_Download;
- // Token: 0x04000043 RID: 67
- private string Trans_Download2;
- // Token: 0x04000046 RID: 70
- private string Trans_Play;
- // Token: 0x04000041 RID: 65
- private string Trans_Progress;
- // Token: 0x04000036 RID: 54
- private string update_destlaunch = "update.txt";
- // Token: 0x04000034 RID: 52
- private string update_ext = "Update.exe";
- // Token: 0x04000071 RID: 113
- private BackgroundWorker Update_Launcher;
- // Token: 0x04000037 RID: 55
- private string update_message;
- // Token: 0x04000035 RID: 53
- private string update_site = "site.txt";
- // Token: 0x04000060 RID: 96
- private string var_1;
- // Token: 0x04000061 RID: 97
- private string var_2;
- // Token: 0x04000062 RID: 98
- private string var_3;
- // Token: 0x04000063 RID: 99
- private string var_message;
- // Token: 0x04000064 RID: 100
- private string var_message2;
- // Token: 0x04000065 RID: 101
- private string var_message3;
- // Token: 0x04000038 RID: 56
- private string version_now;
- // Token: 0x04000039 RID: 57
- private string version_up;
- // Token: 0x04000049 RID: 73
- private string vlauncher = Application.ProductVersion.ToString();
- // Token: 0x04000098 RID: 152
- private PictureBox Vocal_Icon;
- // Token: 0x04000006 RID: 6
- private const string website = "http://altistudio.fr/";
- // Token: 0x04000099 RID: 153
- private PictureBox Web_Icon;
- // Token: 0x04000015 RID: 21
- private string web_type = "WebSite";
- // Token: 0x0400004A RID: 74
- private WindowsMediaPlayer wplayer = (WindowsMediaPlayer)Activator.CreateInstance(Marshal.GetTypeFromCLSID(new Guid("6BF52A52-394A-11D3-B153-00C04F79FAA6")));
- // Token: 0x04000068 RID: 104
- private string wrs_1;
- // Token: 0x04000069 RID: 105
- private string wrs_2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement