Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/old.chris/gui/orxonox_gui_audio.cc @ 3360

Last change on this file since 3360 was 2058, checked in by chris, 20 years ago

orxonox/branches/chris: Trunk remerged into my branch started on SDL reconfiguration

File size: 849 bytes
Line 
1#include "orxonox_gui_audio.h"
2
3OrxonoxGuiAudio::OrxonoxGuiAudio ()
4{
5  audioFrame = new Frame ("Audio-Options:");
6  audioBox = new Box ('v');
7 
8  enableSound = new CheckButton ("Disable Sound");
9  enableSound->setFlagName ("no-sound", 0);
10  audioBox->fill (enableSound);
11  Label* musicVolumeLabel = new Label ("Music Volume");
12  audioBox->fill (musicVolumeLabel);
13  musicVolume = new Slider ("Music Volume", 0, 100);
14  musicVolume->setFlagName ("music-volume", "m", 80);
15  audioBox->fill (musicVolume);
16  Label* effectsVolumeLabel = new Label ("Effects Volume");
17  audioBox->fill (effectsVolumeLabel);
18  effectsVolume = new Slider ("Effects Volume", 0, 100);
19  effectsVolume->setFlagName ("effects-volume", "e", 80);
20  audioBox->fill (effectsVolume);
21
22  audioFrame->fill (audioBox);
23}
24
25Frame* OrxonoxGuiAudio::getFrame ()
26{
27  return audioFrame;
28}
Note: See TracBrowser for help on using the repository browser.