Пример #1
0
def actChangeLog():
    from resources.lib.api import TextViewer
    changelogfile = control.transPath(
        os.path.join('special://home/addons/' + AddonID, 'changelog.txt'))
    my_options = ['DialogWindow', 'TextViewer', '[ [B] Close [/B] ]']
    selectList = []
    for Item in my_options:
        selectList.append(colorChoice.colorString(Item, CustomColor))
    mychoice = SelectDialog(AddonTitle, selectList, key=False)
    mychoice = mychoice.replace('[COLOR %s]' % (CustomColor),
                                '').replace('[/COLOR]', '')
    if mychoice == 'DialogWindow': control.getChangeLog()
    elif mychoice == 'TextViewer': TextViewer.text_view(changelogfile)
    elif mychoice == '[ [B] Close [/B] ]': return
Пример #2
0
def advancedSettingsMenu():
    from resources.lib.modules import advsetz
    my_options = [
        'Create AdvancedSettings', 'View AdvancedSettings',
        'Clear AdvancedSettings', '[ [B] Close [/B] ]'
    ]
    selectList = []
    for Item in my_options:
        selectList.append(colorChoice.colorString(Item, CustomColor))
    mychoice = SelectDialog(AddonTitle, selectList, key=False)
    mychoice = mychoice.replace('[COLOR %s]' % (CustomColor),
                                '').replace('[/COLOR]', '')
    if mychoice == 'Create AdvancedSettings': advsetz.advancedSettings()
    elif mychoice == 'View AdvancedSettings': advsetz.viewAdvancedSettings()
    elif mychoice == 'Clear AdvancedSettings': advsetz.clearAdvancedSettings()
    elif mychoice == '[ [B] Close [/B] ]': return
Пример #3
0
def actLogMenu():
    from resources.lib.modules import utilz
    my_options = [
        '[B]Log Viewer/Uploader[/B]', '[B]Clear CrashLogs[/B]',
        '[B]Clear DebugLogs[/B]', '[ [B]Close[/B] ]'
    ]
    selectList = []
    for Item in my_options:
        selectList.append(colorChoice.colorString(Item, CustomColor))
    mychoice = SelectDialog(AddonTitle, selectList, key=False)
    mychoice = mychoice.replace('[COLOR %s]' % (CustomColor),
                                '').replace('[/COLOR]', '')
    if mychoice == '[B]Log Viewer/Uploader[/B]': utilz.logView()
    elif mychoice == '[B]Clear CrashLogs[/B]': utilz.Delete_Crash_Logs()
    elif mychoice == '[B]Clear DebugLogs[/B]': utilz.Delete_DebugLogs()
    elif mychoice == '[ [B]Close[/B] ]': return
Пример #4
0
def kodiDbMenu():
    my_options = [
        'CleanPlaylist', 'UpdateVideoDB', 'CleanVideoDB', 'UpdateMusicDB',
        'CleanMusicDB', '[ [B]Close[/B] ]'
    ]
    selectList = []
    for Item in my_options:
        selectList.append(colorChoice.colorString(Item, CustomColor))
    mychoice = SelectDialog(AddonTitle, selectList, key=False)
    mychoice = mychoice.replace('[COLOR %s]' % (CustomColor),
                                '').replace('[/COLOR]', '')
    if mychoice == 'CleanPlaylist': Execute("Playlist.Clear")
    elif mychoice == 'UpdateVideoDB': Execute("UpdateLibrary(video)")
    elif mychoice == 'CleanVideoDB': Execute("CleanLibrary(video)")
    elif mychoice == 'UpdateMusicDB': Execute("UpdateLibrary(music)")
    elif mychoice == 'CleanMusicDB': Execute("CleanLibrary(music)")
    elif mychoice == '[ [B]Close[/B] ]': return
Пример #5
0
def kodiMenu():
    my_options = [
        'FileManager', 'AddonBrowser', 'InterfaceSettings', 'SystemSettings',
        'ShowSettings', 'SkinSettings', 'ShowSystemInfo', '[ [B]Close[/B] ]'
    ]
    selectList = []
    for Item in my_options:
        selectList.append(colorChoice.colorString(Item, CustomColor))
    mychoice = SelectDialog(AddonTitle, selectList, key=False)
    mychoice = mychoice.replace('[COLOR %s]' % (CustomColor),
                                '').replace('[/COLOR]', '')
    if mychoice == 'FileManager': Execute("ActivateWindow(10003)")
    elif mychoice == 'AddonBrowser': Execute("ActivateWindow(10040)")
    elif mychoice == 'InterfaceSettings': Execute("ActivateWindow(10032)")
    elif mychoice == 'SystemSettings': Execute("ActivateWindow(10016)")
    elif mychoice == 'ShowSettings': Execute("ActivateWindow(10004)")
    elif mychoice == 'SkinSettings': Execute("ActivateWindow(10035)")
    elif mychoice == 'ShowSystemInfo': Execute("ActivateWindow(10007)")
    elif mychoice == '[ [B]Close[/B] ]': return
Пример #6
0
def mySpareMenu():
    my_options = [
        '[B]Option1[/B]', '[B]Option2[/B]', '[B]Option3[/B]', '[B]Option4[/B]',
        '[B]Option5[/B]', '[ [B]Close[/B] ]'
    ]
    selectList = []
    for Item in my_options:
        selectList.append(colorChoice.colorString(Item, CustomColor))
    mychoice = SelectDialog(AddonTitle, selectList, key=False)
    mychoice = mychoice.replace('[COLOR %s]' % (CustomColor),
                                '').replace('[/COLOR]', '')
    if mychoice == '[B]Option1[/B]': Notify(AddonTitle, 'Testing Option1...')
    elif mychoice == '[B]Option2[/B]': Notify(AddonTitle, 'Testing Option2...')
    elif mychoice == '[B]Option3[/B]': Notify(AddonTitle, 'Testing Option3...')
    elif mychoice == '[B]Option4[/B]': Notify(AddonTitle, 'Testing Option4...')
    elif mychoice == '[B]Option5[/B]':
        Notify(AddonTitle, 'Testing Option5...')
    elif mychoice == '[ [B]Close[/B] ]':
        return