Paul Chote
0bbb32e8ac
Rework MapPreview custom rule handling.
...
The previous asynchronous approach did not work particularly well,
leading to large janks when switching to custom maps or opening the
mission browser.
This commit introduces two key changes:
* Rule loading for WorldActorInfo and PlayerActorInfo is made
synchronous, in preparation for the next commit which will
significantly optimize this path.
* The full ruleset loading, which is required for map validation,
is moved to the server-side and managed by a new ServerMapStatusCache.
The previous syntax check is expanded to include the ability to run
lint tests.
2021-04-21 18:57:44 +02:00
Matthias Mailänder
5a0bcc01a6
Add a lint check for trait placement on hardcoded actor names.
2021-04-11 20:20:00 +02:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
Paul Chote
de7a84e8ed
Don't use Platform.ResolvePath when constructing hardcoded paths.
2020-11-22 16:42:46 +01:00
abcdefg30
77e85e7c58
Change DisabledSpawnPoints from List to HashSet
2020-11-15 09:38:02 +01:00
Trevor Nichols
d66e0bb22e
Right click lobby spawns to disable or remove players.
2020-11-07 19:33:28 +01:00
Paul Chote
6b6b1e56e6
Resolve random players and spawn points in server replays.
2020-10-31 14:31:44 +01:00
Paul Chote
60df247416
Streamline SpawnOccupant management.
2020-10-09 12:19:19 +02:00
teinarss
9c4fd0e3d3
Use Null-Propagation Operator
2020-08-19 18:11:07 +01:00
teinarss
19b02875c7
Use Tuple syntax
2020-08-15 10:37:10 +01:00
teinarss
c2026dc254
Add Discord Rich Presence
2020-07-12 14:27:59 +02:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
Paul Chote
1d2b3ac917
Update the displayed replay filename after renaming.
2019-08-25 16:10:29 +02:00
Paul Chote
ebf2ce32c0
Make sure braces for multi-line statements are on their own lines.
2019-06-08 19:26:53 +02:00
Paul Chote
9f15754926
Remove scoped blocks in ReplayBrowserLogic.
2019-06-08 13:20:14 +02:00
Ivaylo Draganov
fde215360c
Add tooltips to overflowing labels
2019-05-27 17:28:47 +02:00
Paul Chote
353db73381
Fix a collection of minor style violations.
...
This enables several new StyleCopAnalyzer rules to
be enabled immediately during migration.
2019-05-09 20:40:08 +02:00
Paul Chote
3e404f6ac2
Remove HSLColor.
2019-03-04 18:26:42 +00:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
RoosterDragon
f47595b780
Hide map preview when no replay is selected.
...
This prevents interaction with the widget than can cause crashes as no replay is selected yet.
2018-03-18 16:06:27 +01:00
Peter Antal
3ce2417a06
Create SupportDirPrefix and IsPathRelativeToSupportDirectory() as members on Platform class.
2018-03-10 12:54:01 +00:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
rob-v
01d631b228
Load replays also in sub directories
2017-08-21 14:54:46 +02:00
Oliver Brakmann
677904c682
Hide tooltips for unoccupied spawnpoints in the replay browser
2017-06-03 15:56:27 +02:00
rob-v
3258d89651
Fix map parameter warning as error from PR 13233
2017-05-17 22:58:56 +02:00
rob-v
127ef8bb27
LobbyLogic, ReplayBrowserLogic Map property changed to map field
2017-05-14 21:06:16 +01:00
rob-v
a26210f914
Replays with MapPreview (like in Lobby)
2017-05-14 21:06:16 +01:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Paul Chote
bf4867909f
Rename Manifest.Mod -> Metadata.
2016-08-08 22:36:07 +01:00
Paul Chote
3df9efb95d
Rework mod enumeration / caching.
...
- Replaced ModMetadata.AllMods with Game.Mods.
- Store / reference mod Manifest instead of ModMetadata.
- Removes engine dependency on ModContent class.
2016-08-08 22:36:07 +01:00
Paul Chote
3ac42e1643
Generalise and combine cancel/confirm prompts.
2016-06-16 18:28:02 +01:00
reaperrr
d94d06d87b
Merge pull request #11370 from pchote/fix-game-start-events
...
Fix shellmap UI disappearing prematurely when starting a mission or replay.
2016-06-04 15:41:35 +02:00
Paul Chote
fba509b363
Use BeforeGameStart to remove replay browser UI on game start.
2016-05-28 18:16:18 +01:00
Matthias Mailänder
3b7a176aa6
Don't crash when a faction flag from another mod doesn't exist.
2016-05-08 16:02:23 +02:00
Paul Chote
96eda08677
Replace map type with a category list.
2016-03-27 12:16:55 +01:00
Paul Chote
84b470017f
Remove static Game.ModData references from widget logic.
2016-02-23 23:34:34 +00:00
Paul Chote
e71225496b
Clarify GPL version.
2016-02-21 16:30:48 +00:00
Paul Chote
b396965fd9
Update licence header year.
2016-02-21 16:27:31 +00:00
Oliver Brakmann
6fa4b2bbda
Fix missing 'Cancel' buttons on some confirmation prompts
2016-02-12 16:48:59 +01:00
RoosterDragon
8e89a6a696
Simplify names, remove unused usings, remove redundant casts.
2016-01-17 21:35:36 +00:00
Whinis
9059e3e2c8
Changes to the RestartGame function to make it more streamlined
...
Removal of PromptAbortAction and inclusion into PromptConfirmAction
Changes to prevent a restart button being required for all mods
ConfirmAction
Addtion of named parameters to PromptConfirmAction
Moved StartGame from MissionBrowserLogic.cs to Game.cs
2016-01-15 15:34:00 -05:00
Paul Chote
491e96466d
Truncate player name in replay browser.
2015-11-09 18:55:54 +00:00
Paul Chote
19aa07d019
Truncate long map name in replay browser.
2015-11-08 14:59:59 +00:00
Paul Chote
b6f463729b
Add a ChromeLogic base class for chrome logic.
2015-10-21 19:35:35 +01:00
RoosterDragon
60238a858d
Load replays asynchronously and in parallel.
...
This prevents the UI blocking, and also speeds up loading time for getting all the replays displayed.
2015-04-25 18:55:46 +01:00
RoosterDragon
1515ac54f6
Enforce a line length limit.
2015-03-19 17:20:34 +00:00
Matthias Mailänder
e13447e641
automatically switch mods when possible
2015-03-07 10:12:16 +01:00
Matthias Mailänder
3bb448b29b
warn before loading incompatible replays
2015-03-07 10:06:17 +01:00
Paul Chote
aa550790e5
Merge pull request #4528 from Mailaender/mime
...
Registered Linux MIME type to directly load replays
2015-02-12 11:21:37 +00:00
RoosterDragon
82bea961ba
Checked LINQ queries and collections for inefficiencies.
...
- Made Array.IndexOf available via extension method.
- Made ToHashSet extension method.
- Change collections queried often via Contains into sets.
- Avoid Count() extension if Count or Length property exist.
- Made Count() > 0 checks and variations calls to Any() instead.
- Don't call ToList/ToArray if there is no benefit to materializing the sequence.
- If the sequence does benefit from materialization, follow this general pattern:
- Collection queried often via Contains use ToHashSet to speed up lookups.
- Short lived variables use ToList. This is because ToArray requires an extra copy to output the final size.
- Collections persisted into fields or for a long time use ToArray to minimize memory overhead.
2015-01-29 19:20:11 +00:00