FSDeveloper Community

Go Back   FSDeveloper Community > Microsoft Flight Simulator development > Aircraft Design > Gauges

Gauges Use this forum for all your gauges related discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 15 Mar 2009, 13:43
Capn_Geoff Capn_Geoff is offline
 
Join Date: Jan 2007
Posts: 58
Module_var_none Needle

From lost in the desert of missing documentation - I have a simple question.

How does one actually tie in a C++ gauge variable to make a needle move.

I have a circular gauge which goes 0-100, with 75 being the max value that should be displayed. I put in a non-linear needle. The gauge is a measure of the amount of payout in feet a refueling drogue is. So I need to drive the needle with my own variable. M$ kindly does not indicate anything other than to use MODULE_VAR_NONE... and pray.

So how exactly does one tie in a variable (say, int drogue_payout) to the needle gauge?

Edit: Oops this is for FS9/2004

Last edited by Capn_Geoff; 15 Mar 2009 at 13:48.
Reply With Quote
  #2  
Old 15 Mar 2009, 14:06
Capn_Geoff Capn_Geoff is offline
 
Join Date: Jan 2007
Posts: 58
Figured it out....

In the callback, just set the val/pelement value, and it works like magic.!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VC gauge 3D needle animation smoothness B21 Modeling 6 19 Sep 2008 20:23
Needle Rotation query Cee-Jaay Gauges 5 14 Sep 2008 19:47


All times are GMT -4. The time now is 08:05.

Kirsch designed by Andrew & Austin


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.