Add chat notification audio
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user