Commit Graph

850 Commits

Author SHA1 Message Date
RoosterDragon
b5f24c3fa6 Add some missing Dispose calls, fix some Dispose implementations. 2016-01-01 04:51:54 +00:00
RoosterDragon
a50fa4fcaa Interleave renderables for effects and actors.
Previously, renderables from actors were z-ordered, but effects were excluded and not ordered. Now we order them all as a whole.
2015-12-28 21:28:12 +00:00
Paul Chote
7cc8846d72 Merge pull request #10271 from RoosterDragon/point-sequencing
Support sending sequences of points when drawing lines
2015-12-28 19:36:49 +00:00
Oliver Brakmann
14b6034e9d Merge pull request #10216 from pchote/remove-tags
Reimplement Primary and Fake tags using WithDecoration.
2015-12-27 19:43:57 +01:00
Paul Chote
74fb9bbfbb Remove legacy SetLineWidth methods. 2015-12-26 13:51:53 +00:00
Paul Chote
788def1c31 Remove Quad rendering support. 2015-12-26 12:46:55 +00:00
Paul Chote
d0e9af8f6b Convert VoxelRenderer to TriangleList. 2015-12-26 12:46:55 +00:00
Paul Chote
a754a96b77 Convert SpriteRenderer to TriangleList. 2015-12-26 12:46:54 +00:00
Paul Chote
af344452ea Convert RgbaColorRenderer to TriangleList. 2015-12-26 12:46:54 +00:00
Paul Chote
3ceacbb7c1 Fix Z-sorting for UISpriteRenderable. 2015-12-26 12:37:22 +00:00
Matthias Mailänder
7335c4a8ce Merge pull request #10069 from penev92/soundLoader
Add plumbing for mod-defined sound loaders
2015-12-25 14:40:43 +01:00
RoosterDragon
5c14044138 Support sending sequences of points when drawing lines.
This allows the graph widgets to avoid having to create temporary arrays just to draw these lines, which reduces GC pressure.
2015-12-23 22:58:53 +00:00
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