frohlich
d11ec8c8e7
Don't bail out for lon == 180 or lat == 90
2006-06-15 08:55:42 +00:00
frohlich
c2d8dcc18b
More use of SGGeo[dc].
2006-06-15 08:29:43 +00:00
mfranz
7327e35020
remove the rest of the static variables (except one); cleanup
2006-06-15 00:21:06 +00:00
mfranz
4e8a89c9c0
remove readCard() and let the hud_card class read its properties
2006-06-14 23:27:55 +00:00
mfranz
9e2de090b4
remove readCard and let the gauge_instr class read its own properties
2006-06-14 20:39:10 +00:00
mfranz
b32aa5086a
remove readRunway() and let the runway_instr class read the properties in
...
the constructor
2006-06-14 18:41:36 +00:00
mfranz
d1a9512c91
remove readTBI() and let the fgTBI_instr class read its properties
2006-06-14 16:57:38 +00:00
mfranz
ddda2c68d5
- remove hud.cxx/readLabel and let the instr_label read its properties
...
- remove unused copy constructor
- fix potential crash bug
2006-06-14 16:23:44 +00:00
mfranz
812275cf15
remove readLadder(const SGPropertyNode *) and make the HudLadder
...
constructor read its properties on its own
2006-06-14 12:49:27 +00:00
mfranz
471fecd72c
indentation, trailing spaces, ... (cosmetics only); doesn't make
...
the coding style fully consistent yet, but it's good enough for code changes
(mixed tab/space indents, 4 space tabs etc. are a royal pain)
2006-06-14 10:30:10 +00:00
mfranz
e545c563d5
remove assignment operators: they aren't used now and won't in the future
2006-06-13 15:00:31 +00:00
mfranz
0b0c681775
indentation, trailing spaces, alignment, ... (to make further work easier)
2006-06-13 14:48:19 +00:00
mfranz
b674037a3c
- fix more cases of scale tick aliasing to get smooth scale movements
...
- remove trailing spaces, fix indentation, unify coding style, ...
2006-06-12 23:27:55 +00:00
mfranz
365546444c
fix ugly aliasing effects in moving scales (caused by integer calculation
...
of tick coords)
2006-06-12 22:27:10 +00:00
mfranz
9edd0a1ea4
- remove trailing spaces
...
- fix indentation, alignment and other formal stuff
2006-06-12 21:34:47 +00:00
mfranz
5fa474e209
- remove evil exit()
...
- remove "enabled". It's unused, and that's a good thing: it wasn't
initialized.
2006-06-12 15:39:38 +00:00
mfranz
79abf11466
add Nasal/Listener hooks for adding/removing AI/MP models. Things like
...
MP chat or Nasal/xml based radar instruments need that. It uses fgSetString,
because this is in a very "cold path" and shouldn't clutter the AIBase.
2006-06-11 15:32:18 +00:00
mfranz
56d8181da3
remove the "ai_model" subsystem manually before the other subsystems
...
are taken down by the C++ runtime environment. This will later be done
with runlevels. Why would we want to run nasal code in subsystem
destructors? We don't really. But some data structures may use nasal,
which are normally created/destroyed during runtime. And these will
also be destroyed at fgfs exit. In the past things like these didn't
happen, because someone had disabled all subsystem destructors ...
2006-06-11 15:18:48 +00:00
frohlich
14fe03ba6f
Modified Files:
...
src/AIModel/AIAircraft.cxx src/ATC/AILocalTraffic.cxx
src/FDM/flight.cxx src/FDM/flight.hxx src/FDM/groundcache.cxx
src/FDM/groundcache.hxx src/Main/fg_init.cxx src/Main/main.cxx
src/Scenery/hitlist.cxx src/Scenery/hitlist.hxx
src/Scenery/scenery.cxx src/Scenery/scenery.hxx
Make use of the attached SGMaterial reference userdata on scenegraph
leafs. Make the SGMaterial pointer available to the ground query
routines.
2006-06-11 13:34:18 +00:00
mfranz
e48967cb1d
fix another crash on exit by finally converting the rest of unguarded
...
SGPropertyNode to guarded ones. This is also done for JSBSim/JSBSim.hxx,
for which JSB had given explicit permission a while ago. I postponed that
back then, but now is the time.
2006-06-11 10:21:10 +00:00
mfranz
c4463b311c
make sure the "nasal" subsystem is one of the last to be removed. That
...
way it can still process listener code during shutdown.
2006-06-10 22:24:05 +00:00
mfranz
00f3d1db80
- remove listener in ~FGNasalListener(), not FGNasalSys::removelistener
...
- delete all listeners in ~FGNasalSys()
2006-06-10 22:21:22 +00:00
mfranz
dee302354f
the special line width doesn't make much sense, as it's only applied to the
...
arrow head marks. It was probably thought for all lines, but as those are
wide enough, I just comment that out for now.
2006-06-10 15:25:48 +00:00
frohlich
ff907d87e3
Updates to the MSVC8 project file from Olaf.
2006-06-10 11:19:51 +00:00
mfranz
14addaab07
treat colors like the other parameters: only copy them from the palette
...
color group /sim/hud/palette/color[*]/ to the active group /sim/hud/color/
if they really exist. (Parameters like <antialiased> can be set in the
active group and be left alone, or set by each <palette> color group.)
2006-06-10 09:22:27 +00:00
mfranz
b2b9a32e4b
consider new HUD path. It doesn't seem to make sense to put "antialiased"
...
into the <color> group, but that's because on HUD color changes a whole
"color" set from /sim/hud/palette/color[*] is copied to /sim/hud/color/, and
antialiasing needs to be considered with that. (I'm not entirely happy
with the property names yet.)
2006-06-10 07:23:15 +00:00
mfranz
925e1578cd
- remove lots of traling spaces
...
- fix indendation and alignment
2006-06-09 21:29:40 +00:00
mfranz
265e411791
- add transparency option
...
- comment out date/time ... this needs to be added to the HUDs that need it
2006-06-09 20:37:16 +00:00
mfranz
942561d64c
- remove trailing spaces
...
- fix many cases of broken indentation (but not all)
- unify indendation
- ...
2006-06-09 18:48:57 +00:00
mfranz
4db6e924fe
Vivian MEAZZA:
...
" Make a couple of minor adjustments to Harald's weather radar code, make
elevation work in the radar code, and add station ident to the TACAN code"
2006-06-09 18:29:51 +00:00
mfranz
20076aa2b9
- remove obsolete definition
...
- make sure HUD is only initialized once
2006-06-09 10:53:48 +00:00
mfranz
782e6b82f0
- copy preset colors from <palette> to /sim/hud/color
...
- listen to color, alpha, alpha-clamping
- fix blend mode
2006-06-08 17:14:59 +00:00
fredb
5723bebbcc
Fix wrong documentation link
2006-06-08 12:14:35 +00:00
frohlich
4fde3031eb
Make use of the ground material types
2006-06-08 05:58:36 +00:00
mfranz
8369cc75f5
- don't hide HUD only because the color index is invalid
...
- initialize color components
2006-06-07 21:41:32 +00:00
mfranz
fe3bdf0837
boy, what a load of ...
2006-06-07 21:35:11 +00:00
mfranz
d2791fdc9d
whoops ... compile (this silly #define will be removed very soon)
2006-06-07 21:28:33 +00:00
mfranz
e841b65a5a
remove obsolete constants
2006-06-07 21:09:38 +00:00
mfranz
1ccacef184
- drop hardcoded color/brightness values
...
- let listener class watch and maintain HUD color properties, which is
more effective and more flexible.
2006-06-07 18:01:19 +00:00
mfranz
14ab303877
remove obsolete HUD fgcommands
2006-06-07 17:59:28 +00:00
mfranz
95da0171a0
bark if the requested font isn't a texture font. A more graceful recovery
...
doesn't buy us much, as the font is only set at initialization time and not
changeable later. Better tell the user immediately that he goofed.
2006-06-06 19:25:33 +00:00
mfranz
675ff6fbc8
restore old default; this should probably be configurable ...
2006-06-06 18:36:34 +00:00
mfranz
c5e74d090a
better always use style[0] (again). Otherise *-set.xml can't easily change
...
background/font
2006-06-06 17:30:49 +00:00
mfranz
88beabb2d3
use global fontcache ... this is mostly cosmetic, as the whole file will
...
probably die a soon as the old property picker was removed
2006-06-06 16:33:38 +00:00
mfranz
15dbbbf143
- use global fontcache
...
- make font/size configurable
2006-06-06 15:34:18 +00:00
mfranz
db86d15c5f
use global fontcache. This hast the nice side effect that panels can now
...
use *any* texture (*.txf) font, not just "typewriter" and "led".
2006-06-06 12:52:45 +00:00
mfranz
355f86d6cf
FGFontCache: add getter for the fntTexFont component of a cached font
2006-06-06 12:49:42 +00:00
mfranz
d8cd8f96aa
read font and colors from the selected style, not always from /sim/gui/style[0]
2006-06-05 22:03:23 +00:00
mfranz
43b66ac74b
don't choke on invalid nodes
2006-06-05 21:55:18 +00:00
mfranz
55903e9a07
use the global fontcache; this has the nice side-effect that the font is
...
now settable via /sim/gui/style/fonts/splash/{name,size,slant}
2006-06-05 20:49:35 +00:00