Kodi Community Forum
New Window Creation Issues - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+--- Thread: New Window Creation Issues (/showthread.php?tid=142438)



New Window Creation Issues - sharx07 - 2012-10-10

Hi,
I want to create a new window, in order to create custom buttons for my various genre's
I got the window 100%, but I'm struggling with 3 points:

1. which ID to give it <window id ="XXXXXX">

2. what to name the file - customXXXXXX.xml or custom_XXXXXX.xml

3. How to Activate it from a previous menu: <onclick>ActivateWindow(XXXXXXX)</onclick>

Any help will be muchly appreciated!!!

P.S Using Simplicity, but this is more 'general' than skin specific!
Thanks!


RE: New Window Creation Issues - sharx07 - 2012-10-11

After hours and a rather tired section of my brain, I did finally crack it.
For anyone who is interested (many views, no repplies), heres the method:

1. pick unique id, in my case - 1788

2. Start the custom window with: <window id="1788">

3. Name the file as you require with id at end - custom_trial_1788.xml and save in the respective folder - here being skin/addons/720p/

4. edit the section where you want to activate the window - <onclick>XBMC.ActivateWindow(1788)</onclick>

Done n Dusted!!!!

Very proud of myself right now, still a newbie but you gotta start somewhere!!!

Cool Cool Cool Cool Cool Cool






RE: New Window Creation Issues - Hitcher - 2012-10-11

Bit late but - Adding Extra Windows


RE: New Window Creation Issues - sharx07 - 2012-10-17

Shot, that cleared it up a bit as well!