Paul Chote
67254e0b39
Rename Fluent *GetString methods to GetMessage.
2024-11-03 16:52:47 +02:00
Paul Chote
b29b685058
Rename Fluent-related code to be more precise.
2024-10-04 15:11:27 +03: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
Paul Chote
b28a3b6a5a
Fix lobby faction tooltip rendering.
2023-10-30 00:25:07 +02:00
Gustas
cbd6b67456
Add automated chrome string extractor.
2023-10-21 19:35:00 +02:00
RoosterDragon
a120b9d37e
Fix CA2208
2023-04-17 00:05:12 +02:00
RoosterDragon
8a285f9b19
Fix IDE0090
2023-04-08 16:51:51 +03:00
abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
Paul Chote
360a5b293d
Bubble unhandled double-click events to OnClick.
2022-12-20 23:01:41 +01:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
Ivaylo Draganov
eadc8ad689
Change color of labels that correspond to disabled inputs
...
- Add a new widget type for input and extend it from other input widgets
- Add a new label type that can be linked to an input widget
- Change the label color when the input's disabled state changes
2022-03-07 21:01:33 +01:00
penev92
8ba6d13b2f
Removed unused using directives
2021-10-15 13:12:33 +02:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
Matthias Mailänder
e7cfd2765c
Make UI cursors configurable.
2021-02-14 13:09:59 +00:00
Paul Chote
6e7ad9df25
Remove vestigial translation plumbing.
...
This was never completed to the level required to
be properly used ingame.
2020-12-25 16:18:28 +01:00
RoosterDragon
bb116034c7
Avoid or reduce LINQ allocations required in various areas.
2020-10-17 23:48:48 +02:00
Ivaylo Draganov
7943f4deb6
Unify widget state image suffixes (disabled, pressed, hover, focus)
...
- Add a property for arrows image collection (in drop-downs, scrollbars
and production tabs)
- Add a property for separators image collection (in drop-downs)
- Add hover and disable states to the drop-down separator
- Unify button, textfield and checkbox state suffixes
2020-07-05 11:50:45 +01:00
Paul Chote
f1325e12d4
Extract text contrast radius to ChromeMetrics and reduce to 1px.
2020-01-19 17:18:22 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
Ivaylo Draganov
86c8dfe96e
Add a tooltip text to overflowing ButtonWidget in hotkey settings panel
2019-07-20 17:39:07 +02:00
Ivaylo Draganov
ef0cb7552d
Revert "Scissor the text of a ButtonWidget if it overflows and display a tooltip"
...
This reverts parts of commit 76a6e7ec92 .
2019-07-20 17:39:07 +02:00
Ivaylo Draganov
76a6e7ec92
Scissor the text of a ButtonWidget if it overflows and display a tooltip
...
Also:
* add a variable to a comomn pattern used for truncating text in HotkeyEntryWidget and TextFieldWidget
2019-06-28 12:10:48 +02:00
teinarss
ab382ce4d6
Removed BaseLine and updated ButtonWidget and CheckboxWidget to use Font.TopOffset
2019-06-21 12:51:45 +02:00
Paul Chote
78a70be0d4
Fix and enable SA1133, SA1134 style rules.
2019-05-24 10:47:57 +02:00
Paul Chote
72dbb871ac
Add faction specific tooltip backgrounds.
2019-05-15 21:05:49 +02:00
Paul Chote
ab4a7e3558
Replace System.Drawing primitives with our own.
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
Andre Mohren
48248266a8
ClickSound and ClickDisabledSound and ChatLine are optional ui sounds.
2018-09-29 20:05:53 +02:00
Paul Chote
f08bfae9a0
Count direct children of text fields and buttons for mouseover.
...
This improves polish when mousing over prefix glyphs.
2018-07-29 00:30:17 +02:00
teinarss
a156a31cf5
Added text aligment to button
...
Cloning LeftMargin and RightMargin
Refactored the calculations for Text position in ButtonWidget
2018-07-05 23:22:09 +01:00
abcdefg30
0f1cd07dee
Don't render empty background images
2018-02-18 20:18:30 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +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
1e0148e092
Migrate ButtonWidget to NamedHotkey.
2017-08-25 21:56:52 +02:00
rob-v
0c67ca3321
Add ButtonWidget.DisableKeySound property
2017-08-09 21:50:34 +01:00
Paul Chote
f1eb96b273
Add DisableKeyRepeat flag to ButtonWidget.
2017-06-06 08:53:54 -06:00
Paul Chote
8f2a933ba8
Add support for button tooltip descriptions.
2017-06-06 08:53:54 -06:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Oliver Brakmann
1059d5b88d
Add a Shadow option to LabelWidget and ButtonWidget
2016-09-02 20:58:46 +02:00
Oliver Brakmann
d0109491a7
Split ChromeMetrics' ContrastColor options into two
...
One for dark backgrounds, one for light ones. The light one isn't currently being used, but will be by future commits
2016-09-02 20:39:27 +02:00
Paul Chote
dbe55eedaf
Fix multi-line tooltip padding.
2016-03-12 16:43:05 +00:00
Paul Chote
a6c4eb330a
Remove modRules widget logic argument.
2016-02-23 23:34:36 +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
Pavel Penev
19388fd773
Add ButtonBaseLine metric
2015-09-23 15:32:29 +03:00
Paul Chote
ef55d646f7
Unstatic the Sound class.
2015-09-20 14:11:06 +01:00
Paul Chote
e5c03413cc
Move common widgets from Game to Mods.Common.
2015-03-21 11:53:53 +00:00