diff --git a/EventMapHpViewer/EventMapHpViewer.csproj b/EventMapHpViewer/EventMapHpViewer.csproj index a8bffc9..16a50ef 100644 --- a/EventMapHpViewer/EventMapHpViewer.csproj +++ b/EventMapHpViewer/EventMapHpViewer.csproj @@ -162,6 +162,11 @@ + + True + True + Settings.settings + @@ -217,6 +222,10 @@ + + SettingsSingleFileGenerator + Settings.Designer.cs + diff --git a/EventMapHpViewer/Models/Settings/MapHpSettings.cs b/EventMapHpViewer/Models/Settings/MapHpSettings.cs index 6e7f6a4..508f1d8 100644 --- a/EventMapHpViewer/Models/Settings/MapHpSettings.cs +++ b/EventMapHpViewer/Models/Settings/MapHpSettings.cs @@ -57,7 +57,7 @@ static class MapHpSettings public static SerializableProperty RemoteBossSettingsUrl { get; } = new SerializableProperty(GetKey(), roamingProvider, - "https://kctadilstorage.blob.core.windows.net/viewer/maphp/{mapId}/{rank}/{gaugeNum}.json" + Properties.Settings.Default.RemoteBossSettings ) { AutoSave = true }; #endregion diff --git a/EventMapHpViewer/Properties/Settings.Designer.cs b/EventMapHpViewer/Properties/Settings.Designer.cs new file mode 100644 index 0000000..525ef9b --- /dev/null +++ b/EventMapHpViewer/Properties/Settings.Designer.cs @@ -0,0 +1,36 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace EventMapHpViewer.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("https://raw.githubusercontent.com/laserdark/KanColleToolsetResources/master/Event" + + "MapHPViewer/{mapId}/{rank}/{gaugeNum}.json")] + public string RemoteBossSettings { + get { + return ((string)(this["RemoteBossSettings"])); + } + } + } +} diff --git a/EventMapHpViewer/Properties/Settings.settings b/EventMapHpViewer/Properties/Settings.settings new file mode 100644 index 0000000..3c1409f --- /dev/null +++ b/EventMapHpViewer/Properties/Settings.settings @@ -0,0 +1,9 @@ + + + + + + https://raw.githubusercontent.com/laserdark/KanColleToolsetResources/master/EventMapHPViewer/{mapId}/{rank}/{gaugeNum}.json + + + \ No newline at end of file diff --git a/EventMapHpViewer/app.config b/EventMapHpViewer/app.config index a2a7ec8..13cf6ff 100644 --- a/EventMapHpViewer/app.config +++ b/EventMapHpViewer/app.config @@ -1,5 +1,10 @@  + + +
+ + @@ -8,4 +13,11 @@ - + + + + https://raw.githubusercontent.com/laserdark/KanColleToolsetResources/master/EventMapHPViewer/{mapId}/{rank}/{gaugeNum}.json + + + +