Hi,
me again with a new fix needed
so i want OnScreen information like FOV and TILT,
with my code i can display FOV and TILT in the same textbox, but for design reasons, i need to separate them to position where i want onScreen,
so basically , i 've 2 actions with 2 events and 2 textstyle
Code
<textstyle name="FOVTEXT" origin="bottom" edge="bottom" yoffset="-135" textalign="center" background="false" border="false" fontsize="12" textcolor="0x666666" bold="false"
effect="glow(0xFFFFFF,0.0,0,0);glow(0x000000,0,0,0);dropshadow(0,0,0x000000,0,0.0);" showtime="2.0" fadetime="1.0" />
<textstyle name="TILTTEXT" origin="bottom" edge="bottom" yoffset="-165" textalign="center" background="false" border="false" fontsize="12" textcolor="0x666666" bold="false"
effect="glow(0xFFFFFF,0.0,0,0);glow(0x000000,0,0,0);dropshadow(0,0,0x000000,0,0.0);" showtime="2.0" fadetime="1.0" />
<action name="show_fov_text">
copy(fov,view.fov);
roundval(fov,2);
<!-- copy(tilt,view.vlookat); -->
<!-- roundval(tilt,2); -->
txtadd(msg,'ANGLE OF VIEW = ',get(fov),'°');
<!-- txtadd(msg,'ANGLE OF VIEW = ',get(fov),'° TILT = ',get(tilt),'°'); -->
showtext(get(msg),FOVTEXT);
</action>
<action name="show_tilt_text">
copy(tilt,view.vlookat);
roundval(tilt,2);
txtadd(msg,'TILT = ',get(tilt),'°');
showtext(get(msg),TILTTEXT);
</action>
<events name="fovdisplay" keep="true" onviewchanged="show_fov_text();" />
<events name="tiltdisplay" keep="true" onviewchanged="show_tilt_text();" />
Alles anzeigen
i 've got hard time to figure out where my mistake is...
Thanks for pointing out for the fix
z