RoosterDragon
d4135d608e
Fix IDE0039
2023-02-27 10:09:11 +01:00
Gustas
8d0fe52dd8
Remove unnecessary parentheses
2023-02-27 08:36:47 +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
Matthias Mailänder
0e7ad43425
Remove unused parameters.
2022-04-01 23:30:26 +02:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
teinarss
10676be377
Replace F extension with string interpolation
2021-05-08 22:20:59 +02:00
Paul Chote
7e9d291223
Add IResourceRenderer interface.
2021-03-20 16:45:41 +01:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
Andre Mohren
914950c4a5
When zooming using the mousewheel, zoom towards the pointer location.
2020-07-17 20:12:10 +02:00
abcdefg30
3ba86f329f
Remove Game.HasInputFocus
2020-04-17 22:26:03 -05:00
Matthias Mailänder
80131e7ec0
Group readonly fields.
2020-04-15 21:42:50 +02:00
Matthias Mailänder
ac381a6f58
Allow multiple ResourceRenderer traits.
2020-04-15 21:42:50 +02:00
Matthias Mailänder
521b516bf9
Mark suggested fields as readonly.
2020-04-15 21:42:50 +02:00
Paul Chote
3155291064
Restore ability to configure RMB orders + RMB panning.
2020-03-25 12:36:21 +01:00
Paul Chote
e138afc328
Overhaul Input settings.
2020-01-26 16:52:14 +01:00
teinarss
f0b69f8b8d
Separated resource rendering into another trait
2020-01-14 19:38:47 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
Paul Chote
28dbda29e3
Add zoom hotkeys.
2019-12-13 21:29:43 +01:00
Paul Chote
1dcb903580
Implement new viewport size/zoom UI.
2019-12-13 21:29:43 +01:00
Ivaylo Draganov
c1fc0c1b74
Allow selection priority to be modified using a hotkey
2019-06-29 20:46:12 +02:00
teinarss
f07fb57e98
Rework relative mouse events.
2019-06-27 23:34:16 +02:00
Paul Chote
44e41cc054
Add key handling to order generators.
2019-06-10 11:46:32 +02: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
224377f078
Track visibility modifiers on FrozenActors.
2018-12-17 22:19:26 +01:00
Paul Chote
9ec22e48a6
Revert "Re-active Edge-Scrolling for inverted Mouse-Scrolling"
...
This reverts commit c4867d4030db1edc6400e6f3f62ca64905607a3c.
2018-08-18 16:51:51 +02:00
Kanar
dc46dd1f26
Re-active Edge-Scrolling for inverted Mouse-Scrolling
2018-03-30 23:47:32 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
Paul Chote
47fa9e496d
Fix tooltips not showing for frozen actors with dead backing actors.
...
This also documents some old bugs.
2018-01-01 16:01:44 +01:00
Paul Chote
6f5d035e79
Introduce IMouseBounds and split/rework mouse rectangles.
...
The render bounds for an actor now include the area covered
by bibs, shadows, and any other widgets. In many cases this
area is much larger than we really want to consider for
tooltips and mouse selection.
An optional Margin is added to Selectable to support cases
like infantry, where we want the mouse area of the actor
to be larger than the drawn selection box.
2017-12-11 19:45:07 +01:00
RoosterDragon
7a7eed4fb7
Add FirstEnabledTraitOrDefault helper method.
...
This avoids the allocations caused by LINQ when using traits.FirstOrDefault(Exts.IsTraitEnabled). This is important in FrozenActorLayer.RefreshState which is called very often. We apply the new helper method to all areas using the old pattern. An overload that takes an array allows arrays to be enumerated without causing allocations.
2017-12-10 13:39:24 +00:00
Paul Chote
2f79173044
Migrate hotkey consumers to HotkeyManager.
2017-12-08 01:29:15 +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
b3b2efa781
Move hardcoded viewport keys into yaml.
2017-09-10 21:30:55 +02:00
Paul Chote
22d7031819
Focus the ViewportController on Standard/Inverted scroll modes.
2017-08-10 12:50:00 +02:00
Paul Chote
d0d8062dbf
Extract ViewportEdgeScrollMargin settings entry.
2017-08-10 12:44:44 +02:00
reaperrr
d949e17b88
Perform FogObscures as late as possible
...
FogObscures is more expensive than simpler boolean, player or HasTraitInfo checks, so in these places it makes sense to perform the other checks first.
2017-08-07 09:42:12 +02:00
Paul Chote
cd9ef47f94
Suppress unrelated mouse events while scrolling.
2017-07-08 22:21:04 +02:00
rob-v
f341330d5e
Fix Joystick scrolling stuck
2017-07-08 22:21:04 +02:00
Paul Chote
ce233a6cca
Reduce edge scrolling threshold and polish cursor hotspots.
2017-06-06 08:53:54 -06:00
rob-v
fc0495ac27
Fix keys scrolling stuck (+ some function double calls)
2017-06-01 23:07:25 +02:00
rob-v
e87a96f2b8
Fix/Disable Edge scroll while standard (middle mouse) scroll
2017-04-10 19:56:53 +02:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
reaperrr
074bb78cbd
Made Tooltip trait upgradable
2016-10-23 14:59:18 +02:00
Paul Chote
404d8235c8
Show a tooltip over map resources.
2016-09-25 17:04:17 +01:00
RoosterDragon
2ffea5db54
Change Game.RunTime to a long to prevent overflow.
2016-09-20 19:06:10 +01:00
Oliver Brakmann
f554531bd2
Fix not showing scroll cursor during standard-scrolling
...
... when edge scrolling was also disabled.
2016-09-02 21:34:47 +02:00
Oliver Brakmann
f5be504640
Add a deadzone for standard scrolling
2016-09-02 21:34:46 +02:00
Oliver Brakmann
a8dc8454cb
Fix ignoring deadzone with joystick scrolling
...
This re-introduces a bug where releasing the RMB button causes an order to be generated for the selected units if the user didn't move their mouse just prior.
2016-09-02 21:34:46 +02:00