mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-15 19:28:48 -05:00
[GUI] Add option to display debug info for some assets
This commit is contained in:
@@ -38,6 +38,7 @@ namespace AssetStudioGUI
|
||||
private string tempClipboard;
|
||||
private bool isDarkMode;
|
||||
private GameOptionsForm gameOptionsForm;
|
||||
private bool showAssetDebugInfo;
|
||||
|
||||
#region FMODControl
|
||||
private FMOD.System system;
|
||||
@@ -1138,7 +1139,7 @@ namespace AssetStudioGUI
|
||||
FMODinfoLabel.Text = frequency + " Hz";
|
||||
FMODtimerLabel.Text = $"00:00.00 / {(FMODlenms / 1000 / 60):00}:{(FMODlenms / 1000 % 60):00}.{(FMODlenms / 10 % 100):00}";
|
||||
|
||||
sound.getFormat(out _, out _, out var audioChannels, out _);
|
||||
sound.getFormat(out var soundType, out var soundFormat, out var audioChannels, out _);
|
||||
switch (audioChannels)
|
||||
{
|
||||
case 1:
|
||||
@@ -1151,6 +1152,12 @@ namespace AssetStudioGUI
|
||||
FMODaudioChannelsLabel.Text = $"{audioChannels}-Channel";
|
||||
break;
|
||||
}
|
||||
|
||||
if (showAssetDebugInfo)
|
||||
{
|
||||
assetItem.InfoText += $"\nSound type: {soundType}";
|
||||
assetItem.InfoText += $"\nSound format: {soundFormat}";
|
||||
}
|
||||
}
|
||||
|
||||
private void PreviewVideoClip(AssetItem assetItem, VideoClip m_VideoClip)
|
||||
@@ -2728,6 +2735,11 @@ namespace AssetStudioGUI
|
||||
assetsManager.Options.GameSpecific.CustomUnityVersion = null;
|
||||
}
|
||||
|
||||
private void showAssetDebugInfoToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
showAssetDebugInfo = !showAssetDebugInfo;
|
||||
}
|
||||
|
||||
#region FMOD
|
||||
private void FMODinit()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user