Commit Graph

277 Commits

Author SHA1 Message Date
RoosterDragon
7a7eed4fb7 Add FirstEnabledTraitOrDefault helper method.
This avoids the allocations caused by LINQ when using traits.FirstOrDefault(Exts.IsTraitEnabled). This is important in FrozenActorLayer.RefreshState which is called very often. We apply the new helper method to all areas using the old pattern. An overload that takes an array allows arrays to be enumerated without causing allocations.
2017-12-10 13:39:24 +00:00
Paul Chote
2f79173044 Migrate hotkey consumers to HotkeyManager. 2017-12-08 01:29:15 +01:00
Paul Chote
811427adc4 Add HotkeyReference.IsActivatedBy method. 2017-12-08 01:29:15 +01:00
Paul Chote
c4237d6a1a Rename NamedHotkey to HotkeyReference. 2017-12-08 01:29:15 +01:00
Paul Chote
9d2935935c Add a debug visualization for screen map rectangles. 2017-12-04 23:10:23 +01:00
Paul Chote
ef43d8a86f Add missing StringComparison to IngameChatLogic. 2017-10-14 13:10:27 +02:00
Paul Chote
75d4062698 Limit chat messages to 2500 characters. 2017-10-14 13:10:27 +02:00
Paul Chote
36af2107d6 Fix the attack move order generator activating with an empty selection. 2017-09-30 14:33:40 +02:00
rob-v
c9b4568117 Add Statistics options hotkeys 2017-09-24 15:32:02 +02:00
Paul Chote
42c4c7b7eb Fix compile error in CommandBarLogic. 2017-09-15 22:49:56 +01:00
Paul Chote
83d522d945 Split unrelated hotkeys from WorldInteractionController. 2017-09-15 23:06:38 +02:00
Paul Chote
0e3bfcfb35 Replace WorldCommandWidget with individual logic classes. 2017-09-15 23:06:38 +02:00
Paul Chote
c6fe1639db Support multiple key handlers. 2017-09-15 23:06:38 +02:00
Paul Chote
7459050af9 Rework global music hotkey bindings. 2017-09-15 23:06:38 +02:00
Paul Chote
a81749e102 Add frontend code for issuing assault move orders. 2017-09-11 19:08:33 +02:00
Paul Chote
1e4640dc0b Clean up SupportPowerTooltipLogic:
- Avoid creating unnecessary bindings
- Avoid duplicated text size calculations
- Relayout panel when (and only when) needed
- Color timer red when paused
2017-09-10 21:30:55 +02:00
Paul Chote
458c913264 Clean up ProductionTooltipLogic:
- Avoid creating unnecessary bindings
- Fix time display not updating on low power
- Fix power usage color not updating on power changes
- Avoid duplicated text size calculations
2017-09-10 21:30:55 +02:00
Paul Chote
2a6bb0678e Move hardcoded support power keys into yaml. 2017-09-10 21:30:55 +02:00
Paul Chote
4f00d62237 Move hardcoded production keys into yaml. 2017-09-10 21:30:55 +02:00
rob-v
6eb7a98cd2 Change default Observer shroud option for Explored map 2017-09-02 14:02:24 +02:00
Paul Chote
9607c09516 Add command bar to TS. 2017-09-01 11:56:37 +02:00
Paul Chote
1bd1a185f5 Unhardcode spectator combined/world view hotkeys. 2017-08-31 12:33:34 +02:00
Paul Chote
9a5b5d9b6f Unhardcode music control hotkeys. 2017-08-31 12:33:34 +02:00
Paul Chote
1e0148e092 Migrate ButtonWidget to NamedHotkey. 2017-08-25 21:56:52 +02:00
rob-v
c848b30e9e Add chat tab to multiplayer/replays ingame menu 2017-08-17 21:54:19 +01:00
rob-v
dd9d5450bc Add EnableDebugCommandsInReplays option 2017-08-17 19:23:22 +02:00
rob-v
eb21c4bddd Keep Attack M./Guard action while holding hotkey (revert Playtest change) 2017-08-13 17:44:26 +01:00
rob-v
97306f2bcd Move DeveloperMode trait to Mods.Common 2017-07-23 15:08:24 +02:00
rob-v
d4e9e0e069 Add Visualization chat commands 2017-07-23 15:08:24 +02:00
abcdefg30
0b6b997e81 Add a CommandBarBlacklist trait to blacklist Stop and Waypoint Mode 2017-07-14 23:18:28 +01:00
rob-v
78bedb0513 Fix IsSinglePlayer 2017-06-27 22:43:15 +01:00
Paul Chote
52f1ab0969 Add backend code for unit command bar. 2017-06-06 08:53:54 -06:00
Paul Chote
c867687d9a Prevent repeated keys from toggling observer shroud selector. 2017-05-06 14:13:12 +01:00
rob-v
199e9847d1 Add tooltips to production statistics #12820 2017-04-17 21:51:23 +02:00
reaperrr
76f961e39e Move ProductionTabsLogic to Mods.Common 2017-02-01 19:58:21 +01:00
Paul Chote
1f44e91746 Migrate ProvidesRadar to conditions and remove JamsRadar. 2017-01-21 17:24:54 +00:00
Taryn Hill
43317e0f5d Update copyright notice year to 2017 2016-12-31 23:46:13 -06:00
Paul Chote
55f76c02d6 Disable world sounds when the ingame menu is open. 2016-12-23 11:34:23 +00:00
Paul Chote
23f4ae5027 Replace UpgradeMinEnabledLevel checks with an EnabledByDefault shim. 2016-11-19 17:19:25 +00:00
reaperrr
7ba0c22346 Merge pull request #12096 from pchote/game-timer-tooltip
Show replay percentage as a tooltip.
2016-11-06 16:59:07 +01:00
reaperrr
efa6ad64f7 Remove now-redundant TooltipInfo check 2016-10-23 18:42:36 +02:00
reaperrr
00c0161513 Show internal name instead of crashing when buildable actor has no tooltip
But throw a lint error instead.
2016-10-23 14:59:22 +02:00
reaperrr
074bb78cbd Made Tooltip trait upgradable 2016-10-23 14:59:18 +02:00
Paul Chote
10b5d8a06b Show replay percentage as a tooltip. 2016-10-23 13:29:06 +01:00
Tyson Liddell
aeb1e07823 Moved production description from Tooltip to Buildable 2016-10-16 12:03:42 +11:00
Paul Chote
404d8235c8 Show a tooltip over map resources. 2016-09-25 17:04:17 +01:00
Paul Chote
74602474e3 Change shroud tooltip to match the original games. 2016-09-25 17:04:16 +01:00
Oliver Brakmann
aa68e9bfca Fix not being able to close the chat window in replays 2016-09-17 15:05:00 +02:00
Paul Chote
3197345fc3 Fix bogus observer stats graph positioning. 2016-09-04 19:31:04 +01:00
Paul Chote
85ab797705 Merge pull request #11957 from abc013/DisableReplayChat
Disabled chat input in replays
2016-09-04 10:43:34 +01:00