RoosterDragon
a6cda967c2
Formatted all files.
...
Automatically formatted all files via VS. This generally corrects indentation, removes trailing whitespace and corrects misplaced tabs or spaces. Manually tweaked a few files where required.
2015-01-06 21:28:50 +00:00
atimoschenkow
831f19e993
A selection box is drawn if the mouse exits the radar widget while dragging the viewport.
...
These changes prevent this side effect.
2015-01-04 17:06:50 +01:00
Oliver Brakmann
4e3f565354
Fix broken orders when actors are selected.
...
Fixes an oversight in #6949 .
2014-11-15 21:00:52 +01:00
Paul Chote
f5c09121ad
Remove buggy classic mouse orders. Closes #3153 .
2014-11-15 09:40:25 +13:00
Oliver Brakmann
eff54a614b
Fix selection glitch in observer mode
...
Fixes #6421 .
2014-09-07 00:52:55 +02:00
Paul Chote
13656710ca
Fix unit selection hotkeys for players. Fixes #5753 .
...
This also explicitly disables them for spectators.
2014-07-29 23:32:47 +12:00
Oliver Brakmann
ad2327828d
Make actors outside map borders selectable for their owner
...
PR #5967 only made planes not lose their selection when they strayed
outside the map border. This PR makes it possible to select them when
they already are outside the map. It also ensures that the selection
decorations are drawn. Rank designations, however, will disappear when
a unit leaves the map.
Fixes #5651 for real, then.
2014-07-26 11:05:41 +02:00
Paul Chote
e5b863f926
Merge pull request #5698 from Mailaender/sonar
...
Added the sonar pulse to reveal sub marines
2014-07-09 10:44:47 +12:00
Paul Chote
802b6a652c
Revert "new PauseState to differentiate game and editor pausing"
...
This reverts commit d1e18cad7a .
2014-07-08 10:42:00 +12:00
Matthias Mailänder
5cdf0e6a67
generalize MoveFlash as parametrized SpriteEffect
2014-07-07 15:23:14 +02:00
Matthias Mailänder
d1e18cad7a
new PauseState to differentiate game and editor pausing
2014-07-06 08:24:08 +02:00
Paul Chote
9487f49cd5
Replace WPos.ToCPos -> Map.CellContaining.
2014-06-27 23:30:40 +12:00
Paul Chote
bbd1331536
Clean up actor selection in WorldInteractionControllerWidget.
2014-06-27 19:20:44 +12:00
Paul Chote
7d24053f52
Introduce Order.SuppressVisualFeedback to cleanly disable flashes.
2014-06-26 23:14:13 +12:00
ScottNZ
90894aa03e
Use var everywhere
2014-06-15 22:17:34 +12:00
Paul Chote
d8e5177a36
Merge pull request #5405 from RoosterDragon/min-max
...
Added MinBy, MaxBy, etc.
2014-06-09 17:42:01 +12:00
Matthias Mailänder
3a1c41c8ce
move pixel doubling and health bar hotkeys to shared widget
...
closes #5572
2014-06-07 12:26:58 +02:00
RoosterDragon
b733465f33
General uncontroversial cleanup:
...
- Made private methods static where possible (runtime can elide checking the object for null).
- Declared attribute classes as sealed (allows reflection on attributes to complete faster).
- Moved some static cctor's into field initializers (static cctor's are slower than static field initializers).
- Made classes static if they contained only static methods (can't create instances of useless objects).
- Use inferable Exts.Lazy and not new Lazy<T>().
- Added required STAThread attribute to CrashDialog.
- Removed unused parameters in private methods.
- Added Serializable attribute to exceptions.
- Added parameter name in calls to ArgumentNullException.
- Use of as operator instead of is + cast.
- Changed (x as Foo).Bar anti-pattern into ((Foo)x).Bar. Results in sensible cast exceptions on error rather than null dereferences.
- Removed unused method in NullShader.
2014-05-23 15:50:54 +01:00
RoosterDragon
0ea3509ee4
Added MinBy, MaxBy, MinByOrDefault and MaxByOrDefault methods and replaced calls of the style OrderBy[Descending]().First[OrDefault]() which is not as performant.
2014-05-23 08:23:42 +01:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Paul Chote
a31cdec87a
Move control group logic into its own logic class.
2014-03-22 22:32:41 +13:00
Pizzaoverhead
7be3078115
Adds selecting of all units matching the current type across the screen or map using Ctrl + T.
2014-02-20 21:59:23 +00:00
Matthias Mailänder
7d19e25627
don't crash on empty orders
2013-12-30 08:44:14 +01:00
Matthias Mailänder
08166c0a64
added a new hotkey to select all units on screen
...
closes #4182
2013-12-06 11:26:52 +01:00
ScottNZ
1394c1dcee
Remove some misc redundancies
2013-11-12 19:39:39 +13:00
ScottNZ
fb4e1b4805
Fix FlashTarget crash
2013-11-11 23:49:00 +13:00
Paul Chote
a1f876b13c
Use selection priority in double-click selection logic. Fixes #4053 .
2013-11-09 16:39:30 +13:00
Matthias Mailänder
6f8e78761c
StyleCop cleanup
2013-11-02 23:18:23 +01:00
Matthias Mailänder
21b7d0eadb
loop all orders only once
2013-11-02 23:18:19 +01:00
Matthias Mailänder
6b0238a6cc
don't stack flashes and filter non unit actor related orders
2013-11-02 18:29:54 +01:00
Matthias Mailänder
e0e3f1155a
avoid additional layers of abstraction
2013-11-02 18:12:46 +01:00
Matthias Mailänder
be1ab707c5
separate TargetFlash from DrawLineToTarget
2013-11-02 18:03:55 +01:00
Matthias Mailänder
b1c3ac20bf
brought back the MoveFlash
...
closes #2592
2013-11-02 18:03:49 +01:00
Paul Chote
7ffbfb9b7e
Add a Hotkey class for user-configurable keys. Fixes #3779 .
...
Users can now define and use hotkeys that include modifiers (ctrl/meta/shift/alt).
2013-10-22 09:14:05 +13:00
Paul Chote
aab6fec68b
Remove VirtKey and KeyName.
2013-10-21 20:24:24 +13:00
Paul Chote
919181e04d
Clean up viewport internals.
2013-10-05 21:01:22 +13:00
Paul Chote
0b560bfc6e
Move more viewport lookups to WorldRenderer.
2013-10-05 21:01:21 +13:00
Paul Chote
f575c20d38
Route viewport centering via WorldRenderer.
2013-10-05 21:01:21 +13:00
Paul Chote
b100b4131c
Remove PPos hacks from WorldInteractionController.
2013-09-27 15:41:32 +12:00
Paul Chote
0dc50c65f5
Remove unnecessary int2 -> PPos -> int2 conversions.
2013-09-27 15:41:32 +12:00
Paul Chote
dfd51c0caa
Introduce ScreenMap trait for caching screen-coord queries.
2013-09-27 15:36:25 +12:00
Paul Chote
7c91d6976d
Split keyboard and mouse focus.
...
Fixes #3304 .
Fixes #2075 .
Fixes C&C chat focus bug.
2013-07-27 21:02:52 +12:00
Paul Chote
27f04c1b78
Rename FindUnits -> FindActorsInBox.
2013-07-20 15:34:28 +12:00
Paul Chote
37c02fea79
Remove PPos overload of FindUnits.
2013-07-20 15:34:27 +12:00
Paul Chote
18cecf8a67
Disable pausing for spectators. Fixes #3340 .
2013-07-06 11:31:43 +12:00
Paul Chote
c3c5321e1d
Predict local pause state to avoid order lag. Fixes #3223 .
2013-05-09 22:42:55 +12:00
Paul Chote
e545865599
Add Selectable field to Selectable.
...
There are a bunch of bogus assumptions about
targetable actors being selectable. These aren't
easily fixed, so this add a Selectable field that
can be diabled for things we want to target, but
not select.
2013-04-15 08:06:52 +12:00
Paul Chote
c428cad70c
Refactor per-player shrouds & fix shellmap shroud.
2013-04-10 19:36:03 +12:00
Paul Chote
096d95f391
Fix bogus pause logic.
2013-04-07 23:38:52 +12:00
Matthias Mailänder
775b0409c4
don't hard-code the pause-key
2013-03-02 15:56:13 +01:00