Jump to content
Sign in to follow this  
Guest bones

XML Gauge sizing

Recommended Posts

Guest bones

In trying to make a small gauge to display a couple of FS values I have got a bit lost in the various values for sizing. I'll try to explain..In the XML gauge I have included a 240 x 150 bitmap. Onto this I want to place two text strings using something like the following code: %A/C WT. %((A:TOTAL WEIGHT, KG) )%!d! kgIn the above I am assuming the Position statement will start the text at 25 pixels right and down from the top left corner of the bitmap. Is that correct?Next are the values for the Text line - and I would appreciate a rough guide for X, Y and Length values. How do you know how long your text will be :) Playing with these values so far has caused great confusion as the displayed text is varying in size (I think with varying the Y value) and is far bigger than I would like.Does it cause further problems when you define the gauge in the panel.cfg file? I as that because you now introduce further options to alter sizing (window_pos and window_size) as well as further permutations for sizing the gauge in the gauge line:gauge00=weight!AC-weight, 0, 0, x, yIt is the variety of options for sizing that is confusing me - I'm not happy with coding at the best fo times..Could someone please enlighten me?boneshttp://fsaviation.nethttp://www.precisionmanuals.com/images/forum/ng_driver.jpg

Share this post


Link to post
Share on other sites
Guest pscarratt

Bones,You are right in assuming the

Share this post


Link to post
Share on other sites

Also. you can add to the Text specification:"FontSize="16" Adjust="Center" VerticalAdjust="Center"Which gives you control over the fontsize, and the position of the text in the textbox.I.o.w: you could use a small letter in a large box if you want.Beware though there is a potential problem with rescaling a gauge.Things like the Text box and bitmaps are rescaled properly (= lineairly). But the character fontsize is NOT. (this is only in discrete steps).Example: when you slowly increase the scale (in the panel.cfg)At first the box becomes large, but not the textsize.And if you increase it a bit more: Now suddenly the text becomes a lot larger, and might not even fit the textbox.Rob

Share this post


Link to post
Share on other sites

Hi,Also you could use: Fixed="Yes" to fit a text between x="60".And with Formattedtext you can use Linespacing=" " and Tabs=" , , " using n and t etc.A whole lot of possibility's.Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites
Guest bones

Jan, Rob and Paul..Thank you all gentlemen for your kind and lucid replies.One more step along the road to understanding.I've been designing scenery and aircraft since FS4 days and have forgotten all the tools I have had to learn and subsequently discard. Each time the is another quantum jump I always say "never again" but it never lasts. Like a moth to a candle we get drawn in again. I must be mad..boneshttp://fsaviation.nethttp://www.precisionmanuals.com/images/forum/ng_driver.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...