Possible to open a yes/no dialog?
#1
Is it possible to open a "custom" yes/no dialog from within a skin? I can call xbmc.activatewindow(100), but is there any way to pass parameters to it?
Reply
#2
Nope. What are you after exactly?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Trying to make a button press pop up an "are you sure?" type window
Reply
#4
Ah, ok. So you need something like:

<onclick>Dialog.Confirm(heading,line1,line2,line3,function_to_do_if_confirmed)</onclick>

Post a feature request on trac, including any other ideas you might have.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
jmarshall Wrote:Ah, ok. So you need something like:

<onclick>Dialog.Confirm(heading,line1,line2,line3,function_to_do_if_confirmed)</onclick>

Post a feature request on trac, including any other ideas you might have.

Cheers,
Jonathan

Exactly! Ok, I will post on trac later today
Reply
#6
bump. is this integrated yet?
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#7
Just make a custom one.

https://bitbucket.org/Hitcher/skin.xeebo..._YesNo.xml
Reply
#8
(2012-03-25, 16:58)Hitcher Wrote: Just make a custom one.

https://bitbucket.org/Hitcher/skin.xeebo..._YesNo.xml

already did that, nonetheless this would be useful to clean up the code.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#9
Use a script. Smile
Image
Reply
#10
which one? Big Grin will stay with my custom window then, was just wondering if a nicer/shorter soulution would be possible.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#11
bump. is this integrated yet?

Hitcher, your bitbucket link to the custom yes/no is dead.
I would be interested to see how you did it. Specially if you had a "function_to_do_if_confirmed" without using a script.
My next function would be to simply to open an "ok" dialog, nothing fancy.
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#12
http://forum.xbmc.org/showthread.php?tid=137262
Reply

Logout Mark Read Team Forum Stats Members Help
Possible to open a yes/no dialog?0