mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-22 01:06:35 +00:00
Changed "Unused" category to "Build Off" in parameter enum
This commit is contained in:
@@ -34,7 +34,7 @@ namespace PckStudio.FileFormats
|
||||
Battle,
|
||||
Tumble,
|
||||
Glide,
|
||||
Unused,
|
||||
BuildOff,
|
||||
}
|
||||
|
||||
public enum EAudioParameterType : int
|
||||
@@ -110,7 +110,7 @@ namespace PckStudio.FileFormats
|
||||
public AudioCategory GetCategory(AudioCategory.EAudioType category)
|
||||
{
|
||||
if (category < AudioCategory.EAudioType.Overworld ||
|
||||
category > AudioCategory.EAudioType.Unused)
|
||||
category > AudioCategory.EAudioType.BuildOff)
|
||||
throw new InvalidCategoryException(nameof(category));
|
||||
return _categories[(int)category];
|
||||
}
|
||||
@@ -132,7 +132,7 @@ namespace PckStudio.FileFormats
|
||||
public bool AddCategory(AudioCategory.EAudioParameterType parameterType, AudioCategory.EAudioType category, string name = "")
|
||||
{
|
||||
if (category < AudioCategory.EAudioType.Overworld ||
|
||||
category > AudioCategory.EAudioType.Unused)
|
||||
category > AudioCategory.EAudioType.BuildOff)
|
||||
throw new InvalidCategoryException(nameof(category));
|
||||
bool exists = HasCategory(category);
|
||||
if (!exists)
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace PckStudio.Forms.Editor
|
||||
|
||||
private string GetCategoryFromId(PckAudioFile.AudioCategory.EAudioType categoryId)
|
||||
=> categoryId >= PckAudioFile.AudioCategory.EAudioType.Overworld &&
|
||||
categoryId <= PckAudioFile.AudioCategory.EAudioType.Unused
|
||||
categoryId <= PckAudioFile.AudioCategory.EAudioType.BuildOff
|
||||
? Categories[(int)categoryId]
|
||||
: "Not valid";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user