|
|
Quellcode |
1 2 3 4 5 6 7 8 |
<events onviewchange="showfovtext();" /> <textstyle name="FOVTEXT" origin="bottom" edge="top" yoffset="190" textalign="center" background="false" border="false" fontsize="20" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);" showtime="2.0" fadetime="1.0" /> <action name="showfovtext"> copy(fov,view.hfov); roundval(fov,2); txtadd(msg,'HFOV=',get(fov),'°'); showtext(get(msg),FOVTEXT); </action> |
"<action name="showfovtext">
copy(fov,view.hfov);
roundval(fov,2);
txtadd(msg,'HFOV=',get(fov),'°');
showtext(get(msg),FOVTEXT);
</action>"
does that work have you tested it? i dont think hfov is valid. this is what the view tag supports i dont see hfov.
Yes, it works fine!
Now, when I zoom to 90°, I have a HFOV of 90° on my screen (default or full screen) and the radar shows also 90°!!!
Thanks for the tilt, I will try it and tell you if it works
"<action name="showfovtext">
copy(fov,view.hfov);
roundval(fov,2);
txtadd(msg,'HFOV=',get(fov),'°');
showtext(get(msg),FOVTEXT);
</action>"
does that work have you tested it? i dont think hfov is valid. this is what the view tag supports i dont see hfov.
Just a little change and now it's works perfectly
the below action should work but it is not tested.
"<action name="showfov_tilt">
copy(fov,view.fov);
copy(tilt,view.vlookat);
roundval(fov,2);
roundval(tilt,2);
txtadd(msg,'FOV=',get(fov),'°+ TILT='get(tilt),'°');
showtext(get(msg),FOVTEXT);
</action>"
|
|
Quellcode |
1 2 3 4 5 6 7 8 |
<action name="showfov_tilt"> copy(fov,view.hfov); copy(tilt,view.vlookat); roundval(fov,2); roundval(tilt,2); txtadd(msg,'HFOV=',get(fov),'°+ TILT=',get(tilt),'°'); showtext(get(msg),FOVTEXT); </action> |
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Boubou« (24. Mai 2011, 00:17)