Draw text to arbitrary place on window? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228) +---- Thread: Draw text to arbitrary place on window? (/showthread.php?tid=372378) |
Draw text to arbitrary place on window? - tfcbx - 2023-03-06 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 RE: Draw text to arbitrary place on window? - scott967 - 2023-03-06 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. . RE: Draw text to arbitrary place on window? - tfcbx - 2023-03-07 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! RE: Draw text to arbitrary place on window? - scott967 - 2023-03-08 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. . |