Merge pull request #5191 from pavlos256/chat-window-improvements

Chat window improvements
This commit is contained in:
Paul Chote
2014-05-02 22:56:39 +12:00
5 changed files with 38 additions and 50 deletions

View File

@@ -146,8 +146,11 @@ namespace OpenRA.Mods.RA.Widgets.Logic
template.Bounds.Height += dh;
}
bool scrolledToBottom = chatScrollPanel.ScrolledToBottom;
chatScrollPanel.AddChild(template);
chatScrollPanel.ScrollToBottom();
if (scrolledToBottom)
chatScrollPanel.ScrollToBottom();
Sound.PlayNotification(null, "Sounds", "ChatLine", null);
}
}