Last change
on this file since 6191 was
6186,
checked in by dafrick, 15 years ago
|
Some cleanup in SoundManager and related classes. Overrall volume works now. Mute function has been implemented into the gui.
Once again you'll have to delete your orxonox.ini file to be trouble free.
|
-
Property svn:executable set to
*
|
File size:
940 bytes
|
Line | |
---|
1 | -- NewAudioMenu.lua |
---|
2 | |
---|
3 | BasicGUI = require("BasicGUI") |
---|
4 | local P = BasicGUI:new() --inherit everything from the gui package |
---|
5 | if _REQUIREDNAME == nil then |
---|
6 | NewAudioMenu = P |
---|
7 | else |
---|
8 | _G[_REQUIREDNAME] = P |
---|
9 | end |
---|
10 | |
---|
11 | P.filename = "NewAudioMenu" |
---|
12 | P.layoutString = "NewAudioMenu.layout" |
---|
13 | |
---|
14 | function P.AudioMusicScrollbar_clicked(e) |
---|
15 | -- music volume |
---|
16 | debug("event: music volume") |
---|
17 | end |
---|
18 | |
---|
19 | function P.AudioSoundScrollbar_clicked(e) |
---|
20 | -- sound volume |
---|
21 | debug("event: sound volume") |
---|
22 | end |
---|
23 | |
---|
24 | function P.AudioMuteMusicCheckbox_clicked(e) |
---|
25 | soundMgr = orxonox.SoundManager:getInstance() |
---|
26 | soundMgr:toggleMute(orxonox.SoundType.ambient) |
---|
27 | debug("event: mute music") |
---|
28 | end |
---|
29 | |
---|
30 | function P.AudioMuteSoundCheckbox_clicked(e) |
---|
31 | soundMgr = orxonox.SoundManager:getInstance() |
---|
32 | soundMgr:toggleMute(orxonox.SoundType.none) |
---|
33 | debug("event: mute sound") |
---|
34 | end |
---|
35 | |
---|
36 | function P.AudioBackButton_clicked(e) |
---|
37 | hideGUI("NewAudioMenu") |
---|
38 | debug("event: back") |
---|
39 | end |
---|
40 | |
---|
41 | return P |
---|
42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.