2016-09-12, 01:06
I was not able to find anything about this searching, and not sure if it is a bug, but when using image control types, I always get the error Error Contents: Unknown control type for python when using self.getControl(controlID) when the following two options exist in the image control. If i remove them everything works fine. The image control works fine via xml too with the options in, It is only when trying to access the control via script. Also the tags can be present as long as there is no value in them.
Any thoughts?
GOOD:
BAD:
EXAMPLE:
Any thoughts?
GOOD:
PHP Code:
<bordertexture border="2"></bordertexture>
<bordersize></bordersize>
BAD:
PHP Code:
<bordertexture border="2">myborder.png</bordertexture>
<bordersize>2</bordersize>
EXAMPLE:
PHP Code:
<control type="image" id="210">
<animation delay="200" effect="fade" start="0" end="100">Visible</animation>
<description>myinfo</description>
<width>540</width>
<height>280</height>
<texture background="true"></texture>
<aspectratio align="center" aligny="center">scale</aspectratio>
<bordertexture border="2">myborder.png</bordertexture>
<bordersize>2</bordersize>
</control>