RoosterDragon
bcfa0c9ae9
Review StyleCop rules.
...
- Enforce SA1604 ElementDocumentationShouldHaveSummary.
- Enforce SA1629 DocumentationTextShouldEndWithAPeriod.
- Turn off some rules covered by IDExxxx rules.
- Remaining rules are treated as part of OpenRA style.
2023-03-18 12:46:10 +02:00
RoosterDragon
98c4eaca83
Fix IDE0032
2023-03-14 13:41:25 +02:00
Paul Chote
c35ab081ff
Rewrite sequence loading logic.
...
Multiple layers of Lazy<T>ness are replaced with
an explicit two-part loading scheme.
Sequences are parsed immediately, without the need
for the sprite assets, and tell the SpriteCache
which frames they need. Use-cases that want the
actual sprites can then tell the SpriteCache to
load the frames and the sequences to resolve the
sprites.
2023-03-10 20:11:33 +02:00
Paul Chote
a6f3db0a45
Allow all sprites to use interpolated facings.
2023-03-10 20:11:33 +02:00
Paul Chote
b051211842
Remove internal state from ISpriteSequence API.
2023-03-10 20:11:33 +02:00
Paul Chote
7cd4272350
Access sequences from Map.
2023-03-10 20:11:33 +02:00
Gustas
dab3ca0025
Add support for dark player colors
2023-03-10 15:43:24 +02:00
RoosterDragon
52fd564eac
Fix some whitespace formatting issues: stray tabs or spaces.
...
Wrap some long lines on affected code.
2023-03-02 20:02:45 +02:00
Gustas
422a228cea
Fix PlayerColorRemap expecting colors in linear space
...
PlayerColorRemap expected colors in linear space yet we provided them in gamma. We fix this by instead expecting gamma space colors and then converting them into linear space ourselves.
2023-02-28 23:26:37 +02:00
RoosterDragon
0b01b73111
Fix IDE0060
2023-02-28 21:21:40 +02:00
Gustas
8d0fe52dd8
Remove unnecessary parentheses
2023-02-27 08:36:47 +02:00
Gustas
157d1b32dc
Use null propagation
2023-02-27 08:36:47 +02:00
RoosterDragon
2d4119e88d
Fix IDE0051
2023-02-24 22:00:25 +02:00
RoosterDragon
b0dca05e50
Fix IDE0002
2023-02-24 22:00:25 +02:00
abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
Matthias Mailänder
56ff98a2a3
Throw specific cursor sequence errors
...
instead of dividing by zero because length is 0.
2023-01-03 13:25:50 +01:00
Paul Chote
6d438a9d61
Allow mods to customise the default rendering scale.
2022-12-31 17:11:03 +01:00
Matthias Mailänder
19ecddcd86
Enforce use of 'var' instead of explicit type.
2022-12-28 23:02:04 +01:00
Vapre
7005da3592
SpriteRenderer, do not copy vertex array data each flush.
2022-11-14 23:33:24 +01:00
Gustas
c041ea7d39
Crash on image/panel not found and add TryGet functions for searching
2022-10-20 19:28:02 +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
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
Eduardo Cáceres
2677e9c013
Use pattern matching
2022-05-18 11:42:36 -05:00
Eduardo Cáceres
7eb64ea6fc
Use read-only autoimplemented property when possible
2022-05-18 11:42:36 -05:00
Eduardo Cáceres
79f321cb44
.Any(), .Count() -> .Count or .Length
2022-05-18 11:42:36 -05:00
Matthias Mailänder
0e7ad43425
Remove unused parameters.
2022-04-01 23:30:26 +02:00
Vapre
83357af14c
WorldRenderer, replace foreach ActorsWithTraits with ApplyToActorsWithTrait. #18798 .
2022-03-13 10:45:01 +01:00
penev92
bf332b6619
Fixed fields missing the readonly modifier
2022-01-22 18:47:06 +00:00
penev92
0d24ccc47a
Fixed unnecessary zero-length array allocations
...
Changed all currently present zero-length array allocations in the codebase to use `Array.Empty` instead.
2022-01-20 22:10:28 +01:00
penev92
860ec642b8
Addressed review comments
...
- Renamed `IVideo.CurrentFrameNumber` to `CurrentFrameIndex`
- Improved logged error message in VideoPlayerWidget
- Renumbered fields in ThreadedGraphicsContext
2022-01-11 18:16:31 +01:00
penev92
6f0509d235
Removed now-unused ITexture.SetData() overload
2022-01-11 18:16:31 +01:00
penev92
c4ab7041b8
Updated VideoPlayerWidget to play new IVideo data
...
Added optional padding to video frames because that's what VideoPlayerWidget expects.
Keeping the option to not use padding for other use-cases like converting frames to PNG.
2022-01-11 18:16:31 +01:00
penev92
ee29d0f9c7
Changed IVideo.CurrentFrameData uint[,] -> byte[]
2022-01-11 18:16:31 +01:00
penev92
0df3b34c52
Did a beautification pass on IVideo and family
...
Removed property backing fields where applicable, introduced C#7 syntax for properties.
Renamed a bunch of interface properties and class private members with more descriptive names.
Did some inconsequential reordering.
2022-01-11 18:16:31 +01:00
RoosterDragon
727084c5fc
Run spell check over solution
2021-12-05 19:23:43 +01:00
penev92
8ba6d13b2f
Removed unused using directives
2021-10-15 13:12:33 +02:00
RoosterDragon
3a7aeb5324
Ensure TargetLineRenderable width and marker size don't get lost.
...
By making the constructor take non-optional parameters, this highlights some calls sites which were forgetting to set these values. These are now fixed.
Set the path debug to have a marker size of 2 for better visibility.
2021-10-02 12:14:54 +01:00
Matthias Mailänder
f08a0b113e
Allow mods to customize application title.
2021-09-19 22:29:50 +02:00
Andre Mohren
2c84c43607
Fixed odd sprite size "frame hopping".
2021-09-02 07:34:13 +02:00
Paul Chote
512dee0ac0
Fix rendering glitches with EnableDepthBuffer disabled.
2021-08-25 17:42:44 +02:00
Paul Chote
dcd3e8d444
Ignore terrain slopes when calculating model shadows.
...
This is less realistic, but better matches the original
game and is the only practical way to reduce visual issues
caused by long shadows being cast over multiple cells.
2021-08-21 13:45:41 +02:00
Paul Chote
27f9f35efb
Fix incorrect world height to screen depth conversion.
2021-08-20 20:17:55 +02:00
Paul Chote
ef1aee5e95
Fix and document the depth buffer calculations.
2021-08-20 20:17:55 +02:00
Paul Chote
962d6496bd
Overhaul depth preview rendering:
...
* Replace Jet color map with grayscale
* Added Shift + \ hotkey to toggle preview
* Added Shift + [, Shift + ] hotkeys to change contrast
* Added Shift + ;, Shift + ' hotkeys to change offset
2021-08-20 20:17:55 +02:00
abcdefg30
b8ba1b36fe
Don't throw an exception when creating a hardware cursor fails
2021-08-14 17:11:34 +01:00
Paul Chote
24f64ae1a8
Fix an edge case where the wrong sheet may be mapped to a depth sprite.
2021-07-25 19:20:19 +02:00
Paul Chote
70892a6661
Change DrawSprite calls to provide scales instead of sizes.
...
This allows us to remove a hacky workaround for calculating
depth offsets when sprites have size.Z == 0.
2021-07-25 00:32:17 +02:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
Andre Mohren
62207313a0
32bpp assets dont need a palette to be defined.
2021-06-25 10:33:54 +02:00
Paul Chote
dacacdf130
Remove global fallback to software cursors on error.
...
We now only fall back for the specific cursors that failed.
2021-05-30 12:01:44 +02:00