Yeah, didn't think if you wanted it password protected or not. If you do, then Baddabing's way is the way to go. If it doesn't matter, here is my .xml code for creating a toggle effect:
- Code: Select all
<event>
<name>toggle_adult</name>
<commands>
<command>
<type>category</type>
<execute>set database</execute>
<parameter>movies</parameter>
<parameter>rratedmovies</parameter>
<parameter />
<parameter />
<parameter />
</command>
<command>
<type>xlobby</type>
<execute>button set text</execute>
<parameter>toggle_movie</parameter>
<parameter>Adult</parameter>
</command>
<command>
<type>xlobby</type>
<execute>button state set</execute>
<parameter>toggle_movie</parameter>
<parameter>children</parameter>
</command>
</commands>
</event>
<event>
<name>toggle_children</name>
<commands>
<command>
<type>category</type>
<execute>set database</execute>
<parameter>movies</parameter>
<parameter>childrenmovies</parameter>
<parameter />
<parameter />
<parameter />
</command>
<command>
<type>xlobby</type>
<execute>button set text</execute>
<parameter>toggle_movie</parameter>
<parameter>Children</parameter>
</command>
<command>
<type>xlobby</type>
<execute>button state set</execute>
<parameter>toggle_movie</parameter>
<parameter>recordedtv</parameter>
</command>
</commands>
</event>
Copy and paste this code into your "skins"/eventgroups/movies.xml file (or whatever your movies xml file is called). Place it just before the final </events> variable. Notice it is event
s, and not just event...otherwise you'd be placing it within another event...and it won't work out too well
.
Then follow Rika's instruction on creating a toggle button here:
viewtopic.php?p=32891#32891Have fun