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
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
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
b28a3b6a5a
Fix lobby faction tooltip rendering.
2023-10-30 00:25:07 +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
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
d4135d608e
Fix IDE0039
2023-02-27 10:09:11 +01:00
RoosterDragon
ede5412526
Fix IDE0100
2023-02-24 22:00:25 +02:00
abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
Ivaylo Draganov
a0f17b15ec
Refactor translation files
...
- Add prefixes to all message keys to provide context
- Use messages with attributes for some UI elements (dropdowns, dialogs, checkboxes, menus)
- Rename some class fields for consistency with translation keys
2022-12-19 22:04:54 +13:00
Matthias Mailänder
760a1245c5
Mark non-moddable translation strings as constant.
2022-12-07 18:40:26 +02:00
Gustas
33a1bb8e6b
Don't disable chat in replays
2022-11-06 22:28:52 +01:00
Gustas
63b76d1b53
Select LastModifiedMap when entering LobbyLogic
2022-09-09 14:31:25 +03:00
Matthias Mailänder
0b67b5bfae
Extract translation strings.
2022-09-02 14:41:24 +03:00
tomas
92478a219e
Fix crash when selecting the same map
2022-08-18 00:03:50 +02:00
Matthias Mailänder
2c8c6e50da
Code cleanup
2022-08-14 16:11:51 +02:00
abcdefg30
ee3c54b572
Disallow starting a game without players
2022-08-03 21:03:46 +02:00
Gustas
b597c000d6
Update LobbyLogic to use the new MapCache map tracking
2022-07-17 22:23:13 +02:00
tomas
5f4ed5f16b
Update TextNotificationsManager to use Ui.Send
2022-07-15 19:19:09 +03:00
Gustas
135823fced
fix crash when non-host exits map chooser
2022-04-25 23:03:27 +02:00
Gustas
b254eb0f3d
Add dynamic map refresh
2022-04-14 16:16:38 +02:00
Matthias Mailänder
0e7ad43425
Remove unused parameters.
2022-04-01 23:30:26 +02:00
Ivaylo Draganov
9e92340ea7
Rework chat line templates and logic
...
- Extract chat line templates and logic so they can be reused across widgets
- Make text notification styling entirely template driven (by removing chat color configuration and making color optional for `TextNotification`)
- Add a new TextNotificationsDisplay widget (based on and replacing ChatDisplayWidget)
- Add timestamp support to text notifications
2021-10-29 20:55:41 +02:00
Paul Chote
166583b1ec
Fix disabled chat focus issues.
2021-10-16 13:34:39 -05:00
penev92
8ba6d13b2f
Removed unused using directives
2021-10-15 13:12:33 +02:00
Paul Chote
8588af1001
Disable chat for the first 5s (configurable) after joining a server.
2021-09-23 12:52:20 +02:00
Ivaylo Draganov
64e76e1a90
Make text fields yield keyboard focus on "Esc" in a consistent way
...
- search fields clear the input and yield if empty
- chat field and actor edit field yield without clearing
2021-07-04 23:37:29 +02:00
Ivaylo Draganov
6af354ff99
Split chat lines into pools
...
- Add a common class for passing around chat lines
- Add wrapper methods for adding chat lines
- Combine repeated chat lines in the display widget
2021-07-04 14:02:58 +01:00
Abdurrahmaan Iqbal
a8900d9860
Rebind chat hotkeys to prevent Tab changing chat mode
...
Enter/Shift+Enter now toggle team/all chat respectively and Shift+Tab switches chat mode instead of Tab
2021-07-03 14:49:03 +01:00
Abdurrahmaan Iqbal
6967c1fff3
Pass KeyInput to OnKey functions
2021-07-03 14:49:03 +01:00