Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect Remote BossHP Settings Url #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions EventMapHpViewer/EventMapHpViewer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@
<Compile Include="Models\TpExtensions.cs" />
<Compile Include="Models\TransportCapacity.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<Compile Include="ViewModels\Settings\BossSettingsViewModel.cs" />
<Compile Include="ViewModels\Settings\SettingsViewModel.cs" />
<Compile Include="ViewModels\Settings\TpSettingsViewModel.cs" />
Expand Down Expand Up @@ -217,6 +222,10 @@
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Analyzer Include="..\packages\KanColleViewer.PluginAnalyzer.1.1.1.0\analyzers\KanColleViewer.Composition.dll" />
Expand Down
2 changes: 1 addition & 1 deletion EventMapHpViewer/Models/Settings/MapHpSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static class MapHpSettings

public static SerializableProperty<string> RemoteBossSettingsUrl { get; }
= new SerializableProperty<string>(GetKey(), roamingProvider,
"https://kctadilstorage.blob.core.windows.net/viewer/maphp/{mapId}/{rank}/{gaugeNum}.json"
Properties.Settings.Default.RemoteBossSettings
) { AutoSave = true };

#endregion
Expand Down
36 changes: 36 additions & 0 deletions EventMapHpViewer/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions EventMapHpViewer/Properties/Settings.settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="EventMapHpViewer.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="RemoteBossSettings" Type="System.String" Scope="Application">
<Value Profile="(Default)">https://raw.githubusercontent.com/laserdark/KanColleToolsetResources/master/EventMapHPViewer/{mapId}/{rank}/{gaugeNum}.json</Value>
</Setting>
</Settings>
</SettingsFile>
14 changes: 13 additions & 1 deletion EventMapHpViewer/app.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="EventMapHpViewer.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
Expand All @@ -8,4 +13,11 @@
</dependentAssembly>
</assemblyBinding>
</runtime>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" /></startup></configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" /></startup><applicationSettings>
<EventMapHpViewer.Properties.Settings>
<setting name="RemoteBossSettings" serializeAs="String">
<value>https://raw.githubusercontent.com/laserdark/KanColleToolsetResources/master/EventMapHPViewer/{mapId}/{rank}/{gaugeNum}.json</value>
</setting>
</EventMapHpViewer.Properties.Settings>
</applicationSettings>
</configuration>