Paul Chote
811427adc4
Add HotkeyReference.IsActivatedBy method.
2017-12-08 01:29:15 +01:00
Paul Chote
c4237d6a1a
Rename NamedHotkey to HotkeyReference.
2017-12-08 01:29:15 +01:00
RoosterDragon
62ab6ae6f1
OccupiedCells and TargetableCells must return arrays, not just enumerables.
...
This allows callers to efficiently enumerate these returned collections without the allocation and overhead imposed by the IEnumerable interface. All implementations were already returning arrays, so this only required a signature change.
2017-12-07 20:39:30 +02:00
Paul Chote
9d2935935c
Add a debug visualization for screen map rectangles.
2017-12-04 23:10:23 +01:00
Pavel Penev
450cbeea96
Added an extra bit of installer data to Install.log
2017-12-02 00:08:50 +01:00
Paul Chote
8fea476a0d
Fix NRE when ProvidesPrerequisite is defined on the player actor.
2017-11-26 19:51:46 +01:00
Paul Chote
b898b5001a
Rename AttackBase.IsAttacking to IsAiming to make its uses and assumptions clear.
2017-11-26 15:58:00 +01:00
Paul Chote
ea05221180
Count AttackStatus.NeedsToTurn as valid for AttackBase.IsAttacking.
2017-11-26 15:58:00 +01:00
Marwan
8a38c6ef23
WithTextDecoration Fix
2017-11-26 15:35:50 +01:00
Paul Chote
855042894c
Fix bogus cached PowerState for map placed actors.
2017-11-26 03:37:33 +01:00
reaperrr
5ec3ad0957
Fix turrets following target even if AttackTurreted is disabled or paused
2017-11-25 03:55:56 +02:00
reaperrr
456d32f3eb
Make Attack* traits PausableConditional and replace IsDisabled with IsTraitDisabled checks
2017-11-25 03:55:56 +02:00
reaperrr
68487d1197
Replace turret IsDisabled check with AT.IsTraitDisabled check
2017-11-25 03:55:56 +02:00
reaperrr
cea2658f31
Remove IsDisabled from AffectsShroud traits
...
Makes them only disableable via conditions.
2017-11-25 03:55:56 +02:00
reaperrr
ede6d5a57d
Remove Actor.IsDisabled check from Cloak
...
Makes cloaking only disableable via conditions.
2017-11-25 03:55:56 +02:00
reaperrr
56b6aabbb8
Use new IAutoRenderSize for determining actor render bounds
2017-11-21 01:00:09 +02:00
reaperrr
5a596d27c9
Switch RenderNameTag to use SelectionOverlayBounds
2017-11-21 01:00:09 +02:00
reaperrr
6711af63eb
Move SelectionBarsRenderable to Mods.Common
2017-11-21 01:00:09 +02:00
reaperrr
be290cfabd
Split Actor.Bounds into RenderBounds and SelectableBounds
...
Additionally, internally renamed VisualBounds to SelectionOverlayBounds to avoid confusion with RenderBounds.
This step was necessary to prevent actors with selectable area smaller than their graphics to be removed too early from ScreenMap even though part of the graphics should still be visible.
RA cruisers were a prime example, but to a lesser extent several other actors were affected as well.
This separation also serves as preparation to determine the final RenderBounds from multiple source bounds later, to fix the remaining ScreenMap issues (building 'bibs', aircraft shadows).
2017-11-21 01:00:09 +02:00
Mustafa Alperen Seki
ca1448c7ba
Add Support of Types for GivesBuildableArea
2017-11-20 16:17:13 +02:00
Paul Chote
4cbc2ee6f3
Add support for custom sell cursors.
2017-11-19 23:40:33 +01:00
Paul Chote
5030a2257e
Delegate cursor selection to GlobalButtonOrderGenerator subclasses.
2017-11-19 23:40:33 +01:00
Andre Mohren
25968ee66f
Allow WithIdleOverlayInfo to render while the actor is being build.
2017-11-19 16:52:59 +00:00
Forcecore
c762453607
(External)Capturable are now conditional
2017-11-15 13:54:15 +02:00
reaperrr
a7620c97f0
Some internal renamings in power-related traits
2017-11-13 03:09:05 +02:00
reaperrr
7f5f2eac6f
Don't scale RepairIndicator with zoom
2017-11-13 03:09:05 +02:00
reaperrr
99edc71c54
PowerDown/low power refactor upgrade rule
2017-11-13 03:09:05 +02:00
reaperrr
917c6884ed
Make WithSpriteBody a pausable trait
...
Allowing to drop the PauseAnimationWhenDisabled property (in favor of using PausOnCondition).
2017-11-13 03:09:05 +02:00
reaperrr
786a0eb07f
Refactor PowerManager and RequiresPower to use conditions
...
Instead of Actor.IsDisabled.
Added INotifyPowerLevelChanged interface to do so as efficiently as possible.
2017-11-13 03:09:05 +02:00
reaperrr
6c02e3f2b7
Refactor CanPowerDown to provide a condition instead of triggering IsDisabled
2017-11-13 03:09:05 +02:00
reaperrr
d602ec6485
Rename SelfReloads to AutoReloads
2017-11-12 19:48:06 +00:00
reaperrr
18c371d702
Changed AmmoCondition to support condition stacking
2017-11-12 19:48:06 +00:00
reaperrr
9dabc9d672
Upgrade rule for adapting to removal of Armament.OutOfAmmo
2017-11-12 19:48:06 +00:00
reaperrr
8b7a71685c
Remove AmmoPool-awareness from Armament
2017-11-12 19:48:06 +00:00
reaperrr
ded92f394c
Upgrade rule for AmmoPool.SelfReloads removal
2017-11-12 19:48:06 +00:00
reaperrr
6f95080aa4
Add ReloadAmmoPool and adapt AmmoPool
...
Refactored and simplified Rearm activity.
Uses local Reload now.
Removed AmmoPool.SelfReloads.
2017-11-12 19:48:06 +00:00
Forcecore
d49c98ce18
Move activity implementation now uses ChildActivity
2017-11-12 19:46:05 +01:00
Forcecore
ef878c6aeb
Introduced CaptureTypes for TransformOnCapture
2017-11-12 18:14:30 +00:00
Mustafa Alperen Seki
ba50fbba18
Dont show refund text if Sellable: trait is disabled.
2017-11-05 16:22:42 +02:00
Forcecore
4c78a05081
ADD GrantConditionOnAttack Trait
...
Useful for making Gattling weapons (Yuri's Revenge and C&C Generals) or
Boris (RA2) / Natasha (RA3) call for airstrike.
2017-11-04 17:18:24 +01:00
Mustafa Alperen Seki
8914227811
Add ShowTicks to sellable
2017-11-04 17:16:26 +01:00
Paul Chote
faf2634e3d
Upgrade mod rules.
2017-11-04 16:08:58 +01:00
Paul Chote
d2f0e5ac2d
Replace Allow(Allies|Neutral|Enemies) with ValidStances enum.
2017-11-04 16:08:58 +01:00
Paul Chote
1caf982c1f
Support multiple capture types on Capturable.
2017-11-04 16:08:58 +01:00
Paul Chote
1376ad674e
Remove Player.CanViewActor and .CanTargetActor.
2017-11-03 09:56:00 +01:00
Paul Chote
47634b25f9
Remove IFogVisibilityModifier.
2017-11-03 09:56:00 +01:00
kosti1
6a750d7a65
Added buildradius checkbox to lobby options
2017-11-01 18:18:41 +01:00
Paul Chote
b8326bfead
Fix crash with AllyRepair on dead structures.
2017-10-26 18:48:41 +03:00
Paul Chote
5f9a67ed87
Migrate frozen actors from ExtraData to Target.
2017-10-26 18:48:41 +03:00
Andre Mohren
88c94ee841
Allow remaining time to be hidden in ProductionPaletteWidget.
2017-10-26 01:31:32 +02:00