Any way to lock watched unwatched toggle?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Friscovi Offline
Junior Member
Posts: 5
Joined: Mar 2012
Reputation: 0
Post: #1
Hi
Related to my previous post I'm modding my home.xml so that when we click on Videos the Hide watch toggle so turned off and then when we click on Movies or TV Shows it's turned back on. I've had limited success with the ToggleWatched command but it seem to just throw the radio button and so it easy to get them switch in the 'wrong' position. Is there any way to set the toggle to On and Off? What am I missing?

Thanks again
find quote
hellohello Offline
Senior Member
Posts: 146
Joined: Aug 2009
Reputation: 0
Post: #2
Friscovi, did you ever solve this?
find quote
Hitcher Online
Skilled Skinner
Posts: 10,879
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #3
Add this to your home.xml

PHP Code:
<onload>Skin.Reset(HomeVideos)</onload

and this to the actual Videos button.

PHP Code:
<onclick>Skin.SetBool(HomeVideos)</onclick

Then add this to MyVideoNav.xml making sure you use a radiobutton for the actual button id=14.

PHP Code:
<onload condition="Skin.HasSetting(HomeVideos) + SubString(Control.GetLabel(14),*)">SendClick(14)</onload>
<
onload condition="!Skin.HasSetting(HomeVideos) + !SubString(Control.GetLabel(14),*)">SendClick(14)</onload
find quote