Archived

This topic is now archived and is closed to further replies.

Guest ridgell

string help

Recommended Posts

%((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
Help AVSIM continue to serve you!
Please donate today!

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.

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

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

%(@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.

Share this post


Link to post
Share on other sites