mirror of
https://github.com/SirusDoma/VoxCharger.git
synced 2024-12-02 19:17:16 +01:00
b8f49e3e2d
- Fix naming and other code style issues - Fix `float` and `double` parsing issue when current System Culture comma separator is not `.` - This fixes issue when parsing BPM and other floating numbers. - Fix song selection when the program doesn't support the latest datecode in the future - It will disable Game Version and Infinite Version selection. - Replaced ancient `FolderBrowserDialog` with `CommonFileDialog` - Update default GameVersion and BackgroundId to latest version - Implement Radar information in `LevelEditorForm` - Implement built-in 2DX Encoder - Start Offset / TimeStamp and Fader effect for audio preview is now supported - Audio preview files is no longer divided into multiple files by default when audio files are unique. It still possible to specify unique preview via `LevelEditorForm` - Implement advanced configuration when importing .ksh chart - Add draft codes for Effect Mapping configurations and S3V support - Other Bugfixes and QoL improvements
46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using System;
|
|
|
|
namespace VoxCharger
|
|
{
|
|
public partial class VoxChart
|
|
{
|
|
public enum Section
|
|
{
|
|
NoState = -1,
|
|
FormatVersion = 0,
|
|
BeatInfo = 1,
|
|
BpmInfo = 2,
|
|
Tilt = 3,
|
|
Lyric = 4,
|
|
EndPosition = 5,
|
|
TabEffect = 6,
|
|
FxbuttonEffect = 7,
|
|
TabParam = 8,
|
|
Reverb = 9,
|
|
Track1 = 10,
|
|
Track2 = 11,
|
|
Track3 = 12,
|
|
Track4 = 13,
|
|
Track5 = 14,
|
|
Track6 = 15,
|
|
Track7 = 16,
|
|
Track8 = 17,
|
|
TrackAuto = 18,
|
|
Spcontroler = 19,
|
|
SoundId = 20,
|
|
Bpm = 21
|
|
}
|
|
|
|
public static bool IsTrackSection(Section section)
|
|
{
|
|
int value = (int)section;
|
|
return value >= (int)Section.Track1 && value <= (int)Section.TrackAuto;
|
|
}
|
|
|
|
public static int GetTrackNumber(Section section)
|
|
{
|
|
return IsTrackSection(section) ? ((int)section + 1) - (int)Section.Track1 : -1;
|
|
}
|
|
}
|
|
}
|