busy dialogue
#1
I created toggle button for verticle / horizontal layout. I want to know how to start busy dialogue for 5 seconds when the button is pressed. The busy dialogue should automatically close when 5 seconds elapses:

:
<include content="IconButtonVerHor">
                        <param name="control_id" value="813" />
                        <param name="onclick" value="Skin.ToggleSetting(horizontal_menu)" />
                        <param name="onclick" value="Skin.ToggleSetting(verticle_menu)" />
                        <param name="icon_on" value="position/horizontalmenu2.png" />
                        <param name="icon_off" value="position/verticlemenu2.png" />
                        <param name="label" value="$LOCALIZE[31023]" />
                        <!--<param name="visible" value="!Player.Hasvideo" />-->
                    </include>
Reply
#2
Does this help?

https://forum.kodi.tv/showthread.php?tid...pid2883690
Reply
#3
(2019-09-13, 19:25)Hitcher Wrote: Does this help?

https://forum.kodi.tv/showthread.php?tid...pid2883690

Hi Hitcher, thanks for the quick response. 
How can I activate this when 
Code:
<param name="onclick" value="Skin.ToggleSetting(horizontal_menu)" /
is pressed. The switch between horizontal to verticle layout or vice versa takes time and I don't want anything pressed during this time.  I created a fake busy using 
Code:
<Visible>skin.Hassettings</visible>
command, however the busy diagolue does not close. See below code:

Code:
<control type="group">
<visible>!Skin.HasSetting(horizontal_menu)</visible>
            <control type="image">
            <animation effect="fade" time="400">VisibleChange</animation>
                <texture>backgrounds/wizard.png</texture>
                <include>FullScreenDimensions</include>
                <animation effect="fade" start="100" end="70" time="0" condition="true">Conditional</animation>
                <animation effect="fade" start="100" end="0" time="240" condition="Window.IsVisible(fullscreenvideo)">Conditional</animation>
            </control>
            <control type="group">
                <depth>DepthMax</depth>
                <centerleft>50%</centerleft>
                <centertop>50%</centertop>
                <width>80</width>
                <height>80</height>
                <control type="image">
                    <centerleft>50%</centerleft>
                    <centertop>50%</centertop>
                    <width>80</width>
                    <height>80</height>
                    <aspectratio>keep</aspectratio>
                    <animation effect="rotate" end="-45" center="auto" time="200" delay="600" loop="true" reversible="false" condition="true">Conditional</animation>
                    <texture colordiffuse="button_focus">spinner.png</texture>
                </control>
                <control type="image">
                    <centerleft>50%</centerleft>
                    <centertop>50%</centertop>
                    <width>50</width>
                    <height>50</height>
                    <aspectratio>keep</aspectratio>
                    <animation effect="rotate" end="45" center="auto" time="200" delay="600" loop="true" reversible="false" condition="true">Conditional</animation>
                    <texture flipx="true" colordiffuse="button_focus">spinner.png</texture>
                </control>
                
            </control>
Reply

Logout Mark Read Team Forum Stats Members Help
busy dialogue0