mfranz
4419aa2cb3
- make the alignment function a static HUD member (for namespace
...
encapsulation, but a real namespace would probably be better)
- extend alignment to optionally adjust x/y, and to return absolute
l/r/b/t coordinates (as opposed to plib's relative ones!)
- implement tape gaps as per Curt's order :-)
- shuffling stuff around for fun
2006-08-01 15:31:15 +00:00
mfranz
46a70b21a6
whoops
2006-07-31 19:32:02 +00:00
mfranz
651861dfb1
cleanup
2006-07-31 19:25:41 +00:00
mfranz
f3dd7c363c
draw dive lines always from the center, so that the stipple pattern is
...
symmetrical
2006-07-31 18:09:13 +00:00
mfranz
3abd816f46
cosmetics & cleanup
2006-07-31 17:36:27 +00:00
mfranz
acc3230fd0
remove obsolete text_width() function (a similiar function will be made
...
a method of TextList)
2006-07-31 16:56:15 +00:00
mfranz
5bb3eb260b
use HUDText adjustment (gauges with text aren't used anywhere, and this
...
change is untested for now)
2006-07-31 15:57:39 +00:00
mfranz
8cd9535660
use HUDText adjustment
2006-07-31 15:36:48 +00:00
mfranz
ece7aee8a9
- use correct ladder bar angle
...
- minor dive angle number adjustment
2006-07-31 14:25:09 +00:00
mfranz
3cba94018b
- move HUDText constructor/methods to HUD.cxx
...
- add generic text adjustment and
- use it in the ladder: climb -> vert bar on the outside, numbers below line
dive -> vert bar on the inside, numbers above line
2006-07-31 13:10:26 +00:00
mfranz
f012620134
remove unused options & add two new ones
2006-07-29 19:45:17 +00:00
curt
d9723e6805
Specify "clip planes" as a separate independent option (not implied from
...
the type option.) The clip area is and has always been hard coded, but at
some point we should make it configurable.
2006-07-28 20:17:58 +00:00
mfranz
1576fc1050
reduce marker gap
2006-07-28 18:41:12 +00:00
curt
183fffaa08
Simplify dynamic ladder motion option.
2006-07-28 18:37:33 +00:00
curt
8c38bd4427
Remove some junk.
...
Note: the previous commit angles the negative ladder marks progressively more
steeply as per MIL-STD.
2006-07-28 14:32:40 +00:00
curt
cccdbddddd
Add an option to get a realistic climb dive ladder without all the other
...
implications.
Fix the ladder so it "moves" around in the hud correctly based on alpha/beta
offset projected onto the horizon line so the horizon is always the horizon.
2006-07-28 14:22:08 +00:00
mfranz
08d1b7748f
<option>top</option> draws tbi on top (vertically mirrored)
2006-07-28 10:11:34 +00:00
mfranz
7c3711bcdf
- fix turn bank indicator (bank scale type)
...
- cleanup
2006-07-27 23:34:11 +00:00
frohlich
cdb725528d
Clean up scenery center handling. It is set now less often.
2006-07-27 16:36:22 +00:00
curt
f30f4b866b
Add support for drawing target markers (circles on top of any AI/MP aircraft)
...
as part of the conformal HUD ladder.
2006-07-27 02:46:14 +00:00
mfranz
5d10e338d5
no more FONT_(LARGE|SMALL) (didn't work, anyway, and isn't needed)
2006-07-25 22:21:56 +00:00
mfranz
9799f05bb7
finally fix the text-in-box alignment (= Rocket Science[TM]!)
...
(This will be moved to HUD_instrument.cxx, where it will be available to
all draw_text() users.)
2006-07-25 20:05:52 +00:00
mfranz
89d56f0c60
define label box pointer via <pointer-width> (width of base) and
...
<pointer-length>
2006-07-25 07:07:34 +00:00
mfranz
447c06ecd3
I've heard that endless loops aren't overly popular.
2006-07-24 17:52:20 +00:00
mfranz
77019014d6
8 is a bit too much for <marker-offset> default; use 5
2006-07-24 17:46:08 +00:00
mfranz
04818a4bc7
no longer let top==left and bottom==right. This is necessary for label-box
...
pointers, and may introduce bugs elsewhere. Not that I've notice any yet.
2006-07-24 17:35:34 +00:00
mfranz
7a52695de0
first stab at label box pointers. <option>top</option> on a <label> makes
...
such a box:
_____/\_____
| Booo |
|__________|
likewise with options bottom, left, right. The size can be set via option
<marker-offset> (analogous to <tape> offsets), which describes the distance
from the base to the peak. Default: 8 px
2006-07-24 17:09:03 +00:00
mfranz
bd9ec88355
- don't use 10 pt font size for width calculations, when in fact we use
...
a 8 pt font (set 8 pt in preferences.xml, too)
- fix vertical alignment of digits in label and ladder (temporary
solution -- the whole font handling needs to be reviewd and fixed)
- simplify nadir and zenith (they always want to be horizontally centered
on the ladder lines, no?)
- simplify and abstract label box drawing (no need for stippled side lines)
- align text (more) correctly in label boxes
2006-07-24 16:00:18 +00:00
curt
b010480bfb
Switch sign of beta/drift.
2006-07-23 17:47:23 +00:00
mfranz
52ceea2048
cleanup (getBoolValue() returns false by default)
2006-07-23 16:57:13 +00:00
curt
a91afd2482
Re-implement the flight path marker (aka "velocity vector") so it's position
...
is computed from alpha and beta. Before the code U, V, & W body velocities
to compute alpha/beta. Why not just use the values directly.
2006-07-23 16:41:18 +00:00
mfranz
0289cfcb36
- use Item::draw_circle() to draw circles (waypoint marker still to be done)
...
- move variable declaration near their first use (c++ style rather than c)
- rename (zenith|nadir|hat) to enable-(zenith|nadir|hat) and make them bool
(for consistency reasons)
2006-07-23 08:14:03 +00:00
mfranz
4ce94a0ec4
reticle should fit into bounding box (don't take diameter as radius)
2006-07-22 17:27:43 +00:00
mfranz
f620af29cd
don't be afraid of the comma operator!
2006-07-22 11:48:22 +00:00
mfranz
64502bdb80
get rid of struct Point and get_centroid(). Instruments may access *their*
...
properties directly. This is properly encapsulated already.
2006-07-22 10:09:36 +00:00
fredb
5c101b8021
Win32 fix
2006-07-22 08:49:47 +00:00
mfranz
a5125b6124
add MIL-STD-1787B Aiming Reticle (stadiametric; TODO: standby)
2006-07-22 08:00:56 +00:00
ehofman
a4265a3b0a
Use one standard define for enableing of the Special Purpose FDM code.
2006-07-17 17:58:53 +00:00
mfranz
a952ed210f
whoops ... don't let the new HUD turn off 3D mode in the old one :-)
2006-07-15 18:15:00 +00:00
mfranz
722fb05ce7
bracesless blocks are peanuts! It's forgotten "else" that do real harm. :-)
2006-07-12 20:54:27 +00:00
mfranz
d94e691f1e
- read new HUD from /sim/hud/path[1] (was: /hud)
...
- cosmetics
2006-07-11 16:09:35 +00:00
mfranz
f339304c33
- more <tape> fixes
...
- make ladder numbers symmetrical (hackish)
- fix font BBox/str_width calculation
2006-07-06 21:46:50 +00:00
mfranz
5000731c03
fix <modulo> feature (required for the compass tape)
2006-07-06 16:46:25 +00:00
mfranz
6c8ae0df1f
warning-- (not that it matters -- this code has yet to be converted)
2006-07-06 14:43:41 +00:00
mfranz
df2d876f72
- fix unzoomed tapes (TODO: restore tick length)
...
- get rid of braindead "struct Rect", where top meant y, and bottom meant height
- cleanup^3
2006-07-06 14:30:18 +00:00
mfranz
42c3d8867f
- cleanup of the day (more finegrained change history in my local cvs)
...
- <damp>ing coefficient is now 1.0 - 1.0 / pow(10, damp)
2006-07-05 22:55:33 +00:00
fredb
9db2b4f22d
Remove MSVC warnings
2006-07-05 06:28:37 +00:00
fredb
61419e83d8
Win32 fixes
2006-07-05 06:22:05 +00:00
mfranz
1d0b6290c4
- collect drawing primitives in the Item base class
...
- rename circle to draw_bullet, which is more correct
2006-07-04 21:04:22 +00:00
mfranz
eb69a4bd4b
- don't store immutable states as strings (sigh!)
...
- class members start with underscore
2006-07-04 17:25:14 +00:00