Skip to content

Commit

Permalink
Merge branch 'release/3.1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
paralleltree committed May 8, 2021
2 parents 7cbfee8 + 2a24300 commit 6cf34c2
Show file tree
Hide file tree
Showing 24 changed files with 1,480 additions and 388 deletions.
16 changes: 16 additions & 0 deletions Ched/Ched.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@
<Compile Include="Plugins\SlideSplitter.cs" />
<Compile Include="Plugins\SusExportPlugin.cs" />
<Compile Include="UI\Helpers.cs" />
<Compile Include="UI\Shortcuts\Commands.cs" />
<Compile Include="UI\Shortcuts\KeyExtensions.cs" />
<Compile Include="UI\Shortcuts\ShortcutCommandSource.cs" />
<Compile Include="UI\Shortcuts\ShortcutKeySource.cs" />
<Compile Include="UI\Shortcuts\ShortcutManager.cs" />
<Compile Include="UI\Shortcuts\ToolStripItemBuilder.cs" />
<Compile Include="UI\Windows\Behaviors\HideWindowCloseButtonBehavior.cs" />
<Compile Include="UI\Windows\Behaviors\InitialFocusBehavior.cs" />
<Compile Include="UI\Windows\Behaviors\OpenFileBehavior.cs" />
<Compile Include="UI\Windows\Behaviors\StyleBehaviorCollection.cs" />
Expand Down Expand Up @@ -243,13 +250,18 @@
<DependentUpon>VersionInfoForm.cs</DependentUpon>
</Compile>
<Compile Include="UI\Windows\Converters\BitmapImageSourceConverter.cs" />
<Compile Include="UI\Windows\Converters\ShortcutKeyTextConverter.cs" />
<Compile Include="UI\Windows\DiagnosticsWindow.xaml.cs">
<DependentUpon>DiagnosticsWindow.xaml</DependentUpon>
</Compile>
<Compile Include="UI\Windows\EnumSourceProvider.cs" />
<Compile Include="UI\Windows\ShortcutSettingsWindow.xaml.cs">
<DependentUpon>ShortcutSettingsWindow.xaml</DependentUpon>
</Compile>
<Compile Include="UI\Windows\SusExportWindow.xaml.cs">
<DependentUpon>SusExportWindow.xaml</DependentUpon>
</Compile>
<Compile Include="UI\Windows\ViewModel.cs" />
<Compile Include="UI\Windows\WpfExtensions.cs" />
<EmbeddedResource Include="Localization\ErrorStrings.en.resx" />
<EmbeddedResource Include="Localization\ErrorStrings.resx">
Expand Down Expand Up @@ -452,6 +464,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="UI\Windows\ShortcutSettingsWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="UI\Windows\SusExportWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
Expand Down
7 changes: 4 additions & 3 deletions Ched/Components/Exporter/SusExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Globalization;
using System.IO;
using System.Text;
using System.Threading.Tasks;
Expand Down Expand Up @@ -44,7 +45,7 @@ public void Export(Stream stream)
writer.WriteLine("#PLAYLEVEL {0}", args.PlayLevel);
writer.WriteLine("#SONGID \"{0}\"", args.SongId);
writer.WriteLine("#WAVE \"{0}\"", args.SoundFileName);
writer.WriteLine("#WAVEOFFSET {0}", args.SoundOffset);
writer.WriteLine("#WAVEOFFSET {0}", args.SoundOffset.ToString(CultureInfo.InvariantCulture));
writer.WriteLine("#JACKET \"{0}\"", args.JacketFilePath);
writer.WriteLine();

Expand All @@ -71,7 +72,7 @@ public void Export(Stream stream)
var bpmIdentifiers = EnumerateIdentifiers(2, NumChars.Concat(AlphaChars)).Skip(1).Take(bpmlist.Count).ToList();
foreach (var item in bpmlist.GroupBy(p => p.Index).Select(p => p.First()))
{
writer.WriteLine("#BPM{0}: {1}", bpmIdentifiers[item.Index], item.Value.Bpm);
writer.WriteLine("#BPM{0}: {1}", bpmIdentifiers[item.Index], item.Value.Bpm.ToString(CultureInfo.InvariantCulture));
}

// 小節オフセット追加用に初期BPM定義だけ1行に分離
Expand All @@ -88,7 +89,7 @@ public void Export(Stream stream)
var speeds = book.Score.Events.HighSpeedChangeEvents.Select(p =>
{
var barPos = BarIndexCalculator.GetBarPositionFromTick(p.Tick);
return string.Format("{0}'{1}:{2}", barPos.BarIndex + (p.Tick == 0 ? 0 : BarIndexOffset), barPos.TickOffset, p.SpeedRatio);
return string.Format("{0}'{1}:{2}", barPos.BarIndex + (p.Tick == 0 ? 0 : BarIndexOffset), barPos.TickOffset, p.SpeedRatio.ToString(CultureInfo.InvariantCulture));
});
writer.WriteLine("#TIL00: \"{0}\"", string.Join(", ", speeds));
writer.WriteLine("#HISPEED 00");
Expand Down
45 changes: 45 additions & 0 deletions Ched/Localization/MainFormStrings.Designer.cs

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

15 changes: 15 additions & 0 deletions Ched/Localization/MainFormStrings.en.resx
Original file line number Diff line number Diff line change
Expand Up @@ -318,4 +318,19 @@
<data name="InsertSingleBlankAtBeginning" xml:space="preserve">
<value>Insert a single blank space at the beginning</value>
</data>
<data name="KeyboardShortcuts" xml:space="preserve">
<value>Keyboard Shortcuts</value>
</data>
<data name="Clear" xml:space="preserve">
<value>Clear</value>
</data>
<data name="Command" xml:space="preserve">
<value>Command</value>
</data>
<data name="KeyCombination" xml:space="preserve">
<value>Key Combination</value>
</data>
<data name="ResetAll" xml:space="preserve">
<value>Reset All</value>
</data>
</root>
15 changes: 15 additions & 0 deletions Ched/Localization/MainFormStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -318,4 +318,19 @@
<data name="InsertSingleBlankAtBeginning" xml:space="preserve">
<value>先頭に1小節の空白を挿入する</value>
</data>
<data name="KeyboardShortcuts" xml:space="preserve">
<value>ショートカット設定</value>
</data>
<data name="Clear" xml:space="preserve">
<value>クリア</value>
</data>
<data name="Command" xml:space="preserve">
<value>コマンド</value>
</data>
<data name="KeyCombination" xml:space="preserve">
<value>ショートカットキー</value>
</data>
<data name="ResetAll" xml:space="preserve">
<value>初期化</value>
</data>
</root>
2 changes: 1 addition & 1 deletion Ched/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
[assembly: ComVisible(false)]
[assembly: Guid("4c0c9f98-6fcf-4d2f-b821-37a66362dc75")]

[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyVersion("3.1.0.0")]

[assembly: DisableDpiAwareness]
Loading

0 comments on commit 6cf34c2

Please sign in to comment.