mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-23 19:00:27 +01:00
65 lines
2.4 KiB
C++
65 lines
2.4 KiB
C++
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
|
|
|
|
#include "StdH.h"
|
|
#include <Engine/CurrentVersion.h>
|
|
#include "MenuPrinting.h"
|
|
#include "MenuStuff.h"
|
|
#include "MAudioOptions.h"
|
|
|
|
extern void RefreshSoundFormat(void);
|
|
|
|
|
|
void CAudioOptionsMenu::Initialize_t(void)
|
|
{
|
|
// intialize Audio options menu
|
|
gm_mgTitle.mg_boxOnScreen = BoxTitle();
|
|
gm_mgTitle.mg_strText = TRANS("AUDIO");
|
|
gm_lhGadgets.AddTail(gm_mgTitle.mg_lnNode);
|
|
|
|
TRIGGER_MG(gm_mgAudioAutoTrigger, 0,
|
|
gm_mgApply, gm_mgFrequencyTrigger, TRANS("AUTO-ADJUST"), astrNoYes);
|
|
gm_mgAudioAutoTrigger.mg_strTip = TRANS("adjust quality to fit your system");
|
|
|
|
TRIGGER_MG(gm_mgFrequencyTrigger, 1,
|
|
gm_mgAudioAutoTrigger, gm_mgAudioAPITrigger, TRANS("FREQUENCY"), astrFrequencyRadioTexts);
|
|
gm_mgFrequencyTrigger.mg_strTip = TRANS("select sound quality or turn sound off");
|
|
gm_mgFrequencyTrigger.mg_pOnTriggerChange = NULL;
|
|
|
|
TRIGGER_MG(gm_mgAudioAPITrigger, 2,
|
|
gm_mgFrequencyTrigger, gm_mgWaveVolume, TRANS("SOUND SYSTEM"), astrSoundAPIRadioTexts);
|
|
gm_mgAudioAPITrigger.mg_strTip = TRANS("choose sound system (API) to use");
|
|
gm_mgAudioAPITrigger.mg_pOnTriggerChange = NULL;
|
|
|
|
gm_mgWaveVolume.mg_boxOnScreen = BoxMediumRow(3);
|
|
gm_mgWaveVolume.mg_strText = TRANS("SOUND EFFECTS VOLUME");
|
|
gm_mgWaveVolume.mg_strTip = TRANS("adjust volume of in-game sound effects");
|
|
gm_mgWaveVolume.mg_pmgUp = &gm_mgAudioAPITrigger;
|
|
gm_mgWaveVolume.mg_pmgDown = &gm_mgMPEGVolume;
|
|
gm_mgWaveVolume.mg_pOnSliderChange = NULL;
|
|
gm_mgWaveVolume.mg_pActivatedFunction = NULL;
|
|
gm_lhGadgets.AddTail(gm_mgWaveVolume.mg_lnNode);
|
|
|
|
gm_mgMPEGVolume.mg_boxOnScreen = BoxMediumRow(4);
|
|
gm_mgMPEGVolume.mg_strText = TRANS("MUSIC VOLUME");
|
|
gm_mgMPEGVolume.mg_strTip = TRANS("adjust volume of in-game music");
|
|
gm_mgMPEGVolume.mg_pmgUp = &gm_mgWaveVolume;
|
|
gm_mgMPEGVolume.mg_pmgDown = &gm_mgApply;
|
|
gm_mgMPEGVolume.mg_pOnSliderChange = NULL;
|
|
gm_mgMPEGVolume.mg_pActivatedFunction = NULL;
|
|
gm_lhGadgets.AddTail(gm_mgMPEGVolume.mg_lnNode);
|
|
|
|
gm_mgApply.mg_bfsFontSize = BFS_LARGE;
|
|
gm_mgApply.mg_boxOnScreen = BoxBigRow(4);
|
|
gm_mgApply.mg_strText = TRANS("APPLY");
|
|
gm_mgApply.mg_strTip = TRANS("activate selected options");
|
|
gm_lhGadgets.AddTail(gm_mgApply.mg_lnNode);
|
|
gm_mgApply.mg_pmgUp = &gm_mgMPEGVolume;
|
|
gm_mgApply.mg_pmgDown = &gm_mgAudioAutoTrigger;
|
|
gm_mgApply.mg_pActivatedFunction = NULL;
|
|
}
|
|
|
|
void CAudioOptionsMenu::StartMenu(void)
|
|
{
|
|
RefreshSoundFormat();
|
|
CGameMenu::StartMenu();
|
|
} |