I've been working on a new HUD in Instrumentation/HUD/. It's steadily improving, but occasionally something turns out to require more work than I had thought before. Here's a list of working new features:
- unified XML. There is no longer a top-level file that loads special item groups, but only one type. It can contain all items directly, or import other instruments or instrument sets. These can load others, etc. One can create a new HUD by writing an XML file that imports another, complete HUD and only adds a few labels. Or one can start fgfs with one single instrument as new standalone HUD. - the coordinate system is stil based on 640x480, but the origin is now in the middle of the screen, so it's much easier to place items symmetrically - items don't (by default) use coordiniates that put them where they are located in current HUDs. The turn-bank-indicator instrument file doesn't put itself centered at the bottom, but rather at 0/0. The final place is fixed at import time. Each item is placed relative to its parent. - each item has a <condition> that can hide/unhide it. That way elements can be acticated via property system. - labels can blink, depending on another <condition>. So the G-Load can start blinking when the pilot's acceleration falls under/raises over a certain limit. It's the same <condition> logic that's used in animations, so it's very powerful. - every property can be used as input to an instrument (except for all those funky ADA/ladder elements. Still thinking about that.) A factor and offset can be applied to it, the final value can be clamped to min/max values. - instrument options are now no longer OR'ed flags that have to be picked from README.xmlhud, as in <options>11</options>. Instead this can be done in human-readable form: <option>vertical</option> <option>autoticks</option> <option>bottom</option> - the HUD file itself can define if it's a 3D HUD or 2D HUD. No need to set that in the main tree. This is optional. - the G-Load for the f16 is no longer inverted ;-) - everything cleaned up and pressed into classes :-) - in --log-level=info one gets a funky file tree. Currently that's the following for the default HUD: load Huds/default.xml |__import Huds/Instruments/turn-bank-indicator.xml | |__turn-bank-indicator: "Turn Bank Indicator" | |__import Huds/Sets/coordinates.xml | |__import Huds/Instruments/latitude.xml | | |__label: "Latitude" | | | |__import Huds/Instruments/longitude.xml | |__label: "Longitude" | | |__import Huds/Instruments/compass.xml | |__tape: "Gyrocompass" | |__import Huds/Sets/controls.xml | |__gauge: "Aileron" | |__gauge: "Elevator" | |__gauge: "Rudder" | |__gauge: "Throttle" | |__gauge: "Elevator Trim" | |__import Huds/Sets/parameters.xml | |__import Huds/Instruments/gload.xml | | |__label: "G Load" | | | |__tape: "AMSL" | |__tape: "RadioAltimeter" | |__tape: "KIAS" | |__import Huds/Sets/autopilot.xml | |__label | |__label | |__label | |__label | |__label | |__label | |__label | |__label | |__label | |__label | |__label | |__label | |__label | |__import Huds/Instruments/ladder.xml | |__ladder: "Pitch Ladder" | |__import Huds/Instruments/runway.xml |__runway: "Runway" TODO: - solve ADA/ladder input problem (many channels) - make switchable units work again (metric/imperial) - rewrite hud_card? - convert all old HUDs - more cleanup m. Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel