Pavel Penev
8d56de80ca
Add ISoundLoader
...
The interface is to be implemented by all sound loaders, just like ISpriteLoader. All loading goes through the interface. This would allow mods to create their own sound loaders outside the engine.
Also add a SoundFormats property to mod.yaml, where mods can define what sound loaders they will need.
This requires Game.Sound to be initialized after the ModData is loaded.
2015-12-20 19:17:48 +02:00
Paul Chote
e021617c85
Remove duplication from FillRect.
2015-12-19 12:28:59 +00:00
Paul Chote
4ffee12065
Remove legacy line rendering code.
2015-12-19 12:28:59 +00:00
Paul Chote
8e9318e64d
Use RgbaColorRenderer in UISpriteRenderable.
2015-12-19 12:28:59 +00:00
Paul Chote
8719b4ed3c
Use RgbaColorRenderer in SpriteRenderable / TextRenderable.
2015-12-19 12:28:10 +00:00
Paul Chote
cdf4aaf2b8
Use RgbaColorRenderer in SelectionBarsRenderable.
2015-12-19 12:28:09 +00:00
Paul Chote
03a48a7a41
Use RgbaColorRenderer in TargetLineRenderable.
2015-12-19 12:28:09 +00:00
Paul Chote
bb0a7bdaf5
Add two-colour line rendering to RgbaColorRenderer.
2015-12-19 12:28:09 +00:00
Paul Chote
c5dbc5fab7
Add composite line drawing methods to RgbaColorRenderer.
2015-12-19 12:28:09 +00:00
Paul Chote
43226d7c55
Move DrawRollover to WICW.
2015-12-19 12:28:08 +00:00
Paul Chote
0f1fcdaca4
Move DrawTargetMarker to TargetLineRenderable.
2015-12-19 12:28:08 +00:00
Oliver Brakmann
02fa63c1b4
Merge pull request #9853 from penev92/unglobalFileSystem
...
Unglobal file system
2015-12-14 20:52:30 +01:00
atlimit8
bee590a057
Merge pull request #10208 from RoosterDragon/perf-comments
...
Added some performance comments
2015-12-13 20:46:07 -06:00
Pavel Penev
1b88d24cfa
Unstatic GlobalFileSystem and rename it to FileSystem
...
Add a ModFiles field on ModData and move all access to the file system to go through that.
2015-12-14 03:42:22 +02:00
RoosterDragon
b0619a3e25
Added comments in performance sensitive code.
2015-12-13 16:24:54 +00:00
Paul Chote
78556ec60c
Remove obsolete WorldRenderer.DrawRangeCircle.
2015-12-10 23:25:58 +00:00
Paul Chote
43eb4dadc9
Remove obsolete QuadRenderer.
2015-12-10 23:22:47 +00:00
Paul Chote
66744ee92a
Use RgbaColorRenderer for UI rendering.
2015-12-10 23:22:46 +00:00
Paul Chote
02dedf9acf
Introduce RgbaColorRenderer class.
2015-12-10 23:22:07 +00:00
Oliver Brakmann
c02881e51e
Merge pull request #9735 from RoosterDragon/animation-refactor
...
Refactor animation classes
2015-12-06 18:53:45 +01:00
Matthias Mailänder
fa5fd5c92f
Merge pull request #9710 from obrakmann/yaml-removals
...
Fix yaml removals
2015-12-06 17:04:47 +01:00
RoosterDragon
082ea6ba73
Refactor animation classes.
...
Specify pause function in constructors of Animation if required, and remove the unused pause function from AnimationWithOffset.
Cleanup Animation.cs and reduce code duplication.
2015-12-05 16:58:26 +00:00
DArcy Rush
8eb34f3cfa
Replace 'Always show Healthbars' checkbox with dropdown
...
The player can now cycle between;
-Standard: Health and Status bars display only on mouse hover.
-Show On Damage: Health shows on damaged actors, Status always shows.
-Always Show: Health and Status bars are always displayed.
2015-11-29 21:52:31 +00:00
Paul Chote
c7249e6fa6
Move yaml removals to the end of the merge.
2015-11-28 17:20:32 +01:00
Paul Chote
a074bb1d4b
Rename MiniYaml MergeLiberal -> MergePartial, MergeStrict -> Merge.
2015-11-28 17:20:21 +01:00
RoosterDragon
bfe1804bf6
Fix some spellings.
2015-11-27 16:19:59 +00:00
abcdefg30
c35f9007c3
Merge pull request #9582 from ChaoticMind/ctrl_backspace
...
Implement some keyboard hotkeys for chat (TextFieldWidget)
2015-11-18 20:48:05 +01:00
RoosterDragon
9f728b287b
Remove event handlers to CellEntryChanged when done.
...
Several classes would attach event handlers to the Map which would live longer then they did. Detaching them when no longer needed allows the GC to reclaim them.
2015-11-04 23:09:32 +00:00
RoosterDragon
c562b8c51e
Detach event handlers on dispose in TerrainSpriteLayer.
...
The WorldRenderer outlives the TerrainSpriteLayer and thus keeps it alive longer than expected via the event handler. We detach it to allow the GC to reclaim it.
2015-11-04 23:09:30 +00:00
Oliver Brakmann
177d983728
Merge pull request #9759 from atlimit8/ActorsHavingTrait
...
Add ActorsHavingTrait<TTrait>()
2015-11-04 22:26:10 +01:00
atlimit8
b6f17df260
Add ActorsHavingTrait<TTrait>([Func<TTrait, bool])
2015-10-28 16:36:45 -05:00
atlimit8
dac15edce5
Load rgb[a] hex colors from MiniYaml (+ Lua)
2015-10-27 16:09:48 -05:00
reaperrr
f166fd9525
Merge pull request #9526 from penev92/tileShapes
...
Rename TileShape to fit its role better
2015-10-26 15:41:09 +01:00
abcdefg30
86df9f66e8
Merge pull request #9718 from penev92/hvaException
...
Check HVA files validity at load time
2015-10-26 12:14:28 +01:00
Pavel Penev
905d46bd99
Merge pull request #9723 from evgeniysergeev/fix_sprite
...
flip or mirror sprites with negative width and height
2015-10-26 01:31:15 +02:00
Pavel Penev
b16ebd480b
Rename MapGridType.Diamond to MapGridType.RectangularIsometric
2015-10-26 00:42:30 +02:00
Pavel Penev
0e417a3cf3
Rename MapGridType.Rectangle to MapGridType.Rectangular
2015-10-26 00:41:26 +02:00
Pavel Penev
bb3aea338a
Rename enum TileShape to MapGridType
2015-10-26 00:41:21 +02:00
Pavel Penev
84db36d3e8
Check HVA files validity at load time
2015-10-26 00:25:28 +02:00
evgeniysergeev
907df4800a
flip or/and mirror sprites with negative width and heigth
2015-10-22 20:53:15 +03:00
RoosterDragon
983032205f
Merge pull request #9593 from huwpascoe/HealthTrait
...
Moved Health to OpenRA.Mods.Common
2015-10-20 20:59:04 +01:00
reaperrr
51aca8de9a
Fix hardcoded player color ramp Lerp
2015-10-18 01:21:59 +02:00
reaperrr
d2f656737b
Merge pull request #9654 from evgeniysergeev/color_remap
...
fix player color remap to handle RemapIndex: with any number of entri…
2015-10-18 01:05:11 +02:00
Paul Chote
83949b250a
Add a visualisation mode for depth sprites.
...
For now this displays the raw sprites. It will
eventually be repurposed for rendering the proper
depth data.
2015-10-17 22:35:47 +01:00
Paul Chote
b08adbeb61
Add support for boolean uniforms.
2015-10-17 22:35:47 +01:00
Paul Chote
3665d8f19b
Send TS terrain depth data to the GPU.
2015-10-17 22:35:07 +01:00
Paul Chote
9a5483fea7
Send TS terrain depth data to the GPU.
2015-10-17 22:34:46 +01:00
Paul Chote
e819ff832b
Record the SheetType in each Sheet.
2015-10-17 22:28:19 +01:00
evgeniysergeev
0830e4a2c0
fix player color remap to handle RemapIndex: with any number of entries, not only 16 colors
2015-10-17 22:47:03 +03:00
Kevin Azzam
96c0c2dec6
Make ctrl+x cut to clipboard
2015-10-12 18:58:26 +02:00