2010-09-01, 12:42
I'm trying (unsuccessfully) to pull the image from an off-screen multiimage control using Control.GetLabel() but it's not playing ball.
Here's the code used -
and then this -results in nothing.
If I test it using a single image everything works as expected -
Is it simply that GetLabel doesn't and can't work with multiimage controls?
Thanks.
Here's the code used -
PHP Code:
<control type="multiimage" id="4000">
<width>349</width>
<height>260</height>
<posx>-1000</posx>
<posy>-1000</posy>
<randomize>true</randomize>
<timeperimage>8000</timeperimage>
<fadetime>400</fadetime>
<texture background="true">$INFO[Skin.String(CustomMovies)]</texture>
</control>
PHP Code:
<control type="image">
<width>349</width>
<height>260</height>
<posx>10</posx>
<posy>10</posy>
<aspectratio aligny="top" scalediffuse="false">scale</aspectratio>
<texture background="true" diffuse="home/homematte.png">$INFO[Control.GetLabel(4000)]</texture>
</control>
If I test it using a single image everything works as expected -
PHP Code:
<control type="image" id="4000">
<width>349</width>
<height>260</height>
<posx>-1000</posx>
<posy>-1000</posy>
<randomize>true</randomize>
<timeperimage>8000</timeperimage>
<fadetime>400</fadetime>
<texture background="true">$INFO[Skin.String(CustomMovies)]</texture>
</control>
Is it simply that GetLabel doesn't and can't work with multiimage controls?
Thanks.