Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Draw text to arbitrary place on window?
#1
Hi,

I'm using 19.x.

Kodi auto starts a slideshow when launched using autoexec.py. Works perfectly. xbmc.executebuiltin("SlideShow({file location},random)")

I am able to use the JSON-RPC GUI.ShowNotification interface to post notifications.

Is there any way to draw text onto the slideshow window/view? ShowNotification is OK but much larger than what I need.

Thanks,

Tim
Reply
#2
I think what you want to do is create an overlay window (WindowDialog or WindowDialogXML instance) and add a label control to it.  Keep in mind you need to supply the required font or use one defined in the current skin or the fallback font13.  Put a visibility condition for Window.IsVisible(slideshow).

scott s.
.
Reply
#3
Thanks @scott967. Unfortunately I don't know where to start. Where would I implement the code? There is something fundamental about extending Kodi that I don't understand. Are you aware of any examples?

I appreciate the help!
Reply
#4
It isn't clear if you are using JSON-RPC from within autoexec.py or via http.  My idea assumed you are doing everything within autoexec.py.   Can't think of a way if you are using http.

scott s.
.
Reply

Logout Mark Read Team Forum Stats Members Help
Draw text to arbitrary place on window?0