; #1833: five pictures of one texture, written for this test. A as it is; B moved half
; its width (SetUITexOffset); C moved and masked (SetUIAlphaMap); D with a mask that is
; not there (refused, 0), drawn as A; E with a mask file that is no image (kept, 1; the
; renderer cannot read it and draws E as A). The controller replaces B at 8 s: the new
; tile has no offset.
PrintC "nvf texoffset injected %g", (InjectUIComponent "HUDMainMenu" "<rect name=%qNVFTex%q><x>80</x><y>280</y><width>256</width><height>400</height><visible>1</visible><alpha>255</alpha><_controller>1</_controller><image name=%qA%q><x>0</x><y>0</y><width>256</width><height>64</height><filename>interface\hud\hud_compass_alphamap.dds</filename><alpha>255</alpha></image><image name=%qB%q><x>0</x><y>80</y><width>256</width><height>64</height><filename>interface\hud\hud_compass_alphamap.dds</filename><alpha>255</alpha></image><image name=%qC%q><x>0</x><y>160</y><width>256</width><height>64</height><filename>interface\hud\hud_compass_alphamap.dds</filename><alpha>255</alpha></image><image name=%qD%q><x>0</x><y>240</y><width>256</width><height>64</height><filename>interface\hud\hud_compass_alphamap.dds</filename><alpha>255</alpha></image><image name=%qE%q><x>0</x><y>320</y><width>256</width><height>64</height><filename>interface\hud\hud_compass_alphamap.dds</filename><alpha>255</alpha></image></rect>")
PrintC "nvf texoffset set %g %g %g %g %g", (SetUITexOffset "HUDMainMenu/NVFTex/B" 1.5 0), (SetUITexOffset "HUDMainMenu/NVFTex/C" -0.5 0), (SetUIAlphaMap "HUDMainMenu/NVFTex/C" "interface\hud\hitgradientleft.dds"), (SetUIAlphaMap "HUDMainMenu/NVFTex/D" "interface\hud\missing_nvf_mask.dds"), (SetUIAlphaMap "HUDMainMenu/NVFTex/E" "interface\hud\mask_not_an_image_nvf.txt")
SetTileScript "HUDMainMenu/NVFTex/_controller" (CompileScript "nvf_texoffset_controller.txt")
