- Added a companion global var array for $AudioChannelsName[x] as well as utilizing $AudioChannelCount for keeping better tabs on the active defined audio channels. This allows modules to establish new channels more easily

- Updated the handling of the option slider entries to utilize temp vars and properly complied the audio channel options to the new setup
- Fixed issue where behavior of slider was erratic because of improperly defined tick count
- Added logic to check if audio sliders were changed for the 'check unchanged settings' logic
- Made the keybind remap inputCtrl ignore axis events
- Made the MessageBoxDlg input commands properly check for key makes, to prevent messages boxes from catching key breaks and blowing past follow-up messageboxes accidentally
- Fixed forward/backward iteration of options entries, especially on dpad, and added handling for gamepad stick to do the same
- Added logic so option sliders can also be manipulated by the forward/backward to make it standard for all
- Fixed erroneous marking of "restart required" message as true if any settings change, and not just settings expressly flagged as requiring a restart
This commit is contained in:
Areloch 2024-01-01 01:42:53 -06:00
parent 67ac556ecd
commit e71880b898
4 changed files with 90 additions and 19 deletions

View file

@ -309,17 +309,26 @@ function sfxAutodetect()
//-----------------------------------------------------------------------------
// Volume channel IDs for backwards-compatibility.
$AudioChannelCount = 5;
$GuiAudioType = 1; // Interface.
$SimAudioType = 2; // Game.
$MessageAudioType = 3; // Notifications.
$MusicAudioType = 4; // Music.
$AudioChannels[ 0 ] = AudioChannelDefault;
$AudioChannelsName[ 0 ] = "Master";
$AudioChannels[ $GuiAudioType ] = AudioChannelGui;
$AudioChannelsName[ $GuiAudioType ] = "Gui";
$AudioChannels[ $SimAudioType ] = AudioChannelEffects;
$AudioChannelsName[ $SimAudioType ] = "Effects";
$AudioChannels[ $MessageAudioType ] = AudioChannelMessages;
$AudioChannelsName[ $MessageAudioType ] = "Messages";
$AudioChannels[ $MusicAudioType ] = AudioChannelMusic;
$AudioChannelsName[ $MusicAudioType ] = "Music";
function sfxOldChannelToGroup( %channel )
{