2017-08-17, 16:28
I use Zomboided's VPN manager service, and wanted to add a submenu item to display the VPN status. I added the following to userdata/addon_data/script.skinshortcuts/settings.DATA.xml:
The above works, but the submenu doesn't close when the popup appears. I tried adding a second action as follows:
But that doesn't help either. Am I missing something?
Code:
<shortcut>
<defaultID />
<label>VPN Status</label>
<label2>Custom item</label2>
<icon>DefaultShortcut.png</icon>
<thumb />
<action>RunScript(special://home/addons/service.vpn.manager/infopopup.py, sysinfo)</action>
</shortcut>
The above works, but the submenu doesn't close when the popup appears. I tried adding a second action as follows:
Code:
<shortcut>
<defaultID />
<label>VPN Status</label>
<label2>Custom item</label2>
<icon>DefaultShortcut.png</icon>
<thumb />
<action>RunScript(special://home/addons/service.vpn.manager/infopopup.py, sysinfo)</action>
<action>RunScript(script.skinshortcuts,type=hidesubmenu&mainmenuID=9000)</action>
</shortcut>
But that doesn't help either. Am I missing something?