diff options
author | ronie <ronie@poedel.net> | 2014-01-06 15:34:53 -0800 |
---|---|---|
committer | ronie <ronie@poedel.net> | 2014-01-06 15:34:53 -0800 |
commit | 5c4159e5cb3a34df3216256a113b818f41588279 (patch) | |
tree | 79d930a7fee6bef13b0b3afe6b39b18311f49f67 | |
parent | 2a5b27adcc131d4d1583b9a9e4be8299272e12a3 (diff) | |
parent | 6c1a079051fd3a06a0867afc041e5e26ea22c23a (diff) |
Merge pull request #3970 from ronie/confluence-select
[Confluence] smaller select dialog when button is not visible
-rw-r--r-- | addons/skin.confluence/720p/DialogSelect.xml | 104 | ||||
-rw-r--r-- | addons/skin.confluence/720p/includes.xml | 4 |
2 files changed, 71 insertions, 37 deletions
diff --git a/addons/skin.confluence/720p/DialogSelect.xml b/addons/skin.confluence/720p/DialogSelect.xml index 558ef42e12..61318cc6aa 100644 --- a/addons/skin.confluence/720p/DialogSelect.xml +++ b/addons/skin.confluence/720p/DialogSelect.xml @@ -9,44 +9,70 @@ </coordinates> <include>dialogeffect</include> <controls> - <control type="image"> - <description>background image</description> - <left>0</left> - <top>0</top> - <width>850</width> - <height>600</height> - <texture border="40">DialogBack.png</texture> - <visible>![Window.IsVisible(FullscreenVideo) | Window.IsVisible(Visualisation)]</visible> - </control> - <control type="image"> - <description>background image</description> - <left>0</left> - <top>0</top> - <width>850</width> - <height>600</height> - <texture border="40">DialogBack2.png</texture> - <visible>Window.IsVisible(FullscreenVideo) | Window.IsVisible(Visualisation)</visible> - </control> - <control type="image"> - <description>Dialog Header image</description> - <left>40</left> - <top>16</top> - <width>770</width> - <height>40</height> - <texture>dialogheader.png</texture> + <control type="group"> + <visible>Control.IsVisible(6) | [Control.IsVisible(3) + Control.IsVisible(5)]</visible> + <control type="image"> + <description>background image</description> + <left>0</left> + <top>0</top> + <width>850</width> + <height>600</height> + <texture border="40">$VAR[SelectBack]</texture> + </control> + <control type="image"> + <description>Dialog Header image</description> + <left>40</left> + <top>16</top> + <width>770</width> + <height>40</height> + <texture>dialogheader.png</texture> + </control> + <control type="label" id="1"> + <description>header label</description> + <left>40</left> + <top>20</top> + <width>770</width> + <height>30</height> + <font>font13_title</font> + <label>$LOCALIZE[13406]</label> + <align>center</align> + <aligny>center</aligny> + <textcolor>selected</textcolor> + <shadowcolor>black</shadowcolor> + </control> </control> - <control type="label" id="1"> - <description>header label</description> - <left>40</left> - <top>20</top> - <width>770</width> - <height>30</height> - <font>font13_title</font> - <label>$LOCALIZE[13406]</label> - <align>center</align> - <aligny>center</aligny> - <textcolor>selected</textcolor> - <shadowcolor>black</shadowcolor> + <control type="group"> + <left>120</left> + <visible>Control.IsVisible(3) + !Control.IsVisible(5)</visible> + <control type="image"> + <description>background image</description> + <left>0</left> + <top>0</top> + <width>610</width> + <height>630</height> + <texture border="40">$VAR[SelectBack]</texture> + </control> + <control type="image"> + <description>Dialog Header image</description> + <left>40</left> + <top>16</top> + <width>530</width> + <height>40</height> + <texture>dialogheader.png</texture> + </control> + <control type="label" id="1"> + <description>header label</description> + <left>40</left> + <top>20</top> + <width>530</width> + <height>30</height> + <font>font13_title</font> + <label>$LOCALIZE[13406]</label> + <align>center</align> + <aligny>center</aligny> + <textcolor>selected</textcolor> + <shadowcolor>black</shadowcolor> + </control> </control> <control type="button"> <description>Close Window button</description> @@ -63,6 +89,7 @@ <onright>10</onright> <onup>10</onup> <ondown>10</ondown> + <animation effect="slide" end="-120,0" time="0" condition="Control.IsVisible(3) + !Control.IsVisible(5)">Conditional</animation> <visible>system.getbool(input.enablemouse)</visible> </control> <control type="list" id="3"> @@ -77,6 +104,7 @@ <pagecontrol>61</pagecontrol> <scrolltime>200</scrolltime> <animation effect="slide" start="0,0" end="10,0" time="0" condition="!Control.IsVisible(61)">Conditional</animation> + <animation effect="slide" end="120,0" time="0" condition="Control.IsVisible(3) + !Control.IsVisible(5)">Conditional</animation> <itemlayout height="46" width="550"> <control type="image"> <left>0</left> @@ -253,6 +281,7 @@ <onup>61</onup> <showonepage>false</showonepage> <orientation>vertical</orientation> + <animation effect="slide" end="120,0" time="0" condition="Control.IsVisible(3) + !Control.IsVisible(5)">Conditional</animation> </control> <control type="label"> <description>number of files/pages in list text label</description> @@ -266,6 +295,7 @@ <scroll>true</scroll> <textcolor>grey</textcolor> <label>([COLOR=blue]$INFO[Container(3).NumItems][/COLOR]) $LOCALIZE[31025] - $LOCALIZE[31024] ([COLOR=blue]$INFO[Container(3).CurrentPage]/$INFO[Container(3).NumPages][/COLOR])</label> + <animation effect="slide" end="-120,30" time="0" condition="!Control.IsVisible(5)">Conditional</animation> <visible>Control.IsVisible(3)</visible> </control> <control type="label"> diff --git a/addons/skin.confluence/720p/includes.xml b/addons/skin.confluence/720p/includes.xml index 37b54780fe..cb4438a9e3 100644 --- a/addons/skin.confluence/720p/includes.xml +++ b/addons/skin.confluence/720p/includes.xml @@ -33,6 +33,10 @@ <value condition="Window.IsActive(videolibrary) + !StringCompare(Playlist.Length(video),0)">ActivateWindow(videoplaylist)</value> <value condition="[Window.IsActive(musiclibrary) | Window.IsActive(musicfiles)] + !StringCompare(Playlist.Length(music),0)">ActivateWindow(musicplaylist)</value> </variable> + <variable name="SelectBack"> + <value condition="![Window.IsVisible(FullscreenVideo) | Window.IsVisible(Visualisation)]">DialogBack.png</value> + <value condition="Window.IsVisible(FullscreenVideo) | Window.IsVisible(Visualisation)">DialogBack2.png</value> + </variable> <include name="BehindDialogFadeOut"> <control type="image"> |