Merge pull request #24 from iAmAsval/creative_gallery_icons

Add icon generation support for Creative Galleries
This commit is contained in:
TSG 2019-06-21 18:01:14 -04:00 committed by GitHub
commit 2b9fc32351
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 31 additions and 6 deletions

View File

@ -139,6 +139,9 @@
<setting name="challengesWatermark" serializeAs="String">
<value />
</setting>
<setting name="createIconForCreativeGalleries" serializeAs="String">
<value>False</value>
</setting>
</FModel.Properties.Settings>
</userSettings>
<runtime>

View File

@ -58,7 +58,8 @@
"Ammo",
"STW Heroes",
"STW Defenders",
"STW Card Packs"});
"STW Card Packs",
"Creative Galleries"});
this.checkedAssets.Location = new System.Drawing.Point(12, 12);
this.checkedAssets.Name = "checkedAssets";
this.checkedAssets.Size = new System.Drawing.Size(307, 274);

View File

@ -19,6 +19,7 @@ namespace FModel.Forms
checkedAssets.SetItemChecked(6, Properties.Settings.Default.createIconForSTWHeroes);
checkedAssets.SetItemChecked(7, Properties.Settings.Default.createIconForSTWDefenders);
checkedAssets.SetItemChecked(8, Properties.Settings.Default.createIconForSTWCardPacks);
checkedAssets.SetItemChecked(9, Properties.Settings.Default.createIconForCreativeGalleries);
}
private void OKButton_Click(object sender, EventArgs e)
@ -33,6 +34,7 @@ namespace FModel.Forms
Properties.Settings.Default.createIconForSTWHeroes = checkedAssets.GetItemChecked(6);
Properties.Settings.Default.createIconForSTWDefenders = checkedAssets.GetItemChecked(7);
Properties.Settings.Default.createIconForSTWCardPacks = checkedAssets.GetItemChecked(8);
Properties.Settings.Default.createIconForCreativeGalleries = checkedAssets.GetItemChecked(9);
Properties.Settings.Default.Save(); //SAVE
Close();

View File

@ -1261,6 +1261,10 @@ namespace FModel
{
pictureBox1.Image = CreateItemIcon(itemId[i]);
}
else if (Settings.Default.createIconForCreativeGalleries && (itemId[i].ExportType == "FortPlaysetGrenadeItemDefinition"))
{
pictureBox1.Image = CreateItemIcon(itemId[i]);
}
else if (itemId[i].ExportType == "FortChallengeBundleItemDefinition")
{
CreateBundleChallengesIcon(itemId[i], parsedJson, questJson);

View File

@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Ce code a été généré par un outil.
// Version du runtime :4.0.30319.42000
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
// le code est régénéré.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
@ -12,7 +12,7 @@ namespace FModel.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.1.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@ -538,5 +538,17 @@ namespace FModel.Properties {
this["challengesWatermark"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool createIconForCreativeGalleries {
get {
return ((bool)(this["createIconForCreativeGalleries"]));
}
set {
this["createIconForCreativeGalleries"] = value;
}
}
}
}

View File

@ -131,5 +131,8 @@
<Setting Name="challengesWatermark" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="createIconForCreativeGalleries" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
</Settings>
</SettingsFile>