Commit Graph

26 Commits

Author SHA1 Message Date
Hellhake
fa72e04042 Remove BOM 2015-01-01 22:51:12 +01:00
Paul Chote
f4055dae53 Add --check-code-style utility command. 2014-12-25 10:18:20 +01:00
Paul Chote
ecd4479807 Move OpenRA.Lint into a --check-yaml utility command. 2014-12-25 10:10:57 +01:00
Paul Chote
380b0e1561 Capitalise cursor properties. 2014-12-23 22:09:21 +13:00
Paul Chote
2ed594fd86 Introduce map Visibility field.
This replaces the Selectable, UseAsShellmap, and special-cased Type = "Mission" fields.
2014-12-23 09:08:00 +13:00
Paul Chote
5b011e6baf Merge pull request #7072 from obrakmann/fmv-overhaul
Move FMV playback from Lua scripts to widgets
2014-12-19 17:43:07 +13:00
Oliver Brakmann
280b30961f Add plumbing for short game option 2014-12-18 20:03:26 +01:00
Oliver Brakmann
e342619ac7 Add video support to legacy map importer
This enables the map importer to map the .ini video definitions to ours.

The mapping generally is as follows:

Intro => BackgroundInfo
Brief => Briefing
Action => GameStart
Win => GameWon
Lose => GameLost

An issue in some Red Alert maps means that this mapping is not always
quite correct. In those maps that do not have a 'Brief' video defined
(scg03a is an example), Westwood has assigned the video that should
probaby have been the 'Action' video to the 'Intro' slot instead. I can
only assume that that was done due to some limitation in the original
game code. Mappers will have to correct that assignment manually in
those cases.
2014-12-18 18:59:42 +01:00
Paul Chote
ecd3809bc2 Fix a collection of whitespace-style issues in Mods.Common. 2014-12-14 17:06:43 +13:00
atlimit8
bbd54cb32f Added IDisabledTrait & rewrote upgrade code using a level-based approach.
Upgradeable traits are notified whenever an upgrade of their declared types are granted or revoked.  The traits maintain their own internal level counter, which is then used to enable or disable the trait functionality.  A trait can register for multiple upgrade types which then all affect the internal level counter.

	IDisabledTrait for identifying (and filtering) disabled traits
	UpgradableTrait provides an abstract base for traits to support upgrade levels
	Added IDisabledTrait support to GlobalButtonOrderGenerator

	Includes rework by pchote with alterations.
2014-11-26 05:45:26 -06:00
Taryn Hill
b8f5786bdb Clean up some chars. 2014-10-30 20:34:56 -06:00
Matthias Mailänder
a3baee9d68 remove BelowUnits
closes #3670
2014-10-29 21:38:30 +01:00
Paul Chote
87c02adcb5 Fix the --png utility command. Closes #6845. 2014-10-27 09:17:29 +13:00
RoosterDragon
d671e1de01 Create a separate FrameCache for caching sprite frames.
We split the caching SpriteLoader into a SpriteCache and FrameCache. SpriteLoader instead becomes a holder for static loading methods.

Only a few classes loaded sprite frames, and they all use it with a transient cache. By moving this method into a new class, we can lose the now redundant frame cache, saving on memory significantly since the frame data array can be reclaimed by the GC. This saves ~58 MiB on frames and ~4 MiB on the caching dictionary in simple tests.
2014-10-14 22:06:11 +01:00
Paul Chote
d658643b73 Move ShpTD sprite loading into Mods.Common. 2014-10-07 09:55:49 +13:00
Paul Chote
9cf8328979 Add plumbing for mod-defined sprite loaders. 2014-10-07 09:55:49 +13:00
Paul Chote
ad0da91ecc Remove --transpose utility command.
The engine has supported transposed sprites for a long time now.
2014-10-07 09:55:49 +13:00
Paul Chote
2b92ce7edd Use SpriteLoader for frame exporting. 2014-10-07 09:55:49 +13:00
huwpascoe
3ece9ede42 Turrets now realign when not attacking. 2014-10-04 01:18:19 +01:00
Paul Chote
8a014393a3 Rename UnitUpgradeCrateAction to GrantUpgradeCrateAction. 2014-10-01 21:29:22 +13:00
Paul Chote
abba61dd8c Replace RemoveOnConditions with KillsSelf.
Upgrades offer more flexibility than prerequisites.
2014-10-01 21:29:21 +13:00
Paul Chote
968486a03e Reimplement iron curtain as a generic stat upgrade. 2014-10-01 21:29:19 +13:00
Paul Chote
c697a1e7b4 Add a UnitUpgradeManager trait.
This introduces support for timed upgrades, starting with crate buffs.
2014-10-01 21:28:45 +13:00
Matthias Mailänder
a9548a7fa4 fix typos again 2014-09-27 15:12:14 +02:00
Paul Chote
372d03c320 Convert SelfHealing to upgrades. 2014-09-27 22:14:45 +12:00
Alexander Fast
08890b0994 Added IUtilityCommand and move default commands into Mods.Common. 2014-09-21 10:15:50 +12:00