RoosterDragon
cfde11556f
Enable Net 7 and Net 8 style rules.
2025-02-16 20:01:50 +02:00
RoosterDragon
aa121dcb2f
Use covariant return types.
...
Use the covariant return type feature of C# 9 to allow method overrides to be more specific about their return type. By exposing this information, e.g. for Widget.Clone(), callers will have more information. This allows various casts to be removed as the information is now available within the type system.
2025-01-15 17:29:02 +02:00
RoosterDragon
023d80b94d
Fix IDE0057
2023-04-08 16:51:51 +03:00
RoosterDragon
8ee6957e6a
Fix IDE0048
2023-03-01 21:56:28 +02:00
abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02: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
Ivaylo Draganov
cbdf6c3747
Add faction suffix support to text fields and scroll panels
2021-07-06 10:13:43 +02:00
Abdurrahmaan Iqbal
6967c1fff3
Pass KeyInput to OnKey functions
2021-07-03 14:49:03 +01: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
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
Andrew Odintsov
98d5b8c7cc
Remove redundant call to OnTextEdited
2020-05-14 11:01:48 +02:00
Andrew Odintsov
3f34154a1e
Add OnTextEdited call to RemoveSelectedText
...
This would allow expty text box to be processed and disable filtering
2020-05-14 11:01:48 +02:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00: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
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
Paul Chote
a0dcd9e106
Clear selection when a text field's contents is changed programatically.
2018-08-04 20:29:19 +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
Paul Chote
df20ae1aec
Fix TextFieldWidget margin properties not being cloned.
2018-07-29 00:30:17 +02:00
Paul Chote
59c2a9e4da
Add a Type (= General, Filename, Integer) to TextFieldWidget.
2018-05-05 00:15:06 +02:00
Joe Alam
7221c29d9b
Added text selection and copy support to TextFieldWidget.
...
Use Shift and navigation key (cursor, home, end) to select a portion of
text, and replace/delete/cut as appropriate.
Also provides support for selection with mouse (click and drag)
2018-04-08 19:24:22 +02:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06: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
abcdefg30
c35f9007c3
Merge pull request #9582 from ChaoticMind/ctrl_backspace
...
Implement some keyboard hotkeys for chat (TextFieldWidget)
2015-11-18 20:48:05 +01:00
Kevin Azzam
3c79e9075b
Add some hotkeys for OSX (cmd + arrow_keys, ctrl + k, and ctrl + d)
2015-11-18 18:44:02 +01:00
Paul Chote
3d7d7ff2a5
Allow chrome yaml to define disabled text fields.
2015-10-21 19:38:28 +01:00
Kevin Azzam
96c0c2dec6
Make ctrl+x cut to clipboard
2015-10-12 18:58:26 +02:00
Kevin Azzam
fdf993ddda
Reset cursor blinking after keyboard-activated cursor movement
2015-10-10 13:16:16 +02:00
Kevin Azzam
5e4ea69dbd
Refactor TextFieldWidget into much clearer and extensible code
2015-10-10 00:50:33 +02:00
Kevin Azzam
96c30788b0
Add hotkeys for TextFieldWidget including:
...
- ctrl+left/ctrl+right (cmd on osx) (back/forward by a word)
- ctrl+backspace/ctrl+delete (alt on osx) (delete word)
- ctrl+k/ctrl+u (cmd+delete/cmd+backspace on osx) (delete line from cursor)
- ctrl+x (cmd on osx) (deletes line)
2015-10-09 23:56:19 +02:00
deniz1a
d8c996f74a
Fixes spelling in comment.
2015-07-24 23:09:15 +03:00
Paul Chote
e5c03413cc
Move common widgets from Game to Mods.Common.
2015-03-21 11:53:53 +00:00