Add chat notification audio

This commit is contained in:
Paul Chote
2011-07-09 17:38:01 +12:00
parent f724da5628
commit 195aecec0e
3 changed files with 2 additions and 2 deletions

View File

@@ -41,8 +41,6 @@ namespace OpenRA.Mods.RA
Game.MoveViewport(ViewportOrigin); Game.MoveViewport(ViewportOrigin);
Actors = w.WorldActor.Trait<SpawnMapActors>().Actors; Actors = w.WorldActor.Trait<SpawnMapActors>().Actors;
// Mute world sounds
Sound.SoundVolumeModifier = 0f;
LoopMusic(); LoopMusic();

View File

@@ -271,6 +271,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
chatPanel.AddChild(template); chatPanel.AddChild(template);
chatPanel.ScrollToBottom(); chatPanel.ScrollToBottom();
Sound.Play("scold2.aud");
} }
void UpdateCurrentMap() void UpdateCurrentMap()

View File

@@ -19,6 +19,7 @@ Container@INGAME_ROOT:
DrawBackground: False DrawBackground: False
RemoveTime:250 RemoveTime:250
UseContrast: yes UseContrast: yes
Notification: scold2.aud
ChatEntry@CHAT_ENTRY: ChatEntry@CHAT_ENTRY:
Id:CHAT_ENTRY Id:CHAT_ENTRY
X:250 X:250