mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- fill in the ADL bank menu from the internal table. Some of the names had to be shortened to prevent it from getting too confusing.
This commit is contained in:
parent
4e8588815b
commit
4e012e3765
3 changed files with 44 additions and 23 deletions
|
@ -1381,6 +1381,8 @@ static void InitCrosshairsList()
|
||||||
// Initialize the music configuration submenus
|
// Initialize the music configuration submenus
|
||||||
//
|
//
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
extern const char* const banknames[74];
|
||||||
|
|
||||||
static void InitMusicMenus()
|
static void InitMusicMenus()
|
||||||
{
|
{
|
||||||
DMenuDescriptor **advmenu = MenuDescriptors.CheckKey("AdvSoundOptions");
|
DMenuDescriptor **advmenu = MenuDescriptors.CheckKey("AdvSoundOptions");
|
||||||
|
@ -1418,6 +1420,21 @@ static void InitMusicMenus()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DMenuDescriptor **menu = MenuDescriptors.CheckKey("ADLBankMenu");
|
||||||
|
|
||||||
|
if (menu != nullptr)
|
||||||
|
{
|
||||||
|
if (soundfonts.Size() > 0)
|
||||||
|
{
|
||||||
|
for(int i=0;i<74;i++)
|
||||||
|
{
|
||||||
|
auto it = CreateOptionMenuItemCommand(banknames[i], FStringf("adl_bank %d", i), true);
|
||||||
|
static_cast<DOptionMenuDescriptor*>(*menu)->mItems.Push(it);
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
|
@ -9002,7 +9002,7 @@ int maxAdlBanks()
|
||||||
|
|
||||||
const char* const banknames[74] =
|
const char* const banknames[74] =
|
||||||
{
|
{
|
||||||
"AIL (Star Control 3, Albion, Empire 2, Sensible Soccer, Settlers 2, many others)",
|
"AIL (Star Control 3, Albion, Empire 2, many others)",
|
||||||
"Bisqwit (selection of 4op and 2op)",
|
"Bisqwit (selection of 4op and 2op)",
|
||||||
"HMI (Descent, Asterix)",
|
"HMI (Descent, Asterix)",
|
||||||
"HMI (Descent:: Int)",
|
"HMI (Descent:: Int)",
|
||||||
|
@ -9016,47 +9016,47 @@ const char* const banknames[74] =
|
||||||
"HMI (Aces of the Deep)",
|
"HMI (Aces of the Deep)",
|
||||||
"HMI (Earthsiege)",
|
"HMI (Earthsiege)",
|
||||||
"HMI (Anvil of Dawn)",
|
"HMI (Anvil of Dawn)",
|
||||||
"DMX (Doom :: partially pseudo 4op)",
|
"DMX (Doom)",
|
||||||
"DMX (Hexen, Heretic :: partially pseudo 4op)",
|
"DMX (Hexen, Heretic)",
|
||||||
"DMX (MUS Play :: partially pseudo 4op)",
|
"DMX (MUS Play)",
|
||||||
"AIL (Discworld, Grandest Fleet, Pocahontas, Slob Zone 3d, Ultima 4, Zorro)",
|
"AIL (Discworld, Grandest Fleet)",
|
||||||
"AIL (Warcraft 2)",
|
"AIL (Warcraft 2)",
|
||||||
"AIL (Syndicate)",
|
"AIL (Syndicate)",
|
||||||
"AIL (Guilty, Orion Conspiracy, Terra Nova Strike Force Centauri :: 4op)",
|
"AIL (Guilty, Orion Conspiracy)",
|
||||||
"AIL (Magic Carpet 2)",
|
"AIL (Magic Carpet 2)",
|
||||||
"AIL (Nemesis)",
|
"AIL (Nemesis)",
|
||||||
"AIL (Jagged Alliance)",
|
"AIL (Jagged Alliance)",
|
||||||
"AIL (When Two Worlds War :: 4op, MISSING INSTRUMENTS)",
|
"AIL (When Two Worlds War)",
|
||||||
"AIL (Bards Tale Construction :: MISSING INSTRUMENTS)",
|
"AIL (Bards Tale Construction)",
|
||||||
"AIL (Return to Zork)",
|
"AIL (Return to Zork)",
|
||||||
"AIL (Theme Hospital)",
|
"AIL (Theme Hospital)",
|
||||||
"AIL (National Hockey League PA)",
|
"AIL (National Hockey League PA)",
|
||||||
"AIL (Inherit The Earth)",
|
"AIL (Inherit The Earth)",
|
||||||
"AIL (Inherit The Earth, file two)",
|
"AIL (Inherit The Earth, file two)",
|
||||||
"AIL (Little Big Adventure :: 4op)",
|
"AIL (Little Big Adventure)",
|
||||||
"AIL (Wreckin Crew)",
|
"AIL (Wreckin Crew)",
|
||||||
"AIL (Death Gate)",
|
"AIL (Death Gate)",
|
||||||
"AIL (FIFA International Soccer)",
|
"AIL (FIFA International Soccer)",
|
||||||
"AIL (Starship Invasion)",
|
"AIL (Starship Invasion)",
|
||||||
"AIL (Super Street Fighter 2 :: 4op)",
|
"AIL (Super Street Fighter 2)",
|
||||||
"AIL (Lords of the Realm :: MISSING INSTRUMENTS)",
|
"AIL (Lords of the Realm)",
|
||||||
"AIL (SimFarm, SimHealth :: 4op)",
|
"AIL (SimFarm, SimHealth)",
|
||||||
"AIL (SimFarm, Settlers, Serf City)",
|
"AIL (SimFarm, Settlers, Serf City)",
|
||||||
"AIL (Caesar 2 :: partially 4op, MISSING INSTRUMENTS)",
|
"AIL (Caesar 2, MISSING INSTRUMENTS)",
|
||||||
"AIL (Syndicate Wars)",
|
"AIL (Syndicate Wars)",
|
||||||
"AIL (Bubble Bobble Feat. Rainbow Islands, Z)",
|
"AIL (Bubble Bobble Feat. Rainbow Islands, Z)",
|
||||||
"AIL (Warcraft)",
|
"AIL (Warcraft)",
|
||||||
"AIL (Terra Nova Strike Force Centuri :: partially 4op)",
|
"AIL (Terra Nova Strike Force Centuri)",
|
||||||
"AIL (System Shock :: partially 4op)",
|
"AIL (System Shock)",
|
||||||
"AIL (Advanced Civilization)",
|
"AIL (Advanced Civilization)",
|
||||||
"AIL (Battle Chess 4000 :: partially 4op, melodic only)",
|
"AIL (Battle Chess 4000, melodic only)",
|
||||||
"AIL (Ultimate Soccer Manager :: partially 4op)",
|
"AIL (Ultimate Soccer Manager)",
|
||||||
"AIL (Air Bucks, Blue And The Gray, America Invades, Terminator 2029)",
|
"AIL (Air Bucks, Blue And The Gray)",
|
||||||
"AIL (Ultima Underworld 2)",
|
"AIL (Ultima Underworld 2)",
|
||||||
"AIL (Kasparov's Gambit)",
|
"AIL (Kasparov's Gambit)",
|
||||||
"AIL (High Seas Trader :: MISSING INSTRUMENTS)",
|
"AIL (High Seas Trader)",
|
||||||
"AIL (Master of Magic, Master of Orion 2 :: 4op, std percussion)",
|
"AIL (Master of Magic, std percussion)",
|
||||||
"AIL (Master of Magic, Master of Orion 2 :: 4op, orchestral percussion)",
|
"AIL (Master of Magic, orchestral percussion)",
|
||||||
"SB (Action Soccer)",
|
"SB (Action Soccer)",
|
||||||
"SB (3d Cyberpuck :: melodic only)",
|
"SB (3d Cyberpuck :: melodic only)",
|
||||||
"SB (Simon the Sorcerer :: melodic only)",
|
"SB (Simon the Sorcerer :: melodic only)",
|
||||||
|
|
|
@ -1687,6 +1687,11 @@ OptionMenu FluidPatchsetMenu protected
|
||||||
Title "$ADVSNDMNU_SELCONFIG"
|
Title "$ADVSNDMNU_SELCONFIG"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
OptionMenu ADLBankMenu protected
|
||||||
|
{
|
||||||
|
Title "$ADVSNDMNU_OPLBANK"
|
||||||
|
}
|
||||||
|
|
||||||
/*=======================================
|
/*=======================================
|
||||||
*
|
*
|
||||||
* Module Replayer Options Menu
|
* Module Replayer Options Menu
|
||||||
|
@ -1811,8 +1816,7 @@ OptionMenu ModReplayerOptions protected
|
||||||
OptionMenu ADLOptions protected
|
OptionMenu ADLOptions protected
|
||||||
{
|
{
|
||||||
Title "$ADVSNDMNU_ADLMIDI"
|
Title "$ADVSNDMNU_ADLMIDI"
|
||||||
StaticText "$ADVSNDMNU_OPLBANK", 1
|
LabeledSubmenu "$ADVSNDMNU_OPLBANK", "adl_bank", "ADLBankMenu"
|
||||||
// todo: fill in from internal data
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*=======================================
|
/*=======================================
|
||||||
|
|
Loading…
Reference in a new issue