Paul Chote
a04cfaec78
Move GlobalModData state to ModData.
2025-12-12 12:32:10 +02:00
RoosterDragon
649e7e8c28
Change classes that use FieldLoader to use read-only collections.
2025-12-08 17:39:28 +00:00
Paul Chote
10db26fa0b
Disable lobby options tab if options aren't yet known.
2025-11-03 14:03:35 +02:00
Paul Chote
47105e42cd
Populate lobby options when map status changes.
2025-11-03 14:03:35 +02:00
Paul Chote
6ffd786d5b
Add Generate Map tab to the lobby map chooser.
2025-05-15 23:08:13 +03:00
Paul Chote
979483b63c
Add MapClassification.Generated.
...
Generated maps are created at runtime using a
mod-defined trait. They are embedded directly
into replays and save games as they exist in
memory only, and disappear after the game exits.
2025-05-15 23:08:13 +03:00
Paul Chote
3e06749006
Rewrite fluent lint check.
2025-05-09 16:28:04 +03:00
Paul Chote
56c615d890
Fix invalid CachedTransform uses of MapPreview.
2025-04-30 14:06:42 +03:00
Paul Chote
246a1b9fec
Move map installed check to LobbyLogic.
2025-04-28 13:08:38 +03:00
RoosterDragon
36660b89e9
Silence IDE0290.
...
This rule recommends use of primary constructors. Apply the suggestions on simple POCOs, adjusting some to readonly/structs/records at the same time. For more complex classes, the use of primary constructors is more distracting than helpful, so silence the rule. IDEs can still offer fixes for using primary constructors, but it will not show up as a build issue.
2025-04-02 10:18:32 +03:00
RoosterDragon
79454d8fd2
Fix IDE0028, IDE0300, IDE0301, IDE0302, IDE0303, IDE0304.
...
Silence IDE0305.
2025-03-31 12:02:41 +03:00
Gustas
117a47f81f
Add a backup for unloaded bots
2025-03-30 18:16:53 +01:00
Gustas
299c9b5506
Make lobby names dynamic, incase players don't have maps
2025-03-30 18:16:53 +01:00
Gustas
665bebc460
Fix custom bot names being untranslated in lobby
2025-03-30 10:20:35 +01:00
RoosterDragon
1b2c119b58
Fix RCS1257, RCS1258, RCS1261, RCS1262, RCS1265, RCS1266, RCS1267
2025-02-22 14:35:57 +02:00
RoosterDragon
715d882456
Update LangVersion to C# 12.
...
Now that we have moved to net 8 from net 6, and with us no longer supporting the mono runtime, we can raise the C# version to match that supported by the net 8 runtime.
This unlocks C# 10, C# 11 and C# 12 features previously unavailable to us.
- https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-10
- https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-11
- https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-12
A newer version of StyleCop is required to avoid rules tripping up on the new syntax.
Enable a handful of style rules that don't have many violations.
2025-02-20 12:54:12 +02:00
Paul Chote
67254e0b39
Rename Fluent *GetString methods to GetMessage.
2024-11-03 16:52:47 +02:00
Paul Chote
d6285affec
Remove FluentBundle.Arguments helper method.
2024-10-04 15:11:27 +03:00
Paul Chote
b29b685058
Rename Fluent-related code to be more precise.
2024-10-04 15:11:27 +03:00
Matthias Mailänder
c24913ea24
Add a UI indicator for bot players.
2024-08-05 12:55:59 +03:00
Matthias Mailänder
4e5556dccc
Expose player names to localization.
2024-08-05 12:55:59 +03:00
Matthias Mailänder
b8756c4737
Move CachedTransform to OpenRA.Primitives.
2024-08-03 11:56:43 +03:00
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
Matthias Mailänder
5ddc7b1177
Localize the faction dropdown.
2024-07-18 22:10:03 +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
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
330ca92045
Fix RCS1077
2023-11-19 19:28:57 +02:00
Paul Chote
bdef619803
Move skirmish bot creation to the server.
2023-11-17 10:28:52 +02:00
RoosterDragon
b97d1a4c6c
Fix IDE0090
2023-11-15 19:13:17 +02:00
RoosterDragon
cfde0d7867
Fix IDE0001
2023-11-15 19:13:17 +02:00
Paul Chote
9d174cd87d
Add a button to reset lobby options to default.
2023-11-12 12:04:05 +02:00
Paul Chote
2e5ef7f059
Show the server map pool in the client map chooser.
...
Maps that aren't installed are queried from the resource center.
2023-11-05 15:42:35 +02:00
Paul Chote
96dc085b35
Make lobby option tooltips work the same as factions.
2023-10-30 00:25:07 +02:00
Paul Chote
b28a3b6a5a
Fix lobby faction tooltip rendering.
2023-10-30 00:25:07 +02:00
Gustas
0dcb341059
Make MapPreviewLogic initialisers optional
2023-08-10 19:31:38 +02:00
RoosterDragon
d83e579dfe
Fix CA1305
2023-08-07 21:38:09 +02:00
Gustas
7638822e49
Disable force start panel start button when unable to start the game
2023-08-05 14:18:15 +02:00
Gustas
a9cf728ee1
Refactor MapPreviewLogic
...
and add a states for updating map via MapCache.GetUpdatedMap
2023-08-05 14:18:15 +02:00
Matthias Mailänder
f2a242b09a
Let all lobby sounds be optional.
2023-08-04 21:47:28 +03:00
Matthias Mailänder
a1efb28f0b
Add lobby sounds for leave, join and option change
2023-08-04 21:47:28 +03:00
RoosterDragon
f4af5c1764
Fix CA1852
2023-06-06 11:51:47 +03:00
Matthias Mailänder
68eec52cef
Add TranslationProvider
2023-04-22 19:23:41 +02:00
Gustas
d838d08570
Add IColorPickerManagerInfo interface
2023-04-08 18:05:20 +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
023d80b94d
Fix IDE0057
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
c4bd9fb7aa
Add quit button to connection lost panel
2023-03-27 20:02:54 +02:00
RoosterDragon
52fd564eac
Fix some whitespace formatting issues: stray tabs or spaces.
...
Wrap some long lines on affected code.
2023-03-02 20:02:45 +02:00