ScottNZ
6a14434cff
Add a CenterPosition helper to Viewport
2013-11-29 23:01:50 +13:00
ScottNZ
00ec1ca87a
Remove unused usings
2013-11-12 19:39:33 +13:00
Matthias Mailänder
e0e3f1155a
avoid additional layers of abstraction
2013-11-02 18:12:46 +01:00
Matthias Mailänder
b1c3ac20bf
brought back the MoveFlash
...
closes #2592
2013-11-02 18:03:49 +01:00
Paul Chote
919181e04d
Clean up viewport internals.
2013-10-05 21:01:22 +13:00
Paul Chote
936bf98496
Move Viewport inside WorldRenderer.
2013-10-05 21:01:22 +13:00
Paul Chote
f575c20d38
Route viewport centering via WorldRenderer.
2013-10-05 21:01:21 +13:00
Paul Chote
b7123cda7d
Route screen size queries via Game.Renderer.
2013-10-05 21:01:21 +13:00
Paul Chote
b96c430f84
Remove PVecInt from Viewport.
2013-09-27 15:54:37 +12:00
Paul Chote
0dc50c65f5
Remove unnecessary int2 -> PPos -> int2 conversions.
2013-09-27 15:41:32 +12:00
Paul Chote
b335d67ce3
Remove PPos hacks from RadarWidget.
2013-09-27 15:41:32 +12:00
Paul Chote
c428cad70c
Refactor per-player shrouds & fix shellmap shroud.
2013-04-10 19:36:03 +12:00
Matthias Mailänder
acc8cd1e5e
fixes #2885 forgot to enable the cursor palette before drawing
...
split HardwarePalette.Update into two functions, closes #2847
2013-04-06 08:44:32 +02:00
Paul Chote
819d315d56
Remove Turret and PVecFloat cruft.
2013-04-01 12:59:50 +13:00
Matthias Mailänder
ba12aafd78
refactor cursor rendering
...
create a new cursor palette only once and not in WorldRenderer
move cusrsor sequence lookup and drawing to CursorProvider
2013-03-24 21:21:30 +01:00
Matthias Mailänder
227a7a61eb
don't crash when trying to get the game assets on first start
...
wr is null at that stage
2013-03-24 15:16:49 +01:00
Paul Chote
82426e0e45
Move Palette from ModData to WorldRenderer.
2013-02-26 09:35:41 +13:00
Kenny
f41fb32d60
Introducing per-player shrouds.
...
- Each player has their own shroud and their visibility does not extend outside of the shroud.
- Units and buildings can no longer target other units outside of their visibility. Buildings can still be targetted if they have been explored.
- GPS will provide visibility in the fog-of-war.
- Spies that infiltrate radar domes will gain their victim's exploration and reset it on all clients (if the victim does not have GPS)
2012-12-13 15:16:56 -08:00
James Dunne
9c49143534
New types for cell and pixel coordinate position/vectors.
2012-06-21 15:36:59 -05:00
Chris Forbes
bf5be88c75
rename Ui.RootWidget to just Ui.Root
2011-12-13 23:46:58 +13:00
Chris Forbes
58f6816d84
convert silly DoXXX names to just XXX
2011-12-13 23:44:40 +13:00
Chris Forbes
ed429a3b30
split Widget static bits into Ui static class
2011-12-13 23:38:59 +13:00
Chris Forbes
e7ed9a1ff7
tidy up select-all-on-screen
2011-10-22 11:30:09 +13:00
Chris Forbes
bc6af1841b
fix indents everywhere
2011-10-18 15:10:17 +13:00
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Paul Chote
d2c033dcd3
Add a PixelDouble preference for rendering at 2x zoom. Allowing arbitrary zoom levels leads to too many rendering artifacts.
2011-07-25 22:23:18 +12:00
Paul Chote
8516fa8748
fix viewport scroll limits
2011-07-25 22:23:17 +12:00
Paul Chote
0bfc9a957f
Fix radar viewport rectangle
2011-07-25 22:23:17 +12:00
Paul Chote
0b0e3d5f14
Drop unnecessary `this' uses from Viewport.
2011-07-25 22:23:17 +12:00
Paul Chote
fc783ddf80
Support custom zoom levels
2011-07-25 22:23:17 +12:00
Paul Chote
926b396605
Fix bogus naming of Shaders/Renderers. Split LineRenderer into world and chrome variants.
2011-07-25 22:23:16 +12:00
Paul Chote
5f3483ed17
Improve edge-scroll behavior
2011-07-14 20:29:12 +12:00
Chris Forbes
ceaca47747
don't use ScrollDirection.Set when it's not needed
2011-07-14 20:29:10 +12:00
Chris Forbes
f406504147
add render_flip to perf history
2011-05-22 20:38:59 +12:00
Chris Forbes
fe392bd42d
add render_widgets to perf history
2011-05-22 20:38:58 +12:00
Chris Forbes
9b3e6c5c4a
remove FP sillyness from FindUnits & friends
2011-05-22 20:38:52 +12:00
Paul Chote
b0425aff3b
Renormalize line endings and fix copyright headers again.
2011-04-07 21:15:42 +12:00
Chris Forbes
c9be0f44f4
spoilers: cursor dies
2011-03-13 00:39:37 +13:00
Paul Chote
094907c1a9
Update copyright header. Normalize line endings to LF.
2011-02-13 10:38:57 +13:00
Chris Forbes
79a46272ac
remove some crap from viewport
2011-01-30 17:27:39 +13:00
Paul Chote
6776d6f906
Load the main menu without loading mixes or creating a shellmap world. A giant hack.
2011-01-27 20:50:00 +13:00
Paul Chote
481cc7807b
Don't require a WorldRenderer to draw non-world-rendering widgets.
2011-01-19 20:41:32 +13:00
Paul Chote
60e3f7621f
Remove fp from CenterLocation and aircraft.
2011-01-07 20:14:22 +13:00
Paul Chote
e91caa4e7a
Save some perf.
2010-11-27 11:28:22 +13:00
Paul Chote
fb0e399ab9
Consolidate viewport clip calculations into one place (except for TerrainRenderer, but changing that calculation crashes my gfx card).
2010-11-27 11:20:04 +13:00
Paul Chote
7c5c989eb2
Introduce World.LocalShroud. Breaks targeting stealth tanks. Probably breaks FrozenUnderFog.
2010-11-27 11:20:04 +13:00
Paul Chote
fbeb638582
Center the viewport by default.
2010-11-27 11:20:01 +13:00
Paul Chote
fc5830a687
Added int2.Clamp(Rectangle). All queries for map geometry use map.Bounds.
2010-11-24 12:24:48 +13:00
Paul Chote
1dfe437641
Refactor Viewport.
2010-11-24 11:57:18 +13:00
Chris Forbes
d7d0d371c6
(bob) refactor input dispatch; remove public Dispatch*Input from game; (chris) fix build failures due to rebase past gecko
2010-11-01 18:39:37 +13:00