Stats with Skin.Shortcut ?
#1
Hello there
I took this code in Big Refocus:
Is there a possibility to work with Skin.Shortcut?
I tried it but it not change on the tabs
thx Wink

PHP Code:
<control type="group">
            <
posy>684</posy>
            <
visible>Skin.HasSetting(home.stats)</visible>
            <
animation effect="slide" start="0,100" end="0,0" time="250" tween="Quadratic" easing="Out">WindowOpen</animation>
            <
animation effect="slide" start="0,0" end="0,100" time="250" tween="Quadratic" easing="Out">WindowClose</animation>
            <
control type="image">
                <
width>1281</width>
                <
height>52</height>
                <
texture border="0">home/homeRSS.png</texture>
            </
control>
            <
control type="fadelabel">
                <
posy>10</posy>
                <
label>[COLOR=Color1]$INFO[Window.Property(Movies.Count)] $LOCALIZE[20342][/COLOR]  $INFO[Window.Property(Movies.UnWatched)] $LOCALIZE[16101• [COLOR=Color1]$INFO[Window.Property(Episodes.Count)] $LOCALIZE[20360][/COLOR]  $INFO[Window.Property(Episodes.UnWatched)] $LOCALIZE[16101• [COLOR=Color1]$INFO[Window.Property(Music.ArtistsCount)] $LOCALIZE[133][/COLOR$INFO[Window.Property(Music.AlbumsCount)] $LOCALIZE[132$INFO[Window.Property(Music.SongsCount)] $LOCALIZE[134]</label>
                <include>
home_statuslabel</include>
                <
visible>!Container(9000).HasFocus(17) + ![Library.HasContent(movies) + [Container(9000).HasFocus(3) | Container(9000).HasFocus(4)] | Library.HasContent(tvshows) + [Container(9000).HasFocus(5) | Container(9000).HasFocus(6)] | Library.HasContent(music) + [Container(9000).HasFocus(9) | Container(9000).HasFocus(10) | Container(9000).HasFocus(21) | Container(9000).HasFocus(22)]] + ![[Container(9000).HasFocus(7) | Container(9000).HasFocus(8)] + !IsEmpty(PVR.NextRecordingDateTime)]</visible>
            </
control>
            <
control type="label">
                <
label>$LOCALIZE[31095]: [COLOR=Color1]$INFO[Window.Property(LatestMovie.1.Title),, • ]$INFO[Window.Property(LatestMovie.2.Title),, • ]$INFO[Window.Property(LatestMovie.3.Title),, • ]$INFO[Window.Property(LatestMovie.4.Title),, • ]$INFO[Window.Property(LatestMovie.5.Title)][/COLOR]</label>
                <include>
home_statuslabel</include>
                <
visible>Library.HasContent(movies) + [Container(9000).HasFocus(3) | Container(9000).HasFocus(4)]</visible>
            </
control>
            <
control type="label">
                <
label>$LOCALIZE[31094]: [COLOR=Color1]$INFO[Window.Property(LatestEpisode.1.ShowTitle),,: ]$INFO[Window.Property(LatestEpisode.1.EpisodeTitle),, • ]$INFO[Window.Property(LatestEpisode.2.ShowTitle),,: ]$INFO[Window.Property(LatestEpisode.2.EpisodeTitle),, • ]$INFO[Window.Property(LatestEpisode.3.ShowTitle),,: ]$INFO[Window.Property(LatestEpisode.3.EpisodeTitle)][/COLOR]</label>
                <include>
home_statuslabel</include>
                <
visible>Library.HasContent(tvshows) + [Container(9000).HasFocus(5) | Container(9000).HasFocus(6)]</visible>
            </
control>
            <
control type="label">
                <
label>$LOCALIZE[19157]: [COLOR=Color1]$INFO[PVR.NextRecordingTitle], $INFO[PVR.NextRecordingDateTime] - $INFO[PVR.NextRecordingChannel][/COLOR]</label>
                <include>
home_statuslabel</include>
                <
visible>[Container(9000).HasFocus(7) | Container(9000).HasFocus(8)] + !IsEmpty(PVR.NextRecordingDateTime)</visible>
            </
control>
            <
control type="label">
                <
label>$LOCALIZE[31096]: [COLOR=Color1]$INFO[Window.Property(LatestAlbum.1.Title),, • ]$INFO[Window.Property(LatestAlbum.2.Title),, • ]$INFO[Window.Property(LatestAlbum.3.Title),, • ]$INFO[Window.Property(LatestAlbum.4.Title),, • ]$INFO[Window.Property(LatestAlbum.5.Title)][/COLOR]</label>
                <include>
home_statuslabel</include>
                <
visible>Library.HasContent(music) + [Container(9000).HasFocus(9) | Container(9000).HasFocus(10)]</visible>
            </
control>
            <
control type="label">
                <
label>$LOCALIZE[31965]: [COLOR=Color1]$INFO[Weather.Conditions], $INFO[Weather.Temperature][/COLOR] \95 $LOCALIZE[402]: [COLOR=Color1]$INFO[Window(Weather).Property(Current.FeelsLike)]$INFO[System.TemperatureUnits][/COLOR] \95 $LOCALIZE[406]: [COLOR=Color1]$INFO[Window(Weather).Property(Current.Humidity)][/COLOR] \95 $LOCALIZE[404]: [COLOR=Color1]$INFO[Window(Weather).Property(Current.Wind)][/COLOR]</label>
                <include>
home_statuslabel</include>
                <
visible>Container(9000).HasFocus(17)</visible>
            </
control>
            <
control type="label">
                <
label>[COLOR=Color1]$INFO[MusicPlayer.Title]$INFO[MusicPlayer.Artist,[COLOR=Color2$LOCALIZE[31106][/COLOR] ][/COLOR]</label>
                <include>
home_statuslabel</include>
                <
visible>Container(9000).HasFocus(21)</visible>
            </
control>
            <
control type="label">
                <
label>[COLOR=Color1]$INFO[VideoPlayer.Title][/COLOR]$INFO[VideoPlayer.Genre• ]</label>
                <include>
home_statuslabel</include>
                <
visible>Container(9000).HasFocus(22) + VideoPlayer.Content(movies)</visible>
            </
control>
            <
control type="label">
                <
label>[COLOR=Color1]$INFO[VideoPlayer.TVShowTitle,,: ][/COLOR]$INFO[VideoPlayer.Title]$INFO[VideoPlayer.Season• $LOCALIZE[20373] , - ]$INFO[VideoPlayer.Episode,$LOCALIZE[20359] ]</label>
                <include>
home_statuslabel</include>
                <
visible>Container(9000).HasFocus(22) + VideoPlayer.Content(episodes)</visible>
            </
control>
            <
control type="label">
                <
label>[COLOR=Color1]$INFO[VideoPlayer.Title][/COLOR$LOCALIZE[31106] [COLOR=Color1]$INFO[VideoPlayer.Artist][/COLOR]</label>
                <include>
home_statuslabel</include>
                <
visible>Container(9000).HasFocus(22) + VideoPlayer.Content(musicvideos)</visible>
            </
control>
            <
control type="label">
                <
label>[COLOR=Color1]$INFO[VideoPlayer.Title][/COLOR]</label>
                <include>
home_statuslabel</include>
                <
visible>Container(9000).HasFocus(22) + VideoPlayer.Content(files)</visible>
            </
control>
        </
control
Reply
#2
You could use custom shortcut properties - see "Management Dialog.txt", part 4 "Set a custom property", but basically, display your own custom window to set the relevant window properties of the skin shortcuts dialog, then send a click to button 404. Also see "Advanced Usage.txt", section "Overrides.xml", part 8 "Custom Shortcut properties" (providing defaults).

Then you'd check the custom property in your visibility conditions for your version of the code you pasted.
Reply
#3
Thank you very much for your help. It seems complicated to me, so I think I should come back soon for a new questionWink
I will immediately consider the elements you specify.!
Reply

Logout Mark Read Team Forum Stats Members Help
Stats with Skin.Shortcut ?0