Paul Chote
fd64ad7c89
Support rendering at non-integer display scales:
...
* 2x and 3x DPI artwork can be specified using
Image2x and Image3x in chrome.yaml.
* Images are rendered using bilinear interpolation.
* For non-integer screen scales, prefer downscaling
the next biggest resolution image over upscaling.
2020-01-26 20:22:49 +01:00
Paul Chote
809b1507a6
Fix font rendering at non-integer display scales.
2020-01-26 20:22:49 +01:00
Paul Chote
d91495a041
Allocate 1px empty margin between sprites.
2020-01-26 20:22:49 +01:00
Paul Chote
84daf890d3
Use antialiasing filter when rendering world annotations.
2020-01-26 20:22:49 +01:00
Paul Chote
bd4724842c
Fix software cursor rendering at fractional scales.
2020-01-26 20:22:49 +01:00
Paul Chote
f730b55255
Move hardware cursor control to hidden DisableHardwareCursors setting.
2020-01-26 17:11:45 +01:00
Paul Chote
370f7a44fa
Restore cursor doubling for "default" cursor.
2020-01-26 17:11:45 +01:00
Paul Chote
f7e5111123
Apply cursor doubling setting without requiring a restart.
2020-01-26 17:11:45 +01:00
Paul Chote
847db5e59b
Merge HardwareCursor and SoftwareCursor into CursorManager.
2020-01-26 17:11:45 +01:00
Paul Chote
7611449d3d
Reimplement text contrast using greyscale dilation.
2020-01-19 17:18:22 +01:00
Paul Chote
4fd475f7c2
Add RGBA cursor support.
2020-01-17 16:49:58 +01:00
Paul Chote
1111ce4754
Add support for 32 bit BGRA sprites.
2020-01-17 16:49:58 +01:00
tovl
695d9a6cb1
Centralize shroud changes in one pass to improve performance.
2020-01-12 04:50:25 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
Matthias Mailänder
e33cf8a8ae
Fix a crash when cursor is null.
2020-01-05 13:27:53 +00:00
Paul Chote
439cd4aded
Rework HardwareCursor sprite padding.
...
All frames in a sequence now use the same bounds
and hotspot, and have a size that is a multiple of 8.
2020-01-04 22:45:51 +01:00
Paul Chote
f3d7bf403e
Rework chrome.yaml format and panel rendering.
2019-12-28 19:15:36 +01:00
Paul Chote
656a260171
Add VSync setting.
2019-12-26 17:25:38 +01:00
Paul Chote
1dcb903580
Implement new viewport size/zoom UI.
2019-12-13 21:29:43 +01:00
Paul Chote
860117daf9
Implement optimized pixel-art antialiasing mode for non-integer world zoom.
2019-12-13 21:29:43 +01:00
Paul Chote
b0c65c5eb9
Overhaul cursor double setting.
2019-12-11 13:38:52 +01:00
Paul Chote
79aac08a48
Fix turret positioning in the map editor.
2019-12-11 11:02:04 +01:00
Paul Chote
8c41e6a3f7
Remove redundant zoom parameter.
2019-12-08 04:36:31 +01:00
Paul Chote
327866ffc3
Render world via an intermediate FrameBuffer.
2019-12-08 04:36:31 +01:00
Paul Chote
0c8a47b5af
Add scissor support to IFrameBuffer.
2019-12-08 04:36:31 +01:00
Paul Chote
e772adb0a9
Draw annotations using the UI renderers.
2019-10-20 23:46:33 +02:00
Paul Chote
8c1b0f1afe
Add IEffectAnnotation interface.
2019-10-20 23:46:33 +02:00
Paul Chote
7d1ce0c83b
Add annotation support to IOrderGenerator.
2019-10-20 23:46:33 +02:00
Paul Chote
edaa7918fc
Add IRenderAnnotations(WhenSelected) interfaces.
2019-10-20 23:46:33 +02:00
Paul Chote
a8b1762464
Fix ActorPreviewWidget viewport manipulation.
2019-09-13 11:24:57 +02:00
Paul Chote
1d106e71c4
Save screenshots via the frame buffer.
2019-09-04 20:20:04 +02:00
Paul Chote
c0ee346c1c
Render via an intermediate frame buffer.
2019-09-04 20:20:04 +02:00
Paul Chote
d2298b6f04
Allow FrameBuffer clear color to be customized.
2019-09-04 20:20:04 +02:00
Paul Chote
b93c7cabb3
Render voxels before BeginFrame.
2019-09-04 20:20:04 +02:00
Turupawn
3240b1e9eb
Overhaul target line rendering:
...
- Targets are now defined by the activities
- Queued activities are shown
- Support custom attack colors
2019-08-05 02:53:09 +01:00
teinarss
e06c97bc03
Updated the LineGraphWidget with new layout
2019-07-21 14:23:25 +02:00
teinarss
f325a4d190
Relative mouse pos
2019-06-27 23:34:16 +02:00
teinarss
ffd3834849
Lock mouse position
2019-06-27 23:34:16 +02:00
teinarss
9982b01642
Get the Ascender value from mod.yaml instead from the Font
2019-06-21 12:51:45 +02:00
Paul Chote
ebf2ce32c0
Make sure braces for multi-line statements are on their own lines.
2019-06-08 19:26:53 +02:00
Ivaylo Draganov
1fee50be2e
Add TruncateLabelWithTooltip helper function
...
* Move GetContrastColor helper to SpriteFont
* Move WidgetUtils from OpenRA.Game.Widgets to OpenRA.Mods.Common.Widgets
2019-05-27 17:28:47 +02:00
teinarss
dad29cd3b3
Added GradientColorBlockWidget
2019-05-22 22:37:50 +01:00
teinarss
2d1c110857
Calculate font size correctly
2019-05-09 22:17:24 +02:00
Paul Chote
353db73381
Fix a collection of minor style violations.
...
This enables several new StyleCopAnalyzer rules to
be enabled immediately during migration.
2019-05-09 20:40:08 +02:00
teinarss
71596ae959
Added drag direction mouse interaction for set the approach direction for airstrike and parabombs
2019-04-04 20:10:34 +02:00
Paul Chote
1d4576229a
Move FreeType handling into the Platform dll.
2019-03-14 16:39:26 +01:00
Paul Chote
3e404f6ac2
Remove HSLColor.
2019-03-04 18:26:42 +00:00
Paul Chote
ab4a7e3558
Replace System.Drawing primitives with our own.
2019-03-04 18:26:42 +00:00
Paul Chote
094c8b6432
Use Color.ToString() in perf logs.
2019-03-04 18:26:42 +00:00
Paul Chote
94f7f6fd2e
Remove obsolete code.
2019-02-24 14:02:19 +01:00