RoosterDragon
094ccf76b0
Prefer Min/MaxBy overloads to OrderBy().First() patterns
2020-10-17 23:48:48 +02:00
Andre Mohren
914950c4a5
When zooming using the mousewheel, zoom towards the pointer location.
2020-07-17 20:12:10 +02:00
Paul Chote
626b40f31b
Account for ramps in terrain height calculations.
2020-05-28 09:41:55 -05:00
Paul Chote
5af12440ba
Replace MapGrid.CellCorners with a new CellRamp struct.
2020-05-28 09:41:55 -05:00
Paul Chote
4614f6febe
Cache cell ramps to avoid repeated tileset lookups.
2020-05-28 09:41:55 -05:00
Paul Chote
f03841c4e4
Hide selection decorations when spectators zoom too far out.
2020-05-02 14:30:04 -05:00
Paul Chote
99009c37ce
Fix and simplify WeatherOverlay:
...
- Fix rendering issues
- Track particles in world pixels instead of screen pixels
- Removed un/underused fade in/out support
- Update wind once per tick instead of once per particle
- Make Particle struct readonly
2020-03-28 19:46:47 +01:00
Paul Chote
6388a6bff4
Add Graphics.UIScale setting to modify UI size.
2020-02-04 19:56:15 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
Paul Chote
1dcb903580
Implement new viewport size/zoom UI.
2019-12-13 21:29:43 +01:00
Paul Chote
327866ffc3
Render world via an intermediate FrameBuffer.
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
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
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
rob-v
1b3422db2d
Fix flickering tooltip
2017-06-24 11:52:27 +01:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
RoosterDragon
2ffea5db54
Change Game.RunTime to a long to prevent overflow.
2016-09-20 19:06:10 +01:00
Paul Chote
65df25b1a4
Remove lazy loading of binary map data.
2016-03-18 20:16:24 +00:00
Paul Chote
602acabe47
Remove World.TileSet.
2016-03-12 19:47:07 +00:00
Oliver Brakmann
07ec56fd22
Merge pull request #10821 from obrakmann/pr10559-squashed
...
Added mousewheel zooming
2016-02-24 22:37:00 +01:00
Philipp Schärer
ea74499ec2
Added mousewheel zooming
2016-02-24 22:22:32 +01:00
Paul Chote
e71225496b
Clarify GPL version.
2016-02-21 16:30:48 +00:00
Paul Chote
b396965fd9
Update licence header year.
2016-02-21 16:27:31 +00:00
Paul Chote
626fa0b60b
Move CellCorners to MapGrid.
2016-02-05 23:00:14 +00:00
RoosterDragon
b0619a3e25
Added comments in performance sensitive code.
2015-12-13 16:24:54 +00:00
Pavel Penev
b16ebd480b
Rename MapGridType.Diamond to MapGridType.RectangularIsometric
2015-10-26 00:42:30 +02:00
Pavel Penev
bb3aea338a
Rename enum TileShape to MapGridType
2015-10-26 00:41:21 +02:00
Pavel Penev
642468ce0c
Add MapGrid class
...
MapGrid is a mod Manifest field which includes (and thus makes redundant) TileSize, TileShape, SubCells info and MaximumTerrainHeight.
2015-09-27 04:14:43 +03:00
Paul Chote
e8794032e0
Introduce initial PPos plumbing.
...
PPos is best thought of as a cell grid applied in
screen space. Multiple cells with different
terrain heights may be projected to the same PPos,
or to multiple PPos if they do not align with the
screen grid.
PPos coordinates are used primarily for map edge
checks and shroud / visibility queries.
2015-07-27 19:34:49 +01:00
Matthias Mailänder
8d8d7ab8ea
rename WRange to WDist in documentation
2015-07-09 12:36:29 +02:00
Paul Chote
19c777a922
Move maximum terrain height definition to mod.yaml.
2015-07-05 17:49:56 +01:00
Paul Chote
86bf9086d9
Rename WorldRenderer.Position -> ProjectedPosition.
2015-07-05 14:57:59 +01:00
Paul Chote
53e9692dbe
Fix scissoring in the editor.
2015-06-21 13:47:20 +01:00
Paul Chote
198a51e5e0
Fix VisibleCellsInsideBounds.
2015-06-21 13:41:39 +01:00
Paul Chote
40d018aaf3
Rewrite and document the visible cells calculation.
2015-06-21 13:41:38 +01:00
Paul Chote
c44afc0722
Remove viewport editor-mode assumptions.
2015-06-16 08:16:49 +01:00
Paul Chote
2156a234db
Render shroud outside map bounds.
...
Fixes a regression from #8337 .
2015-06-15 18:06:43 +01:00
Paul Chote
3d352563a8
Allow scrolling to the map edges in the editor.
2015-06-11 21:27:34 +01:00
Paul Chote
486bf14669
Relax screen clipping bounds.
...
Fixes missing tiles in TS.
2015-06-11 21:27:33 +01:00
Paul Chote
57a6fff6ce
Don’t crash if the click location is outside the map.
2015-03-31 20:59:53 +01:00
Paul Chote
1e54b19bd3
Implement heightmap-aware view -> cell conversion.
2015-03-31 20:59:53 +01:00
RoosterDragon
d3b93345b4
Fix Viewport.VisibleCells.
...
Reworked the visible cells calculation to ensure the visible region is actually minimal, which should reduce the amount of rendering to be done by a small amount. Previously, the region would tend to overdraw by 2-3 cells in either direction. For isometric maps, there was also a bug where it would draw far too much vertically above the top of the map.
2015-02-28 13:36:58 +00:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
RoosterDragon
7cfece6dc0
Introduce a new type for representing map coordinates.
...
To resolve the ambiguity introduced when the introduction of isometric maps meant that cell and map coordinates were no longer equivalent, a new type has been introduced so they can each be represented separately.
2015-01-07 17:30:34 +00:00
Matthias Mailänder
bc3acfeee7
StyleCop clean OpenRA.Game
2015-01-04 15:38:54 +01:00
Paul Chote
18f65552a1
Account for terrain height in Viewport.
2014-11-07 19:14:02 +13:00
Alexander Fast
070d00c678
Fixes year numbers in license text in file headers.
2014-08-21 11:27:52 +02:00
Paul Chote
0d625b6af6
Fix sprite overlap outside the map border.
2014-07-01 00:40:42 +12:00
Paul Chote
a30c8b53a7
Add support for diamond cell grids.
2014-06-30 23:44:23 +12:00