RoosterDragon
0649f3dc32
RCS0056 - roslynator_max_line_length = 160
2024-07-29 21:56:36 +02:00
RoosterDragon
9d5d2ab493
RCS0056 - roslynator_max_line_length = 180
2024-07-29 21:56:36 +02:00
JovialFeline
c64eea7872
Fix untranslated factions in GameInfoStats
2024-07-26 17:16:07 +02:00
Matthias Mailänder
5ddc7b1177
Localize the faction dropdown.
2024-07-18 22:10:03 +03:00
RoosterDragon
a5dd4ffe36
Cache teams in observer logic
...
The player state and teams are fixed after the game starts, so it is safe to cache the resulting teams in the observer logic rather than re-evaluating them each time.
2024-07-16 13:01:27 +03:00
N.N
ccb1bd7a74
Enable paying upfront
...
Fix tab availability on low money
Co-Authored-By: Gustas <37534529+PunkPun@users.noreply.github.com >
2024-06-17 13:21:42 +03:00
Gustas
239891070d
Make sure palettes are updated if colors are toggled in game runtime
...
And fix MutablePalette's not getting updated
2024-05-04 16:31:35 +02:00
Gustas
5fc36bd45f
Make player stance colours universally respected
2024-05-04 16:31:35 +02:00
Gustas
cf21c8e906
Fix support power name not really being optional
2024-04-10 23:52:43 +02:00
Matthias Mailänder
188f0e2451
Extract strings from support power name and description.
2024-04-03 11:38:08 +03:00
RoosterDragon
2fde98a0d1
Fix uses of LabelWidget.Text and ButtonWidget.Text to use GetText instead.
...
The Text element of these widgets was changed from display text to a translation key as part of adding translation support. Functions interested in the display text need to invoke GetText instead. Lots of functions have not been updated, resulting in symptoms such as measuring the font size of the translation key rather than the display text and resizing a widget to the wrong size.
Update all callers to use GetText when getting or setting display text. This ensure their existing functionality that was intended to work in terms of the display text and not the translation key works as expected.
2024-01-15 15:16:58 +02:00
Gustas
0f5b78442b
Extract unit names and descriptions
2023-11-25 16:28:19 +01:00
RoosterDragon
e6914f707a
Introduce FirstOrDefault extensions method for Array.Find and List.Find.
...
This allows the LINQ spelling to be used, but benefits from the performance improvement of the specific methods for these classes that provide the same result.
2023-11-19 19:28:57 +02:00
RoosterDragon
acca837142
Fix RCS1246
2023-11-19 19:28:57 +02:00
RoosterDragon
330ca92045
Fix RCS1077
2023-11-19 19:28:57 +02:00
RoosterDragon
360f24f609
Fix IDE0055
...
This rule no longer appears to be buggy, so enforce it. Some of the automated fixes are adjusted in order to improve the result. #pragma directives have no option to control indentation, so remove them where possible.
2023-11-16 08:45:10 +02:00
RoosterDragon
b97d1a4c6c
Fix IDE0090
2023-11-15 19:13:17 +02:00
RoosterDragon
498c6e3d8b
Fix RCS1205
2023-11-10 10:38:41 +02:00
Paul Chote
fe6de396f2
Replace MenuPaletteEffect with a post-processing shader.
2023-10-22 19:34:05 +03:00
Gustas
d5c940ba4c
Close the ingame menu upon voting
2023-09-27 10:41:13 +03:00
Gustas
144e716cdf
Add vote kick
2023-09-27 10:41:13 +03:00
Gustas
085a4c421b
Add back to editor button
2023-09-09 13:46:35 +02:00
Gustas
4fc4fb2fb3
Add Play button to map editor
2023-09-09 13:46:35 +02:00
Gustas
0e5ed6a30c
Extract ExitMapEditor in IngameMenuLogic
2023-09-09 13:46:35 +02:00
dnqbob
19c8c36030
Replace Cash + Resources with GetCashAndResources()
2023-09-07 16:40:57 +03:00
RoosterDragon
93a97d5d6f
Fix CA1851, assume_method_enumerates_parameters = true
2023-08-20 20:41:27 +02:00
RoosterDragon
3275875ae5
Fix CA1851
2023-08-20 20:41:27 +02:00
Matthias Mailänder
c609c4af14
Extract text feedback messages.
2023-08-19 20:46:04 +03:00
Matthias Mailänder
1899eed839
Add localisation support to transient lines.
2023-08-19 20:46:04 +03:00
Gustas
3ab421cbe3
Allow queueing up scatter and move Nudge to an activity
2023-08-08 16:10:53 +02:00
RoosterDragon
285443f10f
Fix CA1310, CA1311
2023-08-07 21:38:09 +02:00
RoosterDragon
d83e579dfe
Fix CA1305
2023-08-07 21:38:09 +02:00
abcdefg30
49c837e7d0
Fix \r\n-style line endings not being properly handled for script errors
2023-06-26 19:36:47 +02:00
RoosterDragon
231bf01f18
Fix CA1854
2023-06-20 17:57:40 +02:00
RoosterDragon
0958197df2
Fix CA1052
2023-06-20 17:57:40 +02:00
RoosterDragon
f4af5c1764
Fix CA1852
2023-06-06 11:51:47 +03:00
Matthias Mailänder
445b736885
Replace sandbox wrapper scripts.
2023-05-20 13:19:48 +02:00
abcdefg30
d9d8c23c63
Enable the restart button when we encounter a script error
2023-05-19 17:02:06 +02:00
Matthias Mailänder
6e6bf1ca81
Translate labels with parameters.
2023-05-09 20:14:52 +03:00
Matthias Mailänder
65c0cf1065
Deprecate string format shorthand.
2023-05-05 19:03:09 +02:00
Matthias Mailänder
68eec52cef
Add TranslationProvider
2023-04-22 19:23:41 +02:00
RoosterDragon
1b1b9dc29b
Fix CA2215
2023-04-17 00:05:12 +02:00
RoosterDragon
a167f9680f
Fix SA1316
2023-04-08 16:51:51 +03:00
RoosterDragon
8a285f9b19
Fix IDE0090
2023-04-08 16:51:51 +03:00
RoosterDragon
164abfdae1
Fix IDE0083
2023-04-08 16:51:51 +03:00
RoosterDragon
bd2b3d9793
Fix IDE0074
2023-04-08 16:51:51 +03:00
RoosterDragon
83561d639d
Update LangVersion to C# 9.
...
mono was the bottleneck restricting our ability to use a newer C# version. mono 6.12 is currently available. Although poorly documented on their website, this supports C# 9. https://www.mono-project.com/docs/about-mono/versioning/#mono-source-versioning indicates mono 6.12 uses Roslyn 3.9.0. https://github.com/dotnet/roslyn/blob/main/docs/wiki/NuGet-packages.md#versioning indicates Roslyn 3.9.0 supports C# 9.
This unlocks C# 8 and C# 9 features previously unavailable to us.
- https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-80
- https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-9
A newer version of StyleCop is required to avoid rules tripping up on the new syntax. Currently only prerelease versions are available but their use is encouraged https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3420#issuecomment-994899135
Fix style rule violations on existing rules where the newer language version makes some existing casts redundant or allows use of the null coalescing assignment operator.
2023-04-05 15:27:41 +03:00
Gustas
bf00577d33
Allow kicking dead players
2023-03-27 20:15:17 +02:00
Gustas
c4bd9fb7aa
Add quit button to connection lost panel
2023-03-27 20:02:54 +02:00
RoosterDragon
bcfa0c9ae9
Review StyleCop rules.
...
- Enforce SA1604 ElementDocumentationShouldHaveSummary.
- Enforce SA1629 DocumentationTextShouldEndWithAPeriod.
- Turn off some rules covered by IDExxxx rules.
- Remaining rules are treated as part of OpenRA style.
2023-03-18 12:46:10 +02:00