Kodi Community Forum
Possible to open a yes/no dialog? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Possible to open a yes/no dialog? (/showthread.php?tid=51610)



Possible to open a yes/no dialog? - Leeuw - 2009-05-24

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?


- jmarshall - 2009-05-24

Nope. What are you after exactly?


- Leeuw - 2009-05-24

Trying to make a button press pop up an "are you sure?" type window


- jmarshall - 2009-05-24

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


- Leeuw - 2009-05-24

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


RE: Possible to open a yes/no dialog? - phil65 - 2012-03-25

bump. is this integrated yet?


RE: Possible to open a yes/no dialog? - Hitcher - 2012-03-25

Just make a custom one.

https://bitbucket.org/Hitcher/skin.xeebo/src/c9e9c52f1208/720p/Custom_55_YesNo.xml


RE: Possible to open a yes/no dialog? - phil65 - 2012-03-25

(2012-03-25, 16:58)Hitcher Wrote: Just make a custom one.

https://bitbucket.org/Hitcher/skin.xeebo/src/c9e9c52f1208/720p/Custom_55_YesNo.xml

already did that, nonetheless this would be useful to clean up the code.


RE: Possible to open a yes/no dialog? - `Black - 2012-03-25

Use a script. Smile


RE: Possible to open a yes/no dialog? - phil65 - 2012-03-25

which one? Big Grin will stay with my custom window then, was just wondering if a nicer/shorter soulution would be possible.


RE: Possible to open a yes/no dialog? - MassIV - 2012-08-04

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.


RE: Possible to open a yes/no dialog? - nessus - 2012-08-04

http://forum.xbmc.org/showthread.php?tid=137262