Paul Chote
4ba78f65b9
Add Dispose support to widget logic objects.
2015-10-17 22:13:22 +01:00
abcdefg30
d7c0d4197c
Fix a possible crash in WorldInteractionControllerWidget
2015-10-05 17:23:42 +02:00
Joppy Furr
07273fa666
Add support for Tiberian Sun style right-click-and-drag scrolling
...
This patch introduces support for the right-click-and-drag scrolling that
is available in Tiberian Sun and Red Alert 2. It can be enabled by
selecting "Joystick" scrolling in the Input settings.
The speed of the scroll is proportional to the product of the distance of
the drag, and the Scroll Speed selected in the Input settings menu.
A side-effect of this is that events previously tied to right clicks on
the world are now based on the release of the click rather than the press.
The "Middle-Mouse Scrolling:" option is renamed
to "Mouse Scrolling Method:"
2015-10-04 16:22:55 +13:00
atlimit8
8162fa27ab
Add ActorInfo.HasTraitInfo<T>() requiring ITraitInfo types
2015-09-19 09:49:24 -05:00
atlimit8
85fab45451
Remove Actor.HasTrait<T>()
2015-09-19 09:49:23 -05:00
Paul Chote
1109ec53d1
Update UI timers for variable game speed.
2015-09-06 17:48:42 +01:00
Paul Chote
710a32d1ce
Extract ScrollPanel tooltip workaround into common code.
2015-08-05 09:11:19 +01:00
deniz1a
ef143e5f8a
Freezes map after game ends.
...
Adds newline.
Disables keyboard hotkeys for units after game ends.
2015-07-25 18:56:23 +03:00
penev92
bb648decc3
Rename Player.Country to Player.Faction
2015-07-15 04:06:52 +03:00
penev92
2e04fb5ddd
Rename Faction trait members
...
Rename Faction.Race to Faction.InternalName
2015-07-14 18:50:39 +03:00
Matthias Mailänder
5c0c300c53
add a hotkey to hide the UI widgets
2015-06-28 16:29:25 +02:00
Pavel Penev
8b4d5c7fb2
Merge pull request #7930 from Mailaender/screenshot
...
Added a hotkey to take screenshots
2015-06-28 15:37:07 +03:00
Matthias Mailänder
2763e26d23
add a take screenshot hotkey
2015-06-27 16:29:33 +02:00
Matija Hustić
34d0518b29
Fixed regression from last PR.
2015-06-21 20:15:06 +01:00
reaperrr
c23ee1be2e
Remove Selectable boolean from Selectable trait
...
Add work-around for ta/td bridge huts since they need actor Bounds to
be targetable by C4/engineer repair.
2015-06-17 20:13:59 +02:00
abcdefg30
b98d98c6d6
Merge pull request #8212 from matija-hustic/selectable_classes
...
Added selection classes
2015-06-13 01:53:32 +02:00
Zimmermann Gyula
d5a5640f52
Adds an IconPalette property to Buildable and SupportPower traits.
2015-06-12 20:33:58 +02:00
Matija Hustić
e965a0d3f0
Touched up selection functionality.
2015-06-08 15:03:09 +01:00
Oliver Brakmann
da16142412
Enable unit selection keys for spectators and in replays.
...
Only work in per-player views.
2015-05-20 18:56:14 +02:00
Oliver Brakmann
9895aee6f2
Disable unit selection by double-clicking for enemy units
2015-05-20 18:28:34 +02:00
Paul Chote
444c02a498
Add ClickThrough property to ContainerWidget.
2015-05-15 17:08:32 +01:00
abcdefg30
c4a63eee30
Merge pull request #7875 from penev92/bleed_exposePlayerReferences
...
Add upgrade rules support for map PlayerReferences
2015-04-26 22:53:42 +02:00
penev92
2402b56da7
Reorganize PlayerReference loading to enable upgrade rules for them.
...
The PlayerReference definitions are now stored
as raw MiniYamlNodes in the map.
2015-04-26 23:16:20 +03:00
Paul Chote
f4987f7258
Add support for multiple logic objects on a widget.
2015-04-26 19:30:28 +12:00
Paul Chote
49624e335c
Remove legacy DIY view -> world conversions.
2015-03-31 20:59:52 +01:00
Paul Chote
e5c03413cc
Move common widgets from Game to Mods.Common.
2015-03-21 11:53:53 +00:00
Matthias Mailänder
7be8c4461b
Merge pull request #7405 from Rydra/upstream/int2immutable
...
Made int2 class immutable
2015-03-20 16:03:46 +01:00
David Jiménez
f15f1e41e8
Made int2 struct immutable
2015-03-20 13:54:01 +01:00
RoosterDragon
1515ac54f6
Enforce a line length limit.
2015-03-19 17:20:34 +00:00
WolfGaming
068a96fd46
Fixes NullPointerException when frozen.Actor is null.
2015-03-19 05:53:59 +00:00
WolfGaming
bf3ddcfbf1
Implemented an interface that allows traits to add custom information to tooltips.
2015-03-19 05:53:44 +00:00
abcdefg30
63fe578ba8
Allow picking of a random subfaction
2015-03-12 21:34:23 +01:00
DeadlySurprise
1a2e8d56d1
Fixed radar not showing move/attack cursors
2015-03-06 14:30:45 +01:00
Bynnar18
0abe8f9b2b
Fixes issues with support powers and adds property to all IOrderGenerator classes to determine priority over selection in the left-click order scheme.
2015-03-01 14:58:19 -06:00
Bynnar18
7b46b76329
Fixed left-click orders and implemented a selection deadzone.
2015-03-01 14:58:19 -06:00
Bynnar18
36d59d6b1d
Restored faulty left-click logic for now.
2015-03-01 14:58:18 -06:00
Pavel Penev
67cee6324c
Merge pull request #7511 from obrakmann/vqaplayer-no-mouse
...
Prevent VqaPlayerWidget from eating the radar bin's mouse input
2015-02-26 23:14:26 +02:00
Pavel Penev
293bb78a3c
Merge pull request #7457 from pchote/actorpreviews
...
Introduce ActorPreviewWidget (and other related changes).
2015-02-21 01:35:03 +02:00
Oliver Brakmann
10f0c83270
Prevent VqaPlayerWidget from eating the radar bin's mouse inputs
2015-02-20 22:44:37 +01:00
DeadlySurprise
7b53582c5e
Implemented Floating Text and radar video
2015-02-18 14:38:30 +01:00
penev92
9664e32005
Merge pull request #7424 from RoosterDragon/minor-alloc
...
Avoid some memory allocations
2015-02-16 20:20:40 +02:00
ScottNZ
582b6635ff
Brace style fixes
2015-02-13 02:32:49 +13:00
Paul Chote
8d51fb0e66
Use ActorPreviewWidget for the color pickers.
2015-02-10 15:22:42 +00:00
Paul Chote
268ca94dc1
Introduce ActorPreviewWidget.
2015-02-10 15:22:42 +00:00
RoosterDragon
7e28acadd8
DrawPanelPartial now specifies each sprite as an individual parameter.
...
This allows some array allocations to be avoided, and makes the code more obvious since each sprite is referred to by name rather than an array index.
2015-02-02 21:16:14 +00:00
RoosterDragon
82bea961ba
Checked LINQ queries and collections for inefficiencies.
...
- Made Array.IndexOf available via extension method.
- Made ToHashSet extension method.
- Change collections queried often via Contains into sets.
- Avoid Count() extension if Count or Length property exist.
- Made Count() > 0 checks and variations calls to Any() instead.
- Don't call ToList/ToArray if there is no benefit to materializing the sequence.
- If the sequence does benefit from materialization, follow this general pattern:
- Collection queried often via Contains use ToHashSet to speed up lookups.
- Short lived variables use ToList. This is because ToArray requires an extra copy to output the final size.
- Collections persisted into fields or for a long time use ToArray to minimize memory overhead.
2015-01-29 19:20:11 +00:00
Matthias Mailänder
24deec2a7b
fix CodeLineMustNotEndWithWhitespace
2015-01-25 18:41:29 +01:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
RoosterDragon
7cfece6dc0
Introduce a new type for representing map coordinates.
...
To resolve the ambiguity introduced when the introduction of isometric maps meant that cell and map coordinates were no longer equivalent, a new type has been introduced so they can each be represented separately.
2015-01-07 17:30:34 +00:00
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