From 75610d0b90773b59c9b8cdd1e1b45959363ffe65 Mon Sep 17 00:00:00 2001 From: Asval Date: Thu, 15 Aug 2019 18:20:21 +0200 Subject: [PATCH] upper case challenges completion with all languages + twitter removed + challenges default banner used if no custom provided --- FModel/App.config | 12 - FModel/FModel.csproj | 9 - FModel/Forms/TweetForm.Designer.cs | 193 -------------- FModel/Forms/TweetForm.cs | 169 ------------- FModel/Forms/TweetForm.resx | 239 ------------------ FModel/MainWindow.Designer.cs | 43 +--- FModel/MainWindow.cs | 12 - FModel/MainWindow.resx | 2 +- .../ChallengeGenerator/BundleDesign.cs | 52 +++- FModel/Properties/Settings.Designer.cs | 48 ---- FModel/Properties/Settings.settings | 12 - README.md | 3 +- 12 files changed, 55 insertions(+), 739 deletions(-) delete mode 100644 FModel/Forms/TweetForm.Designer.cs delete mode 100644 FModel/Forms/TweetForm.cs delete mode 100644 FModel/Forms/TweetForm.resx diff --git a/FModel/App.config b/FModel/App.config index f5cbec20..1630f625 100644 --- a/FModel/App.config +++ b/FModel/App.config @@ -61,18 +61,6 @@ True - - - - - - - - - - - - diff --git a/FModel/FModel.csproj b/FModel/FModel.csproj index 3424ec33..3c8a56d2 100644 --- a/FModel/FModel.csproj +++ b/FModel/FModel.csproj @@ -144,12 +144,6 @@ AESManager.cs - - Form - - - TweetForm.cs - @@ -225,9 +219,6 @@ Settings.cs - - TweetForm.cs - UpdateModeSettings.cs diff --git a/FModel/Forms/TweetForm.Designer.cs b/FModel/Forms/TweetForm.Designer.cs deleted file mode 100644 index 74f6ac0a..00000000 --- a/FModel/Forms/TweetForm.Designer.cs +++ /dev/null @@ -1,193 +0,0 @@ -namespace FModel.Forms -{ - partial class TweetForm - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TweetForm)); - this.richTextBox1 = new System.Windows.Forms.RichTextBox(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.checkBox1 = new System.Windows.Forms.CheckBox(); - this.textBox5 = new System.Windows.Forms.TextBox(); - this.comboBox1 = new System.Windows.Forms.ComboBox(); - this.pictureBox1 = new System.Windows.Forms.PictureBox(); - this.button1 = new System.Windows.Forms.Button(); - this.button2 = new System.Windows.Forms.Button(); - this.label5 = new System.Windows.Forms.Label(); - this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker(); - this.groupBox1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); - this.SuspendLayout(); - // - // richTextBox1 - // - this.richTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.richTextBox1.Location = new System.Drawing.Point(12, 66); - this.richTextBox1.MaxLength = 280; - this.richTextBox1.Name = "richTextBox1"; - this.richTextBox1.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical; - this.richTextBox1.Size = new System.Drawing.Size(386, 178); - this.richTextBox1.TabIndex = 0; - this.richTextBox1.Text = ""; - // - // groupBox1 - // - this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.groupBox1.Controls.Add(this.checkBox1); - this.groupBox1.Controls.Add(this.textBox5); - this.groupBox1.Controls.Add(this.comboBox1); - this.groupBox1.Location = new System.Drawing.Point(12, 12); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(570, 48); - this.groupBox1.TabIndex = 1; - this.groupBox1.TabStop = false; - this.groupBox1.Text = "Settings"; - // - // checkBox1 - // - this.checkBox1.AutoSize = true; - this.checkBox1.Location = new System.Drawing.Point(504, 21); - this.checkBox1.Name = "checkBox1"; - this.checkBox1.Size = new System.Drawing.Size(60, 17); - this.checkBox1.TabIndex = 8; - this.checkBox1.Text = "Reveal"; - this.checkBox1.UseVisualStyleBackColor = true; - this.checkBox1.CheckedChanged += new System.EventHandler(this.CheckBox1_CheckedChanged); - // - // textBox5 - // - this.textBox5.Location = new System.Drawing.Point(149, 19); - this.textBox5.Name = "textBox5"; - this.textBox5.Size = new System.Drawing.Size(349, 20); - this.textBox5.TabIndex = 7; - this.textBox5.UseSystemPasswordChar = true; - this.textBox5.TextChanged += new System.EventHandler(this.TextBox5_TextChanged); - // - // comboBox1 - // - this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.comboBox1.FormattingEnabled = true; - this.comboBox1.Items.AddRange(new object[] { - "Consumer API Key", - "Consumer API Secret", - "Access Token", - "Access Token Secret"}); - this.comboBox1.Location = new System.Drawing.Point(6, 19); - this.comboBox1.Name = "comboBox1"; - this.comboBox1.Size = new System.Drawing.Size(137, 21); - this.comboBox1.TabIndex = 6; - this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.ComboBox1_SelectedIndexChanged); - // - // pictureBox1 - // - this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pictureBox1.Location = new System.Drawing.Point(404, 66); - this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.Size = new System.Drawing.Size(178, 178); - this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pictureBox1.TabIndex = 2; - this.pictureBox1.TabStop = false; - // - // button1 - // - this.button1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(101)))), ((int)(((byte)(214))))); - this.button1.Location = new System.Drawing.Point(507, 250); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(75, 23); - this.button1.TabIndex = 3; - this.button1.Text = "Tweet"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.Button1_Click); - // - // button2 - // - this.button2.Location = new System.Drawing.Point(404, 250); - this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(75, 23); - this.button2.TabIndex = 4; - this.button2.Text = "Add Image"; - this.button2.UseVisualStyleBackColor = true; - this.button2.Click += new System.EventHandler(this.Button2_Click); - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(12, 255); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(40, 13); - this.label5.TabIndex = 5; - this.label5.Text = "Status:"; - // - // backgroundWorker1 - // - this.backgroundWorker1.DoWork += new System.ComponentModel.DoWorkEventHandler(this.BackgroundWorker1_DoWork); - this.backgroundWorker1.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.BackgroundWorker1_RunWorkerCompleted); - // - // TweetForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(594, 282); - this.Controls.Add(this.label5); - this.Controls.Add(this.button2); - this.Controls.Add(this.button1); - this.Controls.Add(this.pictureBox1); - this.Controls.Add(this.groupBox1); - this.Controls.Add(this.richTextBox1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "TweetForm"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "Twitter"; - this.groupBox1.ResumeLayout(false); - this.groupBox1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.RichTextBox richTextBox1; - private System.Windows.Forms.GroupBox groupBox1; - private System.Windows.Forms.PictureBox pictureBox1; - private System.Windows.Forms.Button button1; - private System.Windows.Forms.Button button2; - private System.Windows.Forms.Label label5; - private System.ComponentModel.BackgroundWorker backgroundWorker1; - private System.Windows.Forms.ComboBox comboBox1; - private System.Windows.Forms.TextBox textBox5; - private System.Windows.Forms.CheckBox checkBox1; - } -} \ No newline at end of file diff --git a/FModel/Forms/TweetForm.cs b/FModel/Forms/TweetForm.cs deleted file mode 100644 index 19e9b348..00000000 --- a/FModel/Forms/TweetForm.cs +++ /dev/null @@ -1,169 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.IO; -using System.Windows.Forms; -using TweetSharp; - -namespace FModel.Forms -{ - public partial class TweetForm : Form - { - private static string ImagePath { get; set; } - private static TwitterService service { get; set; } - - public TweetForm() - { - InitializeComponent(); - } - - private void Button2_Click(object sender, EventArgs e) - { - ImagePath = null; - pictureBox1.Image = null; - - OpenFileDialog theDialog = new OpenFileDialog(); - theDialog.InitialDirectory = App.DefaultOutputPath + "\\Icons\\"; - theDialog.Title = @"Choose your image"; - theDialog.Filter = @"PNG Files (*.png)|*.png|JPEG Files (*.jpg)|*.jpg|BMP Files (*.bmp)|*.bmp|All Files (*.*)|*.*"; - - if (theDialog.ShowDialog() == DialogResult.OK) - { - ImagePath = theDialog.FileName; - pictureBox1.Image = Image.FromFile(ImagePath); - } - } - - private void Button1_Click(object sender, EventArgs e) - { - if (backgroundWorker1.IsBusy != true && !string.IsNullOrEmpty(richTextBox1.Text)) - { - backgroundWorker1.RunWorkerAsync(); - } - } - - private void BackgroundWorker1_DoWork(object sender, DoWorkEventArgs e) - { - label5.ForeColor = Color.FromArgb(255, 0, 0, 0); - string tweetText = ""; - Invoke(new Action(() => - { - tweetText = richTextBox1.Text; - })); - - Properties.Settings.Default.Save(); - if (service == null) - { - service = new TwitterService(Properties.Settings.Default.tConsKey, Properties.Settings.Default.tConsSecret); - service.AuthenticateWith(Properties.Settings.Default.tToken, Properties.Settings.Default.tTokenSecret); - UpdateStatus("Authentication to Twitter"); - } - - Dictionary myDict = new Dictionary(); - if (pictureBox1.Image != null) - { - if (new System.IO.FileInfo(ImagePath).Length < 5000000) - { - myDict.Add(Path.GetFileNameWithoutExtension(ImagePath), new FileStream(ImagePath, FileMode.Open, FileAccess.Read, FileShare.Read)); - } - else - { - throw new ArgumentException("File size can't be larger than 5mb."); - } - } - -#pragma warning disable CS0618 - if (pictureBox1.Image != null) - { - UpdateStatus("Tweeting with " + Path.GetFileNameWithoutExtension(ImagePath)); - TwitterStatus response = service.SendTweetWithMedia(new SendTweetWithMediaOptions - { - Status = tweetText, - Images = myDict - }); - } - else - { - UpdateStatus("Tweeting without image"); - TwitterStatus response = service.SendTweet(new SendTweetOptions - { - Status = tweetText - }); - } -#pragma warning restore CS0618 - } - - private void BackgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) - { - if (e.Error != null) - { - label5.ForeColor = Color.FromArgb(255, 244, 66, 66); - label5.Text = "Status: " + e.Error.Message; - } - else - { - label5.ForeColor = Color.FromArgb(255, 43, 135, 28); - label5.Text = "Status: Tweeted"; - } - } - - private void UpdateStatus(string text) - { - if (label5.InvokeRequired) - { - BeginInvoke(new Action(UpdateStatus), new object[] { text }); - return; - } - - label5.Text = "Status: " + text; - } - - private void ComboBox1_SelectedIndexChanged(object sender, EventArgs e) - { - if (comboBox1.SelectedIndex == 0) - { - textBox5.Text = Properties.Settings.Default.tConsKey; - } - if (comboBox1.SelectedIndex == 1) - { - textBox5.Text = Properties.Settings.Default.tConsSecret; - } - if (comboBox1.SelectedIndex == 2) - { - textBox5.Text = Properties.Settings.Default.tToken; - } - if (comboBox1.SelectedIndex == 3) - { - textBox5.Text = Properties.Settings.Default.tTokenSecret; - } - } - - private void CheckBox1_CheckedChanged(object sender, EventArgs e) - { - textBox5.UseSystemPasswordChar = !checkBox1.Checked; - } - - private void TextBox5_TextChanged(object sender, EventArgs e) - { - if (comboBox1.SelectedIndex == 0) - { - Properties.Settings.Default.tConsKey = textBox5.Text.Replace(" ", string.Empty); - } - if (comboBox1.SelectedIndex == 1) - { - Properties.Settings.Default.tConsSecret = textBox5.Text.Replace(" ", string.Empty); - } - if (comboBox1.SelectedIndex == 2) - { - Properties.Settings.Default.tToken = textBox5.Text.Replace(" ", string.Empty); - } - if (comboBox1.SelectedIndex == 3) - { - Properties.Settings.Default.tTokenSecret = textBox5.Text.Replace(" ", string.Empty); - } - - Properties.Settings.Default.Save(); - } - } -} diff --git a/FModel/Forms/TweetForm.resx b/FModel/Forms/TweetForm.resx deleted file mode 100644 index cdf63481..00000000 --- a/FModel/Forms/TweetForm.resx +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - - - - AAABAAEAAAAAAAEAIADDGQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgGAAAAXHKoZgAAGYpJ - REFUeNrtnXmUXFW1xn+d7gxkIAmZCCQQIyAIAdRoIqhB8AUZnPApzoKIE+ADl7PykIf6fCL6HJ4DIoMI - ouIYRSAkiBBRlIQwhkEgIRDI3CF0OkN3vz++U+amUt3p6q5bde6932+tu9Kp7k7qnjr7u/vss/c+YIwx - xhhjjDHGGGOMMcYYY4wxxhhjjDHGGGOMMcYYY4wxxhhjjDHGGGOMMcYYY4wxxhhjjDHGGGOMMcYYY4wx - xhhjjDHGGGOMMcYYY4wxxphd0eQh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cYYY4wxxhhjjDHGGGOMMcYYY4wxxhhjjDFZ4P8B/XGV - UwXmhiUAAAAASUVORK5CYII= - - - \ No newline at end of file diff --git a/FModel/MainWindow.Designer.cs b/FModel/MainWindow.Designer.cs index 8f4374c5..d797ac3f 100644 --- a/FModel/MainWindow.Designer.cs +++ b/FModel/MainWindow.Designer.cs @@ -60,8 +60,6 @@ namespace FModel this.autoSaveImagesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); this.mergeImagesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); - this.tweetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aboutFModelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.panel1 = new System.Windows.Forms.Panel(); @@ -171,46 +169,46 @@ namespace FModel // loadOneToolStripMenuItem // this.loadOneToolStripMenuItem.Name = "loadOneToolStripMenuItem"; - this.loadOneToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.loadOneToolStripMenuItem.Size = new System.Drawing.Size(175, 22); this.loadOneToolStripMenuItem.Text = "Load One PAK"; this.loadOneToolStripMenuItem.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.loadOneToolStripMenuItem_DropDownItemClicked); // // loadAllToolStripMenuItem // this.loadAllToolStripMenuItem.Name = "loadAllToolStripMenuItem"; - this.loadAllToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.loadAllToolStripMenuItem.Size = new System.Drawing.Size(175, 22); this.loadAllToolStripMenuItem.Text = "Load All PAKs"; this.loadAllToolStripMenuItem.Click += new System.EventHandler(this.loadAllToolStripMenuItem_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(177, 6); + this.toolStripSeparator1.Size = new System.Drawing.Size(172, 6); // // downloadBackupsToolStripMenuItem // this.downloadBackupsToolStripMenuItem.Name = "downloadBackupsToolStripMenuItem"; - this.downloadBackupsToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.downloadBackupsToolStripMenuItem.Size = new System.Drawing.Size(175, 22); this.downloadBackupsToolStripMenuItem.Text = "Download Backups"; this.downloadBackupsToolStripMenuItem.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.DownloadBackupsToolStripMenuItem_DropDownItemClicked); // // backupPAKsToolStripMenuItem // this.backupPAKsToolStripMenuItem.Name = "backupPAKsToolStripMenuItem"; - this.backupPAKsToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.backupPAKsToolStripMenuItem.Size = new System.Drawing.Size(175, 22); this.backupPAKsToolStripMenuItem.Text = "Backup PAKs"; this.backupPAKsToolStripMenuItem.Click += new System.EventHandler(this.backupPAKsToolStripMenuItem_Click); // // toolStripSeparator8 // this.toolStripSeparator8.Name = "toolStripSeparator8"; - this.toolStripSeparator8.Size = new System.Drawing.Size(177, 6); + this.toolStripSeparator8.Size = new System.Drawing.Size(172, 6); // // differenceModeToolStripMenuItem // this.differenceModeToolStripMenuItem.CheckOnClick = true; this.differenceModeToolStripMenuItem.Name = "differenceModeToolStripMenuItem"; - this.differenceModeToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.differenceModeToolStripMenuItem.Size = new System.Drawing.Size(175, 22); this.differenceModeToolStripMenuItem.Text = "Difference Mode"; this.differenceModeToolStripMenuItem.CheckedChanged += new System.EventHandler(this.differenceModeToolStripMenuItem_CheckedChanged); // @@ -219,21 +217,21 @@ namespace FModel this.updateModeToolStripMenuItem.CheckOnClick = true; this.updateModeToolStripMenuItem.Enabled = false; this.updateModeToolStripMenuItem.Name = "updateModeToolStripMenuItem"; - this.updateModeToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.updateModeToolStripMenuItem.Size = new System.Drawing.Size(175, 22); this.updateModeToolStripMenuItem.Text = "Update Mode"; this.updateModeToolStripMenuItem.CheckedChanged += new System.EventHandler(this.updateModeToolStripMenuItem_CheckedChanged); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(177, 6); + this.toolStripSeparator2.Size = new System.Drawing.Size(172, 6); // // settingsToolStripMenuItem // this.settingsToolStripMenuItem.Image = global::FModel.Properties.Resources.properties_16xLG; this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem"; this.settingsToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F1; - this.settingsToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.settingsToolStripMenuItem.Size = new System.Drawing.Size(175, 22); this.settingsToolStripMenuItem.Text = "Settings"; this.settingsToolStripMenuItem.Click += new System.EventHandler(this.settingsToolStripMenuItem_Click); // @@ -310,9 +308,7 @@ namespace FModel this.saveImageToolStripMenuItem, this.autoSaveImagesToolStripMenuItem, this.toolStripSeparator3, - this.mergeImagesToolStripMenuItem, - this.toolStripSeparator4, - this.tweetToolStripMenuItem}); + this.mergeImagesToolStripMenuItem}); this.imageToolStripMenuItem.Name = "imageToolStripMenuItem"; this.imageToolStripMenuItem.Size = new System.Drawing.Size(52, 20); this.imageToolStripMenuItem.Text = "Image"; @@ -343,19 +339,6 @@ namespace FModel this.mergeImagesToolStripMenuItem.Text = "Merge Images"; this.mergeImagesToolStripMenuItem.Click += new System.EventHandler(this.mergeImagesToolStripMenuItem_Click); // - // toolStripSeparator4 - // - this.toolStripSeparator4.Name = "toolStripSeparator4"; - this.toolStripSeparator4.Size = new System.Drawing.Size(177, 6); - // - // tweetToolStripMenuItem - // - this.tweetToolStripMenuItem.Name = "tweetToolStripMenuItem"; - this.tweetToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F4; - this.tweetToolStripMenuItem.Size = new System.Drawing.Size(180, 22); - this.tweetToolStripMenuItem.Text = "[BETA] Tweet"; - this.tweetToolStripMenuItem.Click += new System.EventHandler(this.TweetToolStripMenuItem_Click); - // // helpToolStripMenuItem // this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -368,7 +351,7 @@ namespace FModel // this.aboutFModelToolStripMenuItem.Image = global::FModel.Properties.Resources.StatusAnnotations_Information_16xLG_color; this.aboutFModelToolStripMenuItem.Name = "aboutFModelToolStripMenuItem"; - this.aboutFModelToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.aboutFModelToolStripMenuItem.Size = new System.Drawing.Size(150, 22); this.aboutFModelToolStripMenuItem.Text = "About FModel"; this.aboutFModelToolStripMenuItem.Click += new System.EventHandler(this.aboutFModelToolStripMenuItem_Click); // @@ -729,8 +712,6 @@ namespace FModel private System.Windows.Forms.ToolStripMenuItem copyFilePathWithoutExtensionToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem copyFileNameWithoutExtensionToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem saveAsJSONToolStripMenuItem1; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; - private System.Windows.Forms.ToolStripMenuItem tweetToolStripMenuItem; private System.Windows.Forms.ContextMenuStrip contextMenuStrip2; private System.Windows.Forms.ToolStripMenuItem extractFolderContentsToolStripMenuItem; private System.Windows.Forms.ToolStripSeparator toolStripSeparator5; diff --git a/FModel/MainWindow.cs b/FModel/MainWindow.cs index 4c03dac1..9f978da0 100644 --- a/FModel/MainWindow.cs +++ b/FModel/MainWindow.cs @@ -1319,18 +1319,6 @@ namespace FModel else Application.OpenForms[mergeImagesForm.Name].Focus(); } - private void TweetToolStripMenuItem_Click(object sender, EventArgs e) - { - var twitterForm = new TweetForm(); - if (Application.OpenForms[twitterForm.Name] == null) - { - twitterForm.Show(); - } - else - { - Application.OpenForms[twitterForm.Name].Focus(); - } - } #endregion #region FILES TOOLSTRIP diff --git a/FModel/MainWindow.resx b/FModel/MainWindow.resx index 493cb44e..63a0a6ab 100644 --- a/FModel/MainWindow.resx +++ b/FModel/MainWindow.resx @@ -131,7 +131,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABa - CAAAAk1TRnQBSQFMAgEBAgEAATABAgEwAQIBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo + CAAAAk1TRnQBSQFMAgEBAgEAATgBAgE4AQIBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA diff --git a/FModel/Methods/IconGenerator/ChallengeGenerator/BundleDesign.cs b/FModel/Methods/IconGenerator/ChallengeGenerator/BundleDesign.cs index 5d6b2a3f..bc19512b 100644 --- a/FModel/Methods/IconGenerator/ChallengeGenerator/BundleDesign.cs +++ b/FModel/Methods/IconGenerator/ChallengeGenerator/BundleDesign.cs @@ -83,14 +83,11 @@ namespace FModel } toDrawOn.FillRectangle(new SolidBrush(headerColor), new Rectangle(-1, -1, myBitmap.Width + 1, 257)); - if (Settings.Default.isChallengesTheme) + if (Settings.Default.isChallengesTheme && File.Exists(Settings.Default.challengesBannerFileName)) { - if (File.Exists(Settings.Default.challengesBannerFileName)) - { - Image banner = Image.FromFile(Settings.Default.challengesBannerFileName); - var opacityImage = ImageUtilities.SetImageOpacity(banner, (float)Settings.Default.challengesOpacity / 1000); - toDrawOn.DrawImage(ImageUtilities.ResizeImage(opacityImage, 1024, 256), 0, 0); - } + Image banner = Image.FromFile(Settings.Default.challengesBannerFileName); + var opacityImage = ImageUtilities.SetImageOpacity(banner, (float)Settings.Default.challengesOpacity / 1000); + toDrawOn.DrawImage(ImageUtilities.ResizeImage(opacityImage, 1024, 256), 0, 0); } else { @@ -310,21 +307,54 @@ namespace FModel all = SearchResource.getTextByKey("CompletionRewardFormat_All", "Complete ALL CHALLENGES to earn the reward item", "AthenaChallengeDetailsEntry"); any = SearchResource.getTextByKey("CompletionRewardFormat", "Complete ANY " + count + " CHALLENGES to earn the reward item", "AthenaChallengeDetailsEntry"); + //because HtmlAgilityPack fail to detect the end of the tag when it's + if (all.Contains("")) { all = all.Replace("", ""); } + if (any.Contains("")) { any = any.Replace("", ""); } + HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument(); doc.LoadHtml(all); if (doc.DocumentNode.InnerText.Contains(" {0}")) //avoid white space { - all = doc.DocumentNode.InnerText.Replace(" {0}", string.Empty); + if (all.Contains("")) + { + all = doc.DocumentNode.InnerText.Replace(doc.DocumentNode.SelectSingleNode("text").InnerText, doc.DocumentNode.SelectSingleNode("text").InnerText.ToUpper()); + all = all.Replace(" {0}", string.Empty); + } + else { all = doc.DocumentNode.InnerText.Replace(" {0}", string.Empty); } + } + else + { + if (all.Contains("")) + { + all = doc.DocumentNode.InnerText.Replace(doc.DocumentNode.SelectSingleNode("text").InnerText, doc.DocumentNode.SelectSingleNode("text").InnerText.ToUpper()); + all = all.Replace("{0}", string.Empty); + } + else { all = doc.DocumentNode.InnerText.Replace("{0}", string.Empty); } } - else { all = doc.DocumentNode.InnerText.Replace("{0}", string.Empty); } doc = new HtmlAgilityPack.HtmlDocument(); doc.LoadHtml(any); if (doc.DocumentNode.InnerText.Contains("{QuestNumber}")) //russian { - any = doc.DocumentNode.InnerText.Replace("{QuestNumber}", count); + if (any.Contains("")) + { + any = doc.DocumentNode.InnerText.Replace(doc.DocumentNode.SelectSingleNode("text").InnerText, doc.DocumentNode.SelectSingleNode("text").InnerText.ToUpper()); + any = any.Replace("{QuestNumber}", count); + } + else { any = doc.DocumentNode.InnerText.Replace("{QuestNumber}", count); } } - else { any = string.Format(doc.DocumentNode.InnerText, count); } + else + { + if (any.Contains("")) + { + any = doc.DocumentNode.InnerText.Replace(doc.DocumentNode.SelectSingleNode("text").InnerText, doc.DocumentNode.SelectSingleNode("text").InnerText.ToUpper()); + any = string.Format(any, count); + } + else { any = string.Format(doc.DocumentNode.InnerText, count); } + } + + if (all.Contains(" ")) { all = all.Replace(" ", " "); } //double space in Spanish (LA) i.e. with QuestBundle_PirateParty + if (any.Contains(" ")) { any = any.Replace(" ", " "); } break; default: break; diff --git a/FModel/Properties/Settings.Designer.cs b/FModel/Properties/Settings.Designer.cs index b7a0598b..73cf90c5 100644 --- a/FModel/Properties/Settings.Designer.cs +++ b/FModel/Properties/Settings.Designer.cs @@ -227,54 +227,6 @@ namespace FModel.Properties { } } - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("")] - public string tConsKey { - get { - return ((string)(this["tConsKey"])); - } - set { - this["tConsKey"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("")] - public string tConsSecret { - get { - return ((string)(this["tConsSecret"])); - } - set { - this["tConsSecret"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("")] - public string tToken { - get { - return ((string)(this["tToken"])); - } - set { - this["tToken"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("")] - public string tTokenSecret { - get { - return ((string)(this["tTokenSecret"])); - } - set { - this["tTokenSecret"] = value; - } - } - [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("")] diff --git a/FModel/Properties/Settings.settings b/FModel/Properties/Settings.settings index c008ebed..9fda440b 100644 --- a/FModel/Properties/Settings.settings +++ b/FModel/Properties/Settings.settings @@ -53,18 +53,6 @@ True - - - - - - - - - - - - diff --git a/README.md b/README.md index 14fea0af..47710f16 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ - _I'm sure the key is correct but opening the file with this key isn't working_ - First, make sure `C:\Windows\System32\vcruntime140.dll` isn't missing. If it's missing you can download it by installing [Microsoft Visual C++ Redistributable](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads). - - If it's not missing you can open on issue on GitHub or contact us on Twitter @AsvalFN @MaikyMOficial @iFireMonkey + - If it's not missing you can open on issue on GitHub or contact us on Twitter [@AsvalFN](https://twitter.com/AsvalFN) [@MaikyMOficial](https://twitter.com/MaikyMOficial) [@iFireMonkey](https://twitter.com/iFireMonkey) - _I can't compile the solution on Visual Studio_ @@ -86,7 +86,6 @@ If you find this project useful, feel free to give it a :star: thank you :kissin 2. Icon Creation for various BR/STW Cosmetics or Challenges with language support 3. Icon Merger 4. Automatic Key Detection for Dynamic PAKs - 5. Twitter API Authentication to send Tweets from within FModel ### What I'm using - [Fortnite Asset Parser](https://github.com/SirWaddles/JohnWickParse) - *C# Bind* - [AutoUpdater.NET](https://github.com/ravibpatel/AutoUpdater.NET)