A very simple add-on, that couldn't be closed. How?
#1
Hello.
I want to make a very simple video add-on, that will show hardcodded list of videos and this plugin I plan to start with autoexec.py on my TV-Box, with Libreelec.
My parents are too old and I should to make a very simple video choosing interface, that shouldn't be closed. For example, my parents could press some key accidentally and they could close add-on in Kodi.
How to force KODI to don't allow to close interface of add-on, even if pressed Esc on keyboard or right mouse button?
Currently, my mod is just a fork of https://github.com/romanvm/plugin.video.example with 90% similar code.
Thank you for reading this, for your time.
Reply
#2
Thread moved to addon development
| Banned add-ons (wiki) | Forum rules (wiki) | First time user (wiki) | FAQs (wiki) | Troubleshooting (wiki) | Add-ons (wiki) | Free content (wiki) | Debug Log (wiki) | Free Movies/TV Shows |
Reply
#3
Hi
What you could do is build your own Window and override the onaction method https://codedocs.xyz/xbmc/xbmc/group__py...002b029c75

However be aware that you might get stuck in the window if you are catching the nav back action.

AFAIK there is no other way to hook into actions
Reply
#4
Ohhhh, thank you, that's what I need!
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
A very simple add-on, that couldn't be closed. How?00