Commit Graph

45 Commits

Author SHA1 Message Date
Paul Chote
ca082e3cec Allow ProductionQueue to filter by race. 2014-06-26 23:14:13 +12:00
RoosterDragon
38617dc0a9 Run StyleCop on the smaller projects.
Also add a copy of the rules to the CrashDialog and Irc projects.
2014-06-23 00:03:37 +01:00
ScottNZ
90894aa03e Use var everywhere 2014-06-15 22:17:34 +12:00
ScottNZ
dbffce81a6 Remove unused usings 2014-06-15 22:16:40 +12: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
Paul Chote
1b2a90c00c Migrate to System.Lazy. 2014-04-09 20:20:41 +12:00
Matthias Mailänder
67cd0645a4 update to .NET 4.0 2014-04-09 20:20:26 +12: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
94554d7678 Support nested scissor rectangles. 2013-10-25 08:31:34 +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
Matthias Mailänder
d278bc84d1 StyleCop clean Cnc DLL 2013-08-07 15:42:34 +02: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
eddc1fc0cf Remove duplication between ButtonWidget and ToggleButtonWidget. 2013-04-08 22:55:01 +12:00
Paul Chote
71999bdc52 Break production tabs logic into a separate file.
Also unhardcodes the production types.
2013-04-08 22:32:32 +12:00
Paul Chote
5580ad4663 Fix C&C sidebar cursor/world cursor interaction. Fixes #2989. 2013-04-08 20:16:09 +12:00
Matthias Mailänder
1f99b1ec8e make hotkey user-configurable via in-game settings 2013-02-09 14:08:36 +01:00
Scott_NZ
0c6daf191c Add button highlighting/glow effect, to be used for the objective button when the objectives update 2012-10-02 21:52:43 +13:00
Matthias Mailänder
70a5333b40 fixes #2363
typo leading to a crash when clicking a disabled tab
2012-08-22 12:40:38 +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
Chris Forbes
c30d46c014 #2051 fixed -- Widget.Get() throws by default 2012-04-27 19:39:07 +12:00
Chris Forbes
bf5be88c75 rename Ui.RootWidget to just Ui.Root 2011-12-13 23:46:58 +13:00
Chris Forbes
ed429a3b30 split Widget static bits into Ui static class 2011-12-13 23:38:59 +13:00
Chris Forbes
772734d032 merge cnc and ra lobby, fixes #1267, #1224, #106, others 2011-11-06 17:01:00 +13:00
Chris Forbes
00372f4748 more general tidying in CNC widget code 2011-10-21 22:58:49 +13:00
Chris Forbes
6010034b4a remove ObjectCreator.Param and all associated nonsense 2011-10-21 18:16:07 +13:00
Chris Forbes
55036cd58c fix trailing whitespace everywhere 2011-09-26 08:40:39 +13:00
Paul Chote
ac7c25efa3 Prioritize alerted tabs when switching group / via hotkey. 2011-07-25 22:23:15 +12:00
Paul Chote
1bafd35d61 Rework ProductionTabsWidget getting/setting of the current queue. 2011-07-25 22:23:15 +12:00
Paul Chote
9fb72c9063 Play click sound when using `tab' to cycle queues. 2011-07-25 22:23:15 +12:00
Paul Chote
1c29c95614 Use toggle artwork for production tabs. Change tab label color on alerted tabs. Contributes towards #1006. 2011-07-15 21:31:48 +12:00
Paul Chote
fef8008c87 Add click sounds to production tabs. Contributes towards #1006. 2011-07-15 21:31:47 +12:00
Paul Chote
4d2310b077 Add left and right arrows for the tabstrip. Rearrange chrome.png layout slightly. 2011-07-15 21:31:47 +12:00
Paul Chote
dc0c0e744a Production group icons 2011-07-14 20:29:14 +12:00
Paul Chote
29a90021f6 Fix production tabs crash 2011-07-14 20:29:13 +12:00
Paul Chote
e9d67860de Proper mouseover support. 2011-07-14 20:29:02 +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
Paul Chote
5f8beb632a Switch tabs when a queue is lost, hide tab-strip when there are no queues available, rename queueType -> queueGroup. 2011-07-14 20:29:01 +12:00
Paul Chote
a065ba0338 Keyboard support for production palette:
y/u/i/o/p map to Buildings/Defense/Infantry/Vehicles/Aircraft.
Tab or successive y/u/i/o/p will switch tabs within a category.
Successive clicks on category icons will also switch tabs.
Shift + keyboard/click cycles tabs in reverse.
2011-07-14 20:29:01 +12:00
Paul Chote
6877c29fa6 Reimplement production queue switching from selection. 2011-07-03 07:02:17 +12:00
Paul Chote
c76811c5e1 Rewrite production tabs (again): Avoid doing a pile of work every tick; support multiple queue types grouped under one category; Tab numbering is sticky. 2011-07-03 01:48:14 +12:00
Paul Chote
b85fce3b41 Disable queue buttons when there are no tabs 2011-07-02 21:37:31 +12:00
Paul Chote
fe380b13ac Rewrite ProductionTabsWidget. 2011-07-02 21:18:26 +12:00
Paul Chote
d5e63538ad Port production palette from ui2 branch. Needs reworking. Unfinished. 2011-07-02 07:32:34 +12:00