(2022-02-04, 11:46)fantasticn Wrote: (2022-01-31, 16:35)mardukL Wrote: (2022-01-31, 15:33)fantasticn Wrote: Sounds great. Been waiting for custom entries in the shutdown menu section for quite a while now ;-)
Yeah, i know , unbelievable its nearly 2 years back.
Wow, have not been aware of the time passing by. so SWAN has become the skin I have been using the longest time by now ;-) And I still love the HomeTiles layout for it makes a great launcher on my Android TV device (mostly Shield TV boxes). It is clean, nicely animated and not overloaded with blinking widget (that take minutes to load and I would not use anyway). So can't wait for the additions to the shutdown menu. Video looks great. Keep up the good work!
Yeah. thanks a lot.
Update Pushed now, as i have not much time for further implementation next days...
tough if there are bugs i do my best to hotfix them as fast as possible :-)
Changelog: v *.1.32
• update / version bump (
resource.images.skin.swan ) to fill gap of available images for shortcut items
• fonts
- fix typos in include def 'n call
- remove double entrys
• Home
- Hometile Layout : - dont load hometilesubmenu if corresponding setting disabled
• shortcuts/skinsettingsection :
- ability for user defined shutdownmenu items
○ predefined
○ custom - define executebuiltins
'
currently if multi onclick / executions needed for an item, you'll have to use and save your script somwhere
'
example: path is 'skin.swan/scripts/multiple_test.py', action: RunScript(special://skin/scripts/multiple_test.py) , scrip runs the 'notification built in' 5 times
'''
python:
import xbmc
def main():
# xbmc.executebuiltin(function, block).
# https://github.com/xbmc/xbmc/tree/master...s/builtins
xbmc.executebuiltin('notification(action1:, performed)')
xbmc.executebuiltin('notification(action2:, performed)')
xbmc.executebuiltin('notification(action3:, performed)')
xbmc.executebuiltin('notification(action4:, performed)')
xbmc.executebuiltin('notification(action5:, performed)')
if __name__ == '__main__':
main()
'''
i take o look later on to simplify ( use a custom path for user scripts , which can be stored , so you can choose a script from that folder )
- still hardcode are :
System.LogOff - [System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)] + System.Loggedon : $LOCALIZE[20126][CR]$INFO[system.profilename]
mastermode - !Window.IsVisible(loginscreen) + System.HasLocks + System.IsMaster : $LOCALIZE[20046]
mastermode - !Window.IsVisible(loginscreen) + System.HasLocks + !System.IsMaster : $LOCALIZE[20045]
InhibitIdleShutdown(true) - !System.IsInhibit : $LOCALIZE[13017]
InhibitIdleShutdown(false) - System.IsInhibit : $LOCALIZE[13018]