Jump to content
Sign in to follow this  
Guest ridgell

string help

Recommended Posts

Guest ridgell

%((A:SPOILERS HANDLE POSITION,bool)) %{if}(:(%{else} %!1d!% F%((A:Flaps handle index, number))%!0d!aint working! i am trying to get a one line display ( why 1 line; has to shift and rotate) to display spoiler and flaps status.something like; B (16 characters worth of empty space here ) F3 ...spoiler out flaps at 3or; (17 characters worth of empty space here ) F1 ...no spoiler flaps 1if the control is not deployed then nothing about that control is displayed. the above (bad string) shows F0 & when spoiler is deployed the B is front and center pushing the flaps display of screen....its to messed up for me to understand how to fix it. monkey see monkey do programing ait working for me on this one. this monkey needs a better example plzzzz

Share this post


Link to post
Share on other sites

Hello Try for flaps %(45 30 20 8 0 5 (A:Flaps handle index, number) case)%!2d! Numbers 45 to 0 are your aircraft flap settings (degrees). Last number on the right is the number of settings used. you can change them to what ever you require but the settings used number must match the number of flap settings.


Paul EGLD

Share this post


Link to post
Share on other sites

Hi,It is:(A:SPOILERS HANDLE POSITION,position) between 0 and 1.and you could use:(A:FLAPS HANDLE INDEX,enum), number of positions.So something like:S %((A:SPOILERS HANDLE POSITION,position) 0 >)%{if}(up)%{else}(down)-----F %((degrees... number of positions (A:Flaps handle index, number) case)%!2d!)%!d!Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

foutje:S %((A:SPOILERS HANDLE POSITION,position) 0 >)%{if}Up%{else}Down_____F %(( degrees... number of positions (A:Flaps handle index,number) case)%!2d!Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites
Guest bookmark

Hi Steve,In addition to the excellent advice above, why not use a tag to cancel the string if neither flaps nor speed brakes are used? Or maybe I misunderstood you. I suppose this is for the AJ37 HUD?/tom

Share this post


Link to post
Share on other sites
Guest ridgell

%(@speed)%!03d!% ________________ %(@alt)%!03d!@pitch @banki was hopeing for something like the above, 2 string statements on a single line that i could rotate and shift as 1 big line.jan has what i wanted, but...odd thing; the above line rotates and shifts, but it does not exactly match with bitmaps put in the same place; ie; the string goes a hair below the bitmap line at 90 degrees of bank and a hair above wings level...and if i use 2 string lines (ladder style) they do match each other...they tighten and spread acording to the bank angle. i have tried vertical adjust center, bottom, top, no can get it just right...it is not far off, but it is not perfect.and i do use the my beautiful hud is looseing features like a fat lady on a jello diet...the aj37 had a very rudimentery hud. much less complex then the one of my imagination.

Share this post


Link to post
Share on other sites

Resurrected this post to recover the necroed XML script! - Bill (N4GIX)

<Element><Position X="120" Y="114"/>			<Text X="180" Y="16" Length="26" Fixed="No" Font="arial black" Adjust="center" VerticalAdjust="bottom" Color="%('#ffffff' '#00ff00' '#ac3628' 3 (L:hudcolor,enum) case)" Bright="Yes"><String>%(@speed)%!03d!% ________________ %(@alt)%!03d!</String><Axis X="90" Y="0"/></Text>			<Shift>				<Value>@pitch </Value>				<Scale Y="25"/>			</Shift>			<Rotate>				<Value>@bank</Value>			</Rotate>			<Clip Left="43" Right="207" Top="16" Bottom="159"/>		</Element>

i was hopeing for something like the above, 2 string statements on a single line that i could rotate and shift as 1 big line.jan has what i wanted, but...odd thing; the above line rotates and shifts, but it does not exactly match with bitmaps put in the same place; ie; the string goes a hair below the bitmap line at 90 degrees of bank and a hair above wings level...and if i use 2 string lines (ladder style) they do match each other...they tighten and spread acording to the bank angle. i have tried vertical adjust center, bottom, top, no can get it just right...it is not far off, but it is not perfect.and i do use the <visible>my beautiful hud is looseing features like a fat lady on a jello diet...the aj37 had a very rudimentery hud. much less complex then the one of my imagination.


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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...