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
Matthias Mailänder
9c483a912e
added a new hotkey to trigger pixel doubling
...
closes #5122
2014-04-18 17:49:55 +02:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Paul Chote
9541686de3
Add an order button for beacon placement.
2014-03-22 00:12:28 +13:00
Matthias Mailänder
d7b891d995
Merge pull request #4682 from ScottNZ/beacon
...
closes #2320
closes #3767
closes #3810
2014-02-23 09:55:23 +01:00
Taryn
d5f4813bc4
Actors with EnableStances set to false should now ignore stance change commands.
2014-02-21 19:14:22 -06:00
ScottNZ
0a9a959ecf
Change spacebar key to move to the last visible radar ping location
2014-02-22 00:07:54 +13:00
ScottNZ
2a8efde8e6
Add map beacons and radar pings
2014-02-22 00:07:53 +13:00
Paul Chote
85500c0ec7
Tidy AutoTarget code.
2014-02-01 10:55:04 +13:00
Matthias Mailänder
2e6646bd73
cycle production buildings ordered by products
2013-12-08 12:02:44 +01:00
Matthias Mailänder
b72ea8c227
added a new hotkey to cycle production buildings except conyards
2013-12-07 12:20:10 +01:00
Curtis Shmyr
d30f60809b
Added 2 settings for unit health bars: always show unit health, and team health bar colors
2013-11-24 12:12:52 -07:00
ScottNZ
00ec1ca87a
Remove unused usings
2013-11-12 19:39:33 +13:00
ScottNZ
7c5f3cc0f1
Replace some Where-FirstOrDefault chains with a single call to FirstOrDefault
2013-11-12 17:21:31 +13:00
ScottNZ
9eff54c217
Add MAD Tank and InvalidTargets field to WeaponInfo
2013-11-02 17:19:08 +13: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
f575c20d38
Route viewport centering via WorldRenderer.
2013-10-05 21:01:21 +13:00
Paul Chote
b3d608092c
Tidy WorldCommandWidget.
2013-10-05 21:01:21 +13:00
ScottNZ
5f3563d83e
Fix #3354 : Guard queries trait from destroyed object
2013-05-31 18:10:56 +12:00
Scott_NZ
6e5d58379f
Add unit guarding
2013-05-16 21:23:58 +12:00
Matthias Mailänder
f4abe08863
fixes #2947 don't perform keyboard orders on destroyed actors
2013-04-04 19:24:30 +02:00
Matthias Mailänder
0a82bfe552
format TODO: uniformly to auto-generate task list in MonoDevelop
2013-03-27 09:45:17 +01:00
Matthias Mailänder
7f6eaf8d5e
move order button hotkey logic to ingame chrome logic
...
removes power-down again from cnc mod as it is not wanted there
2013-03-23 09:47:35 +01:00
Matthias Mailänder
0978d21439
fix problems in MultiTapDetection
2013-03-02 16:52:59 +01:00
Matthias Mailänder
c0a702a386
new hotkey to center your view on the current selection
2013-03-02 11:53:45 +01:00
Matthias Mailänder
b31f830cb1
key config settings code cleanup
...
- move label and textfield widget lookup into SetupKeyBinding
- fix wonkey indentions
- remove explicit private in WorldCommandWidget
2013-03-01 19:13:21 +01:00
Matthias Mailänder
1f99b1ec8e
make hotkey user-configurable via in-game settings
2013-02-09 14:08:36 +01:00
Matthias Mailänder
c5313375f0
pull mouse button preference from global property
2013-01-18 10:57:41 +13:00
Matthias Mailänder
d52394bb47
add classic left-click orders
2013-01-18 10:57:40 +13:00
James Dunne
9c49143534
New types for cell and pixel coordinate position/vectors.
2012-06-21 15:36:59 -05:00
Chris Forbes
5c4e49cc3f
fix #2196 - crash when cycling stances while a unit dies
2012-06-21 09:33:47 +12:00
Chris Forbes
809b716d0d
tidy silly Enum.GetValues type nonsense
2011-12-31 11:02:38 +13:00
Chris Forbes
0d25b6b5c9
use spacebar to go to last attack event
2011-12-31 10:48:30 +13:00
Chris Forbes
5a029e337a
fixed #1257 - predict stance changes on the client
2011-11-04 19:09:46 +13:00
Chris Forbes
6010034b4a
remove ObjectCreator.Param and all associated nonsense
2011-10-21 18:16:07 +13:00
Chris Forbes
bc6af1841b
fix indents everywhere
2011-10-18 15:10:17 +13:00
Chris Forbes
7f1918d07b
add stance cycling on 'z'
2011-10-11 09:33:50 +13:00
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Chris Forbes
082603dd54
don't offer attackmove OG in cases for other players' stuff
2011-09-04 10:49:26 +12:00
Chris Forbes
014e63383b
fix comment in WorldCommandWidget
2011-09-04 10:45:10 +12:00
Chris Forbes
d3def71340
Add ReturnToBase (F) support for aircraft; #1084
2011-08-13 15:01:41 +12:00
Paul Chote
06990e356f
Simple world tooltip.
2011-07-14 20:29:12 +12:00
Paul Chote
1114293035
Apply consistent widget method names. Semantic change: Widgets that want to tick when !Visible must override TickOuter() instead of Tick().
2011-07-14 20:29:02 +12:00
Chris Forbes
93a2e478f9
fix 'exploit detected' spam when selecting someone else's units and pressing s/f/x
2011-04-13 20:13:54 +12:00
Paul Chote
b0425aff3b
Renormalize line endings and fix copyright headers again.
2011-04-07 21:15:42 +12:00
Paul Chote
1ceede4322
Fix #656 - base cycling fired on both key down and key up.
2011-03-22 21:21:34 +13:00
Paul Chote
eb69b697b1
Fix bogus handling of special keyboard characters everywhere else. Textfields now only accept valid characters, support right-delete.
2011-03-18 10:48:12 +13:00
Chris Forbes
a3994df925
queries dies
2011-03-17 22:09:10 +13:00
Chris Forbes
149324ea92
remove most of the crap from queries
2011-03-17 22:09:08 +13:00