Commit Graph

21 Commits

Author SHA1 Message Date
Alexander Fast
af0efda6f5 Changes how the playerNames collection is created.
It's now extracted from the orderManager, like it's done in LobbyLogic.
This is to increase consistency.
2014-08-23 21:18:54 +02:00
Alexander Fast
e934df374d Fixes double auto completion in in-game chat. 2014-08-21 13:12:29 +02:00
Alexander Fast
0c6f180f56 Replaced ForEach with loop, moved Trim outside. 2014-08-21 12:39:53 +02:00
Alexander Fast
3160fa40f6 Added tab completion to lobby chat.
Also fixes accidental reversion of one word logic during cleanup.
Fields that could be readonly are now readonly.
2014-08-19 22:48:51 +02:00
Alexander Fast
ab61830d0f Code cleanup based on code review.
Fixes multiple enumeration of IEnumerable.
Fixes return value of pure method not used.
Converted OnTabKey and OnClick handlers to method groups.
Removed one set of redundant parenthesis.
Replaced explicit type with var.
2014-08-19 21:27:39 +02:00
Alexander Fast
034625c2ea Added tab completion to in-game chat.
Both player names and chat commands can be completed.
Names of local players and bots are not candidates for completion.
If a completed name is the first word ": " is appended to the end.
The hotkey for toggling team/all chat has been moved to left Alt.
2014-08-19 17:19:32 +02:00
Matthias Mailänder
13e0dac141 execute chat commands only locally
fixes #5755
2014-07-04 18:18:33 +02:00
Pavlos Touboulidis
628c524494 Add smooth scrolling to the ScrollPanelWidget 2014-06-21 16:41:56 +03:00
ScottNZ
90894aa03e Use var everywhere 2014-06-15 22:17:34 +12:00
ScottNZ
dbffce81a6 Remove unused usings 2014-06-15 22:16:40 +12:00
Pavlos Touboulidis
e0628b5f24 Change IngameChatLogic & MusicPlayerLogic to use the mod's rules, not the map's 2014-05-17 14:33:17 +03:00
Pavlos Touboulidis
63ec6d60e7 Refactoring to remove static Rules & SequenceProvider 2014-05-17 14:32:03 +03:00
Chicken man
fa4b157b42 Added ConsoleCommand, and an example to go with it 2014-05-12 16:30:53 -04:00
Pavlos Touboulidis
e5e97c9a11 Fix issue #5149: Make chat window not autoscroll
It will autoscroll unless the chat window is open and the scroll
position is not at the bottom.
2014-04-25 16:16:54 +03:00
ScottNZ
00ec1ca87a Remove unused usings 2013-11-12 19:39:33 +13:00
Matthias Mailänder
445b0518ef disable team-chat when there are no allies listening
closes #4033
2013-11-09 22:34:12 +01:00
Paul Chote
15de893cec Clean up chat input.
- Team chat by default; use tab key or button to change.
- Removed "Use RETURN key..." prompt.
- Remove jarring transition between display and entry modes.
- Scroll to bottom on opening entry mode.
- Disable any/team toggle for spectators.
- Minor spacing/padding tweaks.
- Code cleanup.
2013-10-24 20:02:17 +13:00
Paul Chote
aab6fec68b Remove VirtKey and KeyName. 2013-10-21 20:24:24 +13:00
Paul Chote
7c91d6976d Split keyboard and mouse focus.
Fixes #3304.
Fixes #2075.
Fixes C&C chat focus bug.
2013-07-27 21:02:52 +12:00
Paul Chote
248e815d99 More shroud refactoring.
This introduces a hash on Shroud which ShroudRenderer
can observe, removing the need to explicitly twiddle
a dirty flag between objects.

Shroud disabling is now done via RenderPlayer, so
enabling the cheat or winning/losing will now give
vis equivalent to an observer.
2013-04-10 21:08:22 +12:00
Sascha Biedermann
1eb7c62c62 closes #2874: improved ingame chat 2013-03-28 18:39:26 +01:00