Posts: 300
Joined: Mar 2008
Reputation:
14
Hi,
I want to create a simple dialog in my addon (to select a resume time), but I want to keep the same look and feel of other skins. Is it possible to reuse the existing skin files directly and populating there controls, without taking a copy and placing it directly into my addon?
The actual XML is DialogContextMenu.xml - and so the control IDs will be the same (996) - however I'm not sure if I can populate this type of control through Python?
Or do I need to take a copy and alter it to add some labels which I can change.
Add-on:PleXBMC (wiki) - Play Plex media through XBMC
PleXBMC Helper - Integrate Official/Unoffical Plex remote control apps into PleXBMC
PleXBMC Repository - install and manage all PleXBMC addons
Quartz3 PleXBMC - Integrate PleXBMC into home menus
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
that's a dynamic dialog.
you would have to getControl(1000) and copy it and add it to the grouplist control.
i haven't tested this but i don't think you can copy a control. so you would have to get all the controls values eg getPos()... the create new controls.
i think there was talk about adding a context menu control, maybe it was just a wishlist item though. but that would be the best.
Posts: 300
Joined: Mar 2008
Reputation:
14
Thanks - i'm guessing then that just taking a copy of XML file (and associated media items) and modifing it would be easier then. I'm just looking to simulate the "resume from" type message so it's a very simple dialog.
I've managed to avoid having to do custom dialogs - un til now and i'm just trying to get up to speed on what I can/can;t do.
Add-on:PleXBMC (wiki) - Play Plex media through XBMC
PleXBMC Helper - Integrate Official/Unoffical Plex remote control apps into PleXBMC
PleXBMC Repository - install and manage all PleXBMC addons
Quartz3 PleXBMC - Integrate PleXBMC into home menus
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
well if you only have the one item, then it might work.
Posts: 300
Joined: Mar 2008
Reputation:
14
2013-04-09, 17:38
(This post was last modified: 2013-04-09, 17:39 by hippojay.)
yeah, that's what I used to do and will be my fallback - but i was trying to find a more elegant/seamless looking way (as I already use the standard resume features/dialogs for everything else, so wanted it all to fit in).
Add-on:PleXBMC (wiki) - Play Plex media through XBMC
PleXBMC Helper - Integrate Official/Unoffical Plex remote control apps into PleXBMC
PleXBMC Repository - install and manage all PleXBMC addons
Quartz3 PleXBMC - Integrate PleXBMC into home menus