2019-07-18, 13:07
@Hitcher
Another approach just as suggestion. If you want I can add this window property directly to the script so it always sets a loading property + and clears it once endDirectory is reached.
In DialogVideoInfo.xml
Container layout:
Another approach just as suggestion. If you want I can add this window property directly to the script so it always sets a loading property + and clears it once endDirectory is reached.
In DialogVideoInfo.xml
Code:
<onload>SetProperty(CL,1,home)</onload>
<onload>AlarmClock(clearCL,ClearProperty(CL,home),00:01,silent)</onload>
Container layout:
xml:
<itemlayout condition="!String.IsEmpty(Window(Home).Property(CL))">
---- loading spinner for example ---
</itemlayout>
<itemlayout condition="String.IsEmpty(Window(Home).Property(CL))" width="257">
<control type="group">
<left>70</left>
<top>64</top>
<include content="CastLayout">
<param name="mainlabel" value="$PARAM[mainlabel]" />
<param name="sublabel" value="$PARAM[sublabel]" />
<param name="labels_visible" value="$PARAM[labels_visible]" />
<param name="focused" value="false" />
<param name="id" value="$PARAM[id]" />
</include>
</control>
</itemlayout>
<focusedlayout condition="!String.IsEmpty(Window(Home).Property(CL))">
---- loading spinner for example ---
</focusedlayout>
<focusedlayout condition="String.IsEmpty(Window(Home).Property(CL))" width="257">
<control type="group">
<left>70</left>
<top>64</top>
<include content="CastLayout">
<param name="mainlabel" value="$PARAM[mainlabel]" />
<param name="sublabel" value="$PARAM[sublabel]" />
<param name="labels_visible" value="$PARAM[labels_visible]" />
<param name="focused" value="true" />
<param name="id" value="$PARAM[id]" />
</include>
</control>
</focusedlayout>