Last change
on this file since 3715 was
2018,
checked in by bensch, 21 years ago
|
orxonox/trunk: merged guicc and the new Configure.ac to the Trunk. Now I have to Check if everything compiles on windows.
|
File size:
849 bytes
|
Line | |
---|
1 | #include "orxonox_gui_audio.h" |
---|
2 | |
---|
3 | OrxonoxGuiAudio::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 | |
---|
25 | Frame* OrxonoxGuiAudio::getFrame () |
---|
26 | { |
---|
27 | return audioFrame; |
---|
28 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.