Paul Chote
7b3a0ebeb5
Tidy production traits.
2014-06-26 23:14:10 +12:00
Paul Chote
d4227fa13e
Fix production tooltip display.
2014-06-26 23:12:23 +12:00
Matthias Mailänder
3e627d2eba
rename ore to the more generic name resources everywhere
2014-06-20 11:11:31 +02:00
ScottNZ
90894aa03e
Use var everywhere
2014-06-15 22:17:34 +12:00
deniz1a
1821c52db0
Make "Ready" text alternate between red and white
...
Make color of "Ready" text alternate between red and white.
Made the code cleaner.
Whitespace correction.
Whitespace correction again.
Change color from red to green and make it moddable
Use enum for ReadyTextStyle
Use enum for cnc
Made variables public and simplified if statements
fix enum
fix enum and )
ReadyText settings in ra yaml
ReadyText settings in cnc yaml
Move values from code to ra yaml
Move values from code to cnc yaml
revert code changes cnc
revert code changes ra
move around a bit in ra yaml
move around a bit in cnc yaml
Add values to d2k yaml
2014-06-10 12:00:57 +03: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
WolfGaming
00698cefff
Added in code for Tech Levels using prereqs
...
and fixed up some kinks of the old system
2014-05-19 03:29:25 +00:00
Pavlos Touboulidis
b560268495
Change animations to use the proper SequenceProvider
...
Remove references to the global "Game" and use the SequenceProvider
of the current world/map.
2014-05-17 14:33:16 +03:00
Pavlos Touboulidis
750fc4e02c
Merge ModRuleset and MapRuleset into Ruleset
2014-05-17 14:33:16 +03:00
Pavlos Touboulidis
63ec6d60e7
Refactoring to remove static Rules & SequenceProvider
2014-05-17 14:32:03 +03:00
Saticmotion
1bf3f3e03e
The engine now uses the SDL2.0 scroll events properly.
...
Scroll speed is now a user preference.
2014-05-16 13:56:22 +02:00
Sebastien Kerguen
a7c77d4155
Fixes the speed of the blinking READY text (in RA & TD).
2014-04-24 20:22:22 +02:00
Paul Chote
1a69118f02
Make the ready overlay blink. Fixes #3032 .
2014-04-22 23:49:24 +12:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Ripsn
59a1cfe914
Fixed - Small portion of Production tab on Right side unresponsive
2014-04-04 19:09:56 +13:00
Kanar
17cf890dce
Enables "insufficient power"-speech in RA and C&C when powered-down supportpowerwidget is clicked
2014-01-27 04:29:32 +01:00
Kanar
aace7ca607
Disables "building"-speech when nothing more can be built
2014-01-18 22:42:05 +01:00
Matthias Mailänder
316161a3e0
add audio feedback on mouse-wheel and hotkey build palette cycle
2013-12-07 12:20:07 +01:00
Matthias Mailänder
bcba26a04e
don't hardcode SHIFT modifier for backwards tab cycle
...
closes #4144
2013-12-07 12:19:32 +01:00
Paul Chote
6881dcc710
Fix UI rendering of offset sprites.
2013-12-01 09:49:27 +13:00
ScottNZ
1394c1dcee
Remove some misc redundancies
2013-11-12 19:39:39 +13:00
Matthias Mailänder
a6f06a5dfd
fixed broken build palette hotkeys
...
support modifiers for build palette hotkeys
2013-11-09 12:18:07 +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
ScottNZ
42a4d30162
Set up English translation for requires/on-hold/ready texts
2013-10-14 19:38:21 +13:00
Paul Chote
b7123cda7d
Route screen size queries via Game.Renderer.
2013-10-05 21:01:21 +13:00
Paul Chote
32c3563a04
adjust the build palette origins to icon width
2013-08-17 23:31:25 +02:00
Matthias Mailänder
376a6c7a5d
read the production icons from sequences
...
this allows d2k to read them from DATA.R8 without trouble
2013-08-17 23:31:22 +02:00
Paul Chote
206fc0ea1d
Eat mouse-up events in RA production palette. Fixes #2192 .
2013-07-28 20:00:08 +12:00
Matthias Mailänder
c14dbb29c9
avoid notification spam when the build palette is left-clicked
...
fixes #2361
2013-05-13 23:43:37 +02:00
Curtis Shmyr
3b8957a65e
Remove alt key modifier from build palette hotkeys. Changed some hotkeys for units and buildings.
2013-04-21 17:28:12 -06:00
Matthias Mailänder
4a2473a1a5
customisable icon size in build palette for d2k, fixes #2521
2013-04-15 13:11:42 +02:00
Matthias Mailänder
70b40a54be
build palette hotkeys require ALT modifier to avoid conflicts
...
changed back the unit action hotkeys scatter / stance cycle
2013-04-08 09:37:54 +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
1f99b1ec8e
make hotkey user-configurable via in-game settings
2013-02-09 14:08:36 +01:00
Carko
d572e59d2e
Checking for build prerequisites before showing them in a tooltip
2013-01-09 07:54:01 +13:00
Chris Forbes
3eed137117
Merge pull request #2526 from Mailaender/strings
...
made all in-game strings customisable via .yaml files
2012-12-22 12:25:33 -08:00
Matthias Mailänder
f107f8a87b
expose strings from build palette widget to chrome yaml
...
prepare for localisation efforts
2012-12-22 18:25:18 +01:00
Matthias Mailänder
8246b2f35f
don't hardcode custom prerequisites anymore
...
to make those strings translatable
2012-12-22 17:42:57 +01:00
Matthias Mailänder
36fbddbb5c
fix d2k production queues
...
ClassicProductionQueue gets support for new notification system
d2k now uses the ClassicProductionQueue system to avoid spamming
Starport has cheaper threshold prices
adds a new production queue but has long delivery times
also no starport price fluctuation to improve balancing
2012-07-20 23:05:28 +02:00
James Dunne
59e1703b41
Added mouse-wheel support for flipping tabs in build palette.
2012-07-06 14:32:26 +12:00
Matthias Mailänder
7a578a0679
notifications (formerly EVAalerts) centralized and race specific
...
outsourced into notifications.yaml
triggered with PlayNotification(...)
(v2: less redundant code for PlayVoice/Notifications)
added harvester under attack and battlecontrol terminated
2012-07-01 14:39:30 +12:00
James Dunne
f5c606266d
Fixed shift-tab keyboard shortcut in build palette.
2012-07-01 13:08:00 +12:00
Matthias Mailänder
a64629f1c5
remove ready/hold/group pip from BuildPaletteWidget
...
and render as text instead
2012-06-27 13:19:52 +12:00
Chris Forbes
f83c9fd4d7
add IEnum<T>.JoinWith, use it to clean up a bunch of things
2011-11-01 21:57:58 +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
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Chris Forbes
bc8f02375f
fixed #1171 -- don't shade buildable things just because we're building something else
2011-09-16 20:56:24 +12:00
Chris Forbes
d75784df64
factor out build palette overlays; add timers
2011-08-21 14:26:28 +12:00