Skip to content
Browse files

Added check if script.randomandlastitems is installed.

  • Loading branch information...
1 parent 32fc701 commit acddbc3ec1fc6d320cdf032af669eaf5d8763f04 lambda81 committed Mar 27, 2012
Showing with 46 additions and 9 deletions.
  1. +28 −1 720p/custom_DialogCustomPane.xml
  2. +2 −0 720p/custom_DialogCustomPaneType.xml
  3. +16 −8 720p/includes_SkinSettingsHome.xml
View
29 720p/custom_DialogCustomPane.xml
@@ -16,11 +16,12 @@
<include>DialogTitle2</include>
<label>$LOCALIZE[31085]</label>
</control>
-
+
<control type="grouplist">
<posx>DialogMarginOffsetX</posx>
<posy>68</posy>
<width>420</width>
+ <visible>System.HasAddon(script.randomandlastitems)</visible>
<control type="label">
<description>Dialog Line 1</description>
<width>420</width>
@@ -32,6 +33,32 @@
</control>
</control>
+ <control type="grouplist">
+ <posx>DialogMarginOffsetX</posx>
+ <posy>60</posy>
+ <width>420</width>
+ <itemgap>35</itemgap>
+ <visible>!System.HasAddon(script.randomandlastitems)</visible>
+ <control type="label">
+ <description>Dialog Line 1</description>
+ <width>420</width>
+ <font>DefaultFontB</font>
+ <textcolor>ButtonColor</textcolor>
+ <align>center</align>
+ <scroll>yes</scroll>
+ <label>$LOCALIZE[24076]</label>
+ </control>
+ <control type="label">
+ <description>Dialog Line 2</description>
+ <width>420</width>
+ <font>DefaultFontB</font>
+ <textcolor>ButtonColor</textcolor>
+ <align>center</align>
+ <scroll>yes</scroll>
+ <label>script.randomandlastitems</label>
+ </control>
+ </control>
+
<control type="button" id="10">
<description>OK</description>
<posx>160</posx>
View
2 720p/custom_DialogCustomPaneType.xml
@@ -182,6 +182,7 @@
<onclick condition="Skin.HasSetting(ExpandAddMoreCategorySettings4) + Skin.String(SelectedExpandedBtn,4)">Skin.SetString(Custom16PanelType,4)</onclick>
<include>CustomPanelClearScripts</include>
<onclick>Dialog.Close(1130)</onclick>
+ <enable>System.HasAddon(script.randomandlastitems)</enable>
</control>
<control type="button" id="105">
<description>Playlist (Episodes)</description>
@@ -205,6 +206,7 @@
<onclick condition="Skin.HasSetting(ExpandAddMoreCategorySettings4) + Skin.String(SelectedExpandedBtn,4)">Skin.SetString(Custom16PanelType,5)</onclick>
<include>CustomPanelClearScripts</include>
<onclick>Dialog.Close(1130)</onclick>
+ <enable>System.HasAddon(script.randomandlastitems)</enable>
</control>
<control type="button" id="106">
<description>Music Videos</description>
View
24 720p/includes_SkinSettingsHome.xml
@@ -856,6 +856,7 @@
<height>45</height>
<include>ExpandedSettingsListBtn</include>
<label>$LOCALIZE[564] - [COLOR=DefaultColor2]$VAR[AddMoreCategoryBtn1PanelTypeLabel][/COLOR]</label>
+ <onclick condition="!System.HasAddon(script.randomandlastitems)">ActivateWindow(1131)</onclick>
<onclick>ActivateWindow(1130)</onclick>
</control>
<control type="button" id="2344">
@@ -1031,6 +1032,7 @@
<height>45</height>
<include>ExpandedSettingsListBtn</include>
<label>$LOCALIZE[564] - [COLOR=DefaultColor2]$VAR[AddMoreCategoryBtn2PanelTypeLabel][/COLOR]</label>
+ <onclick condition="!System.HasAddon(script.randomandlastitems)">ActivateWindow(1131)</onclick>
<onclick>ActivateWindow(1130)</onclick>
</control>
<control type="button" id="2344">
@@ -1206,6 +1208,7 @@
<height>45</height>
<include>ExpandedSettingsListBtn</include>
<label>$LOCALIZE[564] - [COLOR=DefaultColor2]$VAR[AddMoreCategoryBtn3PanelTypeLabel][/COLOR]</label>
+ <onclick condition="!System.HasAddon(script.randomandlastitems)">ActivateWindow(1131)</onclick>
<onclick>ActivateWindow(1130)</onclick>
</control>
<control type="button" id="2344">
@@ -1381,6 +1384,7 @@
<height>45</height>
<include>ExpandedSettingsListBtn</include>
<label>$LOCALIZE[564] - [COLOR=DefaultColor2]$VAR[AddMoreCategoryBtn4PanelTypeLabel][/COLOR]</label>
+ <onclick condition="!System.HasAddon(script.randomandlastitems)">ActivateWindow(1131)</onclick>
<onclick>ActivateWindow(1130)</onclick>
</control>
<control type="button" id="2344">
@@ -2516,10 +2520,11 @@
</variable>
<include name="AddMoreCategoryBtn1PanelEnable">
- <enable>[Skin.HasSetting(ExpandAddMoreCategorySettings) + [Skin.String(Custom1PanelType,4) | Skin.String(Custom1PanelType,5)]] |
+ <enable>System.HasAddon(script.randomandlastitems) +
+ [[Skin.HasSetting(ExpandAddMoreCategorySettings) + [Skin.String(Custom1PanelType,4) | Skin.String(Custom1PanelType,5)]] |
[Skin.HasSetting(ExpandAddMoreCategorySettings2) + [Skin.String(Custom5PanelType,4) | Skin.String(Custom5PanelType,5)]] |
[Skin.HasSetting(ExpandAddMoreCategorySettings3) + [Skin.String(Custom9PanelType,4) | Skin.String(Custom9PanelType,5)]] |
- [Skin.HasSetting(ExpandAddMoreCategorySettings4) + [Skin.String(Custom13PanelType,4) | Skin.String(Custom13PanelType,5)]]</enable>
+ [Skin.HasSetting(ExpandAddMoreCategorySettings4) + [Skin.String(Custom13PanelType,4) | Skin.String(Custom13PanelType,5)]]]</enable>
</include>
<include name="AddMoreCategoryBtn1PanelWarning">
@@ -2789,10 +2794,11 @@
</variable>
<include name="AddMoreCategoryBtn2PanelEnable">
- <enable>[Skin.HasSetting(ExpandAddMoreCategorySettings) + [Skin.String(Custom2PanelType,4) | Skin.String(Custom2PanelType,5)]] |
+ <enable>System.HasAddon(script.randomandlastitems) +
+ [[Skin.HasSetting(ExpandAddMoreCategorySettings) + [Skin.String(Custom2PanelType,4) | Skin.String(Custom2PanelType,5)]] |
[Skin.HasSetting(ExpandAddMoreCategorySettings2) + [Skin.String(Custom6PanelType,4) | Skin.String(Custom6PanelType,5)]] |
[Skin.HasSetting(ExpandAddMoreCategorySettings3) + [Skin.String(Custom10PanelType,4) | Skin.String(Custom10PanelType,5)]] |
- [Skin.HasSetting(ExpandAddMoreCategorySettings4) + [Skin.String(Custom14PanelType,4) | Skin.String(Custom14PanelType,5)]]</enable>
+ [Skin.HasSetting(ExpandAddMoreCategorySettings4) + [Skin.String(Custom14PanelType,4) | Skin.String(Custom14PanelType,5)]]]</enable>
</include>
<include name="AddMoreCategoryBtn2PanelWarning">
@@ -3062,10 +3068,11 @@
</variable>
<include name="AddMoreCategoryBtn3PanelEnable">
- <enable>[Skin.HasSetting(ExpandAddMoreCategorySettings) + [Skin.String(Custom3PanelType,4) | Skin.String(Custom3PanelType,5)]] |
+ <enable>System.HasAddon(script.randomandlastitems) +
+ [[Skin.HasSetting(ExpandAddMoreCategorySettings) + [Skin.String(Custom3PanelType,4) | Skin.String(Custom3PanelType,5)]] |
[Skin.HasSetting(ExpandAddMoreCategorySettings2) + [Skin.String(Custom7PanelType,4) | Skin.String(Custom7PanelType,5)]] |
[Skin.HasSetting(ExpandAddMoreCategorySettings3) + [Skin.String(Custom11PanelType,4) | Skin.String(Custom11PanelType,5)]] |
- [Skin.HasSetting(ExpandAddMoreCategorySettings4) + [Skin.String(Custom15PanelType,4) | Skin.String(Custom15PanelType,5)]]</enable>
+ [Skin.HasSetting(ExpandAddMoreCategorySettings4) + [Skin.String(Custom15PanelType,4) | Skin.String(Custom15PanelType,5)]]]</enable>
</include>
<include name="AddMoreCategoryBtn3PanelWarning">
@@ -3335,10 +3342,11 @@
</variable>
<include name="AddMoreCategoryBtn4PanelEnable">
- <enable>[Skin.HasSetting(ExpandAddMoreCategorySettings) + [Skin.String(Custom4PanelType,4) | Skin.String(Custom4PanelType,5)]] |
+ <enable>System.HasAddon(script.randomandlastitems) +
+ [[Skin.HasSetting(ExpandAddMoreCategorySettings) + [Skin.String(Custom4PanelType,4) | Skin.String(Custom4PanelType,5)]] |
[Skin.HasSetting(ExpandAddMoreCategorySettings2) + [Skin.String(Custom8PanelType,4) | Skin.String(Custom8PanelType,5)]] |
[Skin.HasSetting(ExpandAddMoreCategorySettings3) + [Skin.String(Custom12PanelType,4) | Skin.String(Custom12PanelType,5)]] |
- [Skin.HasSetting(ExpandAddMoreCategorySettings4) + [Skin.String(Custom16PanelType,4) | Skin.String(Custom16PanelType,5)]]</enable>
+ [Skin.HasSetting(ExpandAddMoreCategorySettings4) + [Skin.String(Custom16PanelType,4) | Skin.String(Custom16PanelType,5)]]]</enable>
</include>
<include name="AddMoreCategoryBtn4PanelWarning">

0 comments on commit acddbc3

Please sign in to comment.
Something went wrong with that request. Please try again.