2015-05-25, 20:12
Hello everyone, I need your help to solve my problem. Here is my code for a new type of widget for my skin. But the result does not. could you help me find or there is an error. thank you
I want to succeed is already displaying information and fanart. for the rest I think that i can succeed alone.
thank you very much
I want to succeed is already displaying information and fanart. for the rest I think that i can succeed alone.
thank you very much
PHP Code:
<include name="widget_Info">
<control type="group">
<top>0</top>
<visible>Control.HasFocus(9210)</visible>
<control type="group">
<left>50</left>
<top>30</top>
<include>transition_WindowTitle</include>
<control type="label">
<width>950</width>
<label>$INFO[Container(9110).ListItem.Property(widgetName)]</label>
<font>light_Header</font>
<textcolor>Color1</textcolor>
</control>
<control type="label">
<top>32</top>
<width>950</width>
<label>$LOCALIZE[31033] [B]$INFO[Container(9210).CurrentPage][/B] of [B]$INFO[Container(9210).NumItems][/B]</label>
<font>regular_Small-U</font>
<textcolor>Color3</textcolor>
</control>
</control>
</control>
</include>
<include name="widget_Horizontal">
<orientation>horizontal</orientation>
</include>
<include name="widget_Container">
<control type="group">
<control type="image">
<texture background="true">$VAR[global_Fanart]</texture>
<include>screen_Dimensions</include>
<aspectratio align="center" aligny="top">scale</aspectratio>
<include>fadeinout</include>
<fadetime>fadetime_Fanart</fadetime>
<visible>Control.HasFocus(9210)</visible>
</control>
<animation effect="slide" start="0" end="0,800" time="200">WindowClose</animation>
<animation effect="slide" end="0" start="0,550" time="200">WindowOpen</animation>
<control type="group">
<animation effect="slide" end="0,-250" time="450" tween="back" reversible="false" condition="Control.HasFocus(9210) | ControlGroup(9110).HasFocus()">Conditional</animation>
<animation effect="slide" start="0,-250" time="250" tween="quadratic" reversible="false" condition="!Control.HasFocus(9210) + !ControlGroup(9111).HasFocus()">Conditional</animation>
<animation effect="slide" start="0" end="0,-270" time="450" tween="back" reversible="false" condition="!StringCompare(Container(9210).ListItem.Property(widget),Weather) + [!IsEmpty(Container(300).ListItem.Property(widget)) | [IsEmpty(Container(300).ListItem.Property(widget)) + [IsEmpty(Container(300).ListItem.Property(Background)) + IsEmpty(Skin.String(home.slideshowpath))]]] + Control.IsVisible(301)">Conditional</animation>
<animation effect="slide" end="0" start="0,-270" time="250" tween="quadratic" reversible="false" condition="![!StringCompare(Container(9210).ListItem.Property(widget),Weather) + [!IsEmpty(Container(9210).ListItem.Property(widget)) | [IsEmpty(Container(9210).ListItem.Property(widget)) + [IsEmpty(Container(9210).ListItem.Property(Background)) + IsEmpty(Skin.String(home.slideshowpath))]]]] | !Control.IsVisible(9110)">Conditional</animation>
</control>
<control type="group">
<animation effect="fade" start="100" end="0" time="0" reversible="false" condition="![!StringCompare(Container(9210).ListItem.Property(widget),Weather) + [!IsEmpty(Container(9210).ListItem.Property(widget)) | [IsEmpty(Container(9210).ListItem.Property(widget)) + [IsEmpty(Container(9210).ListItem.Property(Background)) + [IsEmpty(Skin.String(home.slideshowpath))]]]]]">Conditional</animation>
<animation effect="fade" start="0" end="100" time="200" delay="200" reversible="false" condition="!StringCompare(Container(9210).ListItem.Property(widget),Weather) + [!IsEmpty(Container(9210).ListItem.Property(widget)) | [IsEmpty(Container(9210).ListItem.Property(widget)) + [IsEmpty(Container(9210).ListItem.Property(Background)) + [IsEmpty(Skin.String(home.slideshowpath))]]]]">Conditional</animation>
<animation type="WindowClose">
<effect type="fade" start="100" end="0" time="150"/>
</animation>
<bottom>190</bottom>
<height>297</height>
<!-- Widget Info -->
<control type="group">
<visible>Control.HasFocus(9210)</visible>
<animation type="Visible">
<effect type="fade" start="0" end="100" time="350" delay="300" tween="cubic" easing="inout" reversible="false"/>
</animation>
<control type="group">
<top>-100</top>
<left>150</left>
<control type="label">
<width>1060</width>
<label>$VAR[widget_ItemTitle]</label>
<include>osd_Title</include>
</control>
<control type="label">
<top>25</top>
<width>1060</width>
<label>$VAR[widget_ItemInfo]</label>
<textcolor>Color1</textcolor>
<include>osd_Sub</include>
</control>
<control type="textbox">
<top>55</top>
<width>1060</width>
<height>100</height>
<label>$VAR[widget_ItemDescription]</label>
<font>condensed-U</font>
<textcolor>Color3</textcolor>
</control>
</control>
</control>
<control type="list" id="9210">
<left>70</left>
<right>70</right>
<top>20</top>
<bottom>20</bottom>
<onback>9110</onback>
<animation effect="fade" start="100" end="0" time="0" delay="0" reversible="false" condition="Container(9210).IsUpdating | Container(9110).OnNext | Container(9110).OnPrevious">Conditional</animation>
<animation effect="fade" start="0" end="100" time="200" delay="200" reversible="false" condition="!Container(9210).IsUpdating + !Container(9110).OnNext + !Container(9110).OnPrevious">Conditional</animation>
<onleft condition="StringCompare(Skin.String(homemenu.type),horizontal)">9210</onleft>
<onright condition="StringCompare(Skin.String(homemenu.type),horizontal)">9210</onright>
<onup condition="StringCompare(Skin.String(homemenu.type),horizontal)">-</onup>
<ondown condition="StringCompare(Skin.String(homemenu.type),horizontal)">9110</ondown>
<include condition="StringCompare(Skin.String(homemenu.type),horizontal)">widget_Horizontal</include>
<preloaditems>2</preloaditems>
<pagecontrol>70</pagecontrol>
<include>global_Scrolltime</include>
<include>transition_Content</include>
<visible allowhiddenfocus="true">!IsEmpty(Container(9110).ListItem.Property(Widget)) + Control.HasFocus(9210)</visible>
<itemlayout width="178" height="257">
<include>widget_ContainerCommons</include>
</itemlayout>
<focusedlayout width="178" height="257">
<include>widget_ContainerCommons</include>
<control type="image">
<visible>Control.HasFocus(9210)</visible>
<left>2</left>
<top>2</top>
<right>2</right>
<bottom>2</bottom>
<texture colordiffuse="highlight" border="20">common/selectbox.png</texture>
<animation type="Focus">
<effect type="zoom" start="90" end="100" time="150" tween="sine" easing="inout" center="auto" />
<effect type="fade" start="0" end="100" time="150" tween="sine" easing="in" />
</animation>
<animation type="Unfocus">
<effect type="zoom" start="100" end="90" time="150" tween="sine" easing="inout" center="auto" />
<effect type="fade" start="100" end="0" time="150" tween="sine" easing="out" />
</animation>
</control>
</focusedlayout>
<content target="url">$VAR[widget_Content]</content>
</control>
</control>
</control>
<include>widget_Info</include>
<control type="group">
<visible>Control.HasFocus(9210)</visible>
<control type="scrollbar" id="70">
<top>712</top>
<width>1280</width>
<orientation>horizontal</orientation>
<texturesliderbar>views/pagecontrol/grip-fo.png</texturesliderbar>
<visible>StringCompare(Skin.String(homemenu.type),horizontal)</visible>
</control>
</control>
</include>
<include name="widget_ContainerCommons">
<control type="image">
<left>5</left>
<right>5</right>
<bottom>5</bottom>
<top>5</top>
<aspectratio scalediffuse="false">scale</aspectratio>
<texture>white.png</texture>
</control>
<control type="image">
<left>10</left>
<right>10</right>
<bottom>10</bottom>
<top>10</top>
<aspectratio scalediffuse="false">scale</aspectratio>
<texture diffuse="diffuse/wall.png" background="true" fallback="DefaultAddonNone.png">$VAR[thumb_Portrait]</texture>
</control>
</include>