April 28, 200521 yr Due to increasingly popular demand:http://wiki.varxec.net/OpenF50Pls read my notes below the download URL.Have fun!
May 8, 200521 yr For starters, NICE code....my code isn't nearly as clean as yours and I'm using all bitmapped items instead of rendering them at runtime (polygons and such). I'm making them from bitmaps on polygos with a transparency setting (by default, a color on my bitmap of 0,0,0 is transparent, all others untouched).Just a tip, you might try making a loop for your pitch ladder to execute your drawing of it a little faster. Something like:DrawLadder(int UpperLimit, int LowerLimit, double Spacing, int FontSize);The function might start at 0 (the horizon bar), go up to the upper limit, reset to 0 and draw down to the lower limit. As it draws each line, it would translate the Spacing variables distance and draw the numbers at a certain font size (a little different from the rest of the text size, sized independently for proper reading).This would then be a basis for drawing the airspeed and altitude tapes if applicable.Great looking gauges, awesome coding....job well done. If you want to check out my code on my gauges, check out http://cvs.sourceforge.org/projects/fslink/ and view http://cvs.sourceforge.net/viewcvs.py/fslink/ for the project file repository. I'm making a site for my programs' documentation. It can be found hosted on a PC in my house at http://fslink.homeip.net/fslink (keep in mind, this site is not finished and not always active - computer has to be off sometimes - it is a WINDOWS machine :-)). Aaron
May 8, 200521 yr That ladder is somewhat an issue. Because the font won't rotate. Using your transparent bitmaps could solve that but I think using bitmaps would slow down the program, not sure.I'll be checking tonight if I manage to write to FS and if that works I will add the functionality of the flight mode panel into the EADI. Why in EADI ? Because that one is the only one that shows which modes of the FMP are active. I hope I manage to make it work.
Create an account or sign in to comment