Paul Chote
04c3cd6ec5
Reimplement sequence Defaults parsing:
...
The previous MiniYaml.Merge implementation interacted
poorly with yaml inheritance, making it complicated
(or impossible) to override certain keys from Defaults.
The new implementation is simpler: If a key is defined
it will be used. If it isn't, the default (if defined)
will be used. Defaults can be masked by making sure
the same key is defined (even with an empty value)
in the sequence.
This also fixes naming within the sequence code to
distinguish between images (a group of sequences),
sequences (defining a specific sprite/animation),
and filenames for a specific sprite/animation.
2023-01-22 22:10:48 +02:00
abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
AspectInteractive2
a1a50d6c98
Added rotation logic to the renderer to enable the use of Interpolated Facings.
2022-07-17 17:03:53 +02:00
Paul Chote
c8df1e864c
Rework sequence docs plumbing.
2022-07-02 14:10:52 +03:00
Paul Chote
2037e37d4e
Replace Sequence EmbeddedPalette with HasEmbeddedPalette.
2022-07-02 14:10:52 +03:00
penev92
c3c5dbfa35
Unhardcoded SpriteSequence properties
...
To prepare them for documentation generation.
Also added descriptions to SpriteSequence implementations and their properties.
Also made a few code style fixes.
2022-06-26 15:41:19 +01:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
Eduardo Cáceres
7eb64ea6fc
Use read-only autoimplemented property when possible
2022-05-18 11:42:36 -05:00
Matthias Mailänder
0e7ad43425
Remove unused parameters.
2022-04-01 23:30:26 +02:00
Mustafa Alperen Seki
7e4c3acda3
Fix ZRamp only allowing integer values.
2022-03-02 19:41:49 +01:00
Paul Chote
be3412ee74
Fix depth offsets for sprite with non-zero ZRamp.
...
Bibs and other effects that should be drawn at ground level
can now simply define ZRamp: 1, Offset: <X>,<Y>,1, avoiding the
need to account for the Y offset or internal sprite offsets.
2021-08-20 20:17:55 +02:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
teinarss
10676be377
Replace F extension with string interpolation
2021-05-08 22:20:59 +02:00
teinarss
e12ff2c59d
Remove our own ReadOnlyDictionary and update usages
2021-04-03 11:33:31 +02:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
Paul Chote
0975102e92
Add Alpha support to sequences.
...
Alpha can specify a single value for the sequence
or values for each frame in the sequence.
AlphaFade: True can be specified to linearly fade
to transparent over the length of the animation.
2021-02-24 19:20:48 +01:00
Paul Chote
f6b40b2bce
Allow sequences to define a Scale factor.
2021-01-21 18:22:11 +01:00
Paul Chote
dd7b8b24af
Use tileset ID in sequences instead of the TileSet object.
2020-10-11 01:23:15 +02:00
Paul Chote
ad4d6eaec9
Improve --check-missing-sprites error handling.
2020-09-12 17:52:46 +02:00
Paul Chote
7803686aec
Rewrite sequence linting / missing file handling.
...
- Distinguish between missing sequences and missing sprites
- Lint default sequences as well as maps
- Improved performance
- Correctly handle null images
2020-09-12 17:52:46 +02:00
teinarss
27f1a7ab27
Use out var syntax
2020-08-19 18:11:07 +01:00
Paul Chote
ac7eda8ca2
Add support for rendering tinted artwork.
2020-07-13 14:02:02 +02:00
Paul Chote
c999b2d778
Convert QuantizeFacing to WAngle facings.
2020-05-28 21:23:51 +02:00
Paul Chote
bfb6c671fb
Change QuantizeFacing to return a facing instead of an index.
2020-05-28 21:23:51 +02:00
Paul Chote
361e2d463c
ISpriteSequence facing -> WAngle.
2020-05-09 10:20:23 -05:00
reaperrr
c10487d635
Move ClassicFacingFudge support to Mods.Cnc
...
This moves the TD/RA-specific re-mapping of sprite facings
and coordinates to Mods.Cnc.
2020-04-24 18:22:35 +02:00
reaperrr
eb007fc43c
Add Frames support to Combine
2020-02-27 18:44:34 +01:00
Paul Chote
2016ab105e
Fix Reverses parsing.
2020-02-23 16:41:57 +01:00
Paul Chote
def65b10bd
Don't crash with an unhelpful IndexOutOfRangeException.
2020-02-23 16:41:57 +01:00
Matthias Mailänder
2049d1b26a
Allow guessing of sprite sequence length from number of frames.
2020-02-23 16:41:57 +01:00
Matthias Mailänder
43cac2f051
Don't complain about shadow frame length when there are none.
2020-02-23 16:41:57 +01:00
Matthias Mailänder
39b7db2703
Allow repetition of frames in sequence setups.
2020-02-23 16:41:57 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
Andre Mohren
7f7341a369
Fixed incorrect sequence frame amount checks using Stride.
2019-10-05 18:03:09 +02:00
RoosterDragon
31918e8712
Add UnionRectangles extension method.
2019-09-14 22:09:40 +02:00
Paul Chote
ab4a7e3558
Replace System.Drawing primitives with our own.
2019-03-04 18:26:42 +00:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Paul Chote
eb61c45e14
Add EmbeddedSpritePalette sprite metadata.
2018-10-28 20:55:40 +00:00
Paul Chote
8461a82577
Remove requirement for depth sprites to share color sheet.
2018-06-04 23:33:57 +02:00
Paul Chote
3febae1644
Fix exception in DefaultSpriteSequence.GetSprite.
2018-05-06 17:32:17 +02:00
Paul Chote
bf4b91741a
Ignore unused frames when loading Sequences into Sheets.
2018-05-02 09:59:03 +02:00
Paul Chote
94dd83bc13
Fix the frame mapping used to select sprites for the SpriteBounds.
2018-05-02 09:59:03 +02:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
Paul Chote
041431d966
Add ISpriteSequence.Bounds and Animation(WithOffset).ScreenBounds.
...
The bounds define the smallest Rectangle that covers all frames within a sequence.
2017-12-11 19:45:07 +01:00
Andre Mohren
10740de6e9
DefaultSpriteSequence now allows derived classes to enhance sprites.
2017-10-14 19:50:05 +02:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
RoosterDragon
9f1c872340
Improve some exception types.
2016-09-11 15:14:44 +01:00
Paul Chote
b94b703157
Add a check for bogus Frames / Length combinations.
2016-08-06 21:19:32 +01:00
Paul Chote
0371727596
Allow sequences to define depth offsets via sprites.
2016-07-13 22:22:13 +01:00
Paul Chote
5fbe747de2
Improve logging on sequence error.
2016-07-13 22:22:13 +01:00