示例#1
0
def Backup_Menu():
    base_info.addDir2('[COLOR dodgerblue]Settings to Keep[/COLOR]', 'http://',
                      'section', ICON_SAVE, ARTBU, '')
    base_info.addDir2(
        '[COLOR red]============================================[/COLOR]',
        'http://', 'section', ICON_SAVE, ARTBU, '')
    on = '[COLOR green]ON[/COLOR]'
    off = '[COLOR red]OFF[/COLOR]'
    sources = 'true' if KEEPSOURCES == 'true' else 'false'
    advanced = 'true' if KEEPADVANCED == 'true' else 'false'
    profiles = 'true' if KEEPPROFILES == 'true' else 'false'
    favourites = 'true' if KEEPFAVS == 'true' else 'false'
    mySources = 'Keep \'Sources\': %s ' % sources.replace('true', on).replace(
        'false', off)
    myProfiles = 'Keep \'Profiles\': %s' % profiles.replace(
        'true', on).replace('false', off)
    myAdvanced = 'Keep \'Advancedsettings\': %s' % advanced.replace(
        'true', on).replace('false', off)
    myFavs = 'Keep \'Favourites\': %s' % favourites.replace(
        'true', on).replace('false', off)
    base_info.addFile(themehelper.actionTitlePlain(mySources),
                      'togglesetting',
                      'keepsources',
                      icon=ICONSAVE,
                      themeit=THEME1)
    base_info.addFile(themehelper.actionTitlePlain(myProfiles),
                      'togglesetting',
                      'keepprofiles',
                      icon=ICONSAVE,
                      themeit=THEME1)
    base_info.addFile(themehelper.actionTitlePlain(myAdvanced),
                      'togglesetting',
                      'keepadvanced',
                      icon=ICONSAVE,
                      themeit=THEME1)
    base_info.addFile(themehelper.actionTitlePlain(myFavs),
                      'togglesetting',
                      'keepfavourites',
                      icon=ICONSAVE,
                      themeit=THEME1)
    base_info.addDir2(' ', 'http://', 'section', ICON_SAVE, ARTBU, '')

    base_info.addDir2('[COLOR dodgerblue]Backup Management[/COLOR]', 'http://',
                      'section', ICON_SAVE, ARTBU, '')
    base_info.addDir2(
        '[COLOR red]============================================[/COLOR]',
        'http://', 'section', ICON_SAVE, ARTBU, '')
    base_info.addDir2(themehelper.actionTitle(ROOTTITLE), 'url', 'rootpatch',
                      ICON_FIXES, FANART, '')
    base_info.addDir2(themehelper.actionTitle(BKUPLOGINTITLE), 'url',
                      'backupdata', ARTBL, FANART, '')
    base_info.addDir2(themehelper.actionTitle(BKUPBUILDTITLE), 'url', 'backup',
                      ARTB, FANART, '')
    base_info.addDir(themehelper.actionTitle(DELBKUPTITLE), 'url',
                     'deletesingle', ARTDB, FANART, '')
    base_info.addDir2(themehelper.actionTitle(DELALLBKUPTITLE), 'url',
                      'deleteall', ARTDA, FANART, '')
    xbmc.executebuiltin('Container.SetViewMode(50)')
示例#2
0
def Restore_Menu():
    base_info.addDir2('[COLOR dodgerblue]Restore Data[/COLOR]', 'http://',
                      'section', ARTRB, ARTBU, '')
    base_info.addDir2(
        '[COLOR red]============================================[/COLOR]',
        'http://', 'section', ARTRB, ARTBU, '')
    base_info.addDir(themehelper.actionTitle(RSTRBUILDTITLE), 'url', 'restore',
                     ARTRB, FANART, '')
    base_info.addDir(themehelper.actionTitle(RSTRLOGINTITLE), 'url',
                     'restoredata', ARTRL, FANART, '')
    xbmc.executebuiltin('Container.SetViewMode(50)')
示例#3
0
def Backup_Menu():
    on = '[COLOR green]ON[/COLOR]'; off = '[COLOR red]OFF[/COLOR]'    
    sources    = 'true' if KEEPSOURCES   == 'true' else 'false'
    advanced   = 'true' if KEEPADVANCED  == 'true' else 'false'
    profiles   = 'true' if KEEPPROFILES  == 'true' else 'false'
    favourites = 'true' if KEEPFAVS      == 'true' else 'false'    
    base_info.addFile(cr+gn+cr2+cr1+'Keep \'Sources\': %s' % sources.replace('true',on).replace('false',off)           ,'togglesetting', 'keepsources',    icon=ICONSAVE,  themeit=THEME1)
    base_info.addFile(cr+gn+cr2+cr1+'Keep \'Profiles\': %s' % profiles.replace('true',on).replace('false',off)         ,'togglesetting', 'keepprofiles',   icon=ICONSAVE,  themeit=THEME1)
    base_info.addFile(cr+gn+cr2+cr1+'Keep \'Advancedsettings\': %s' % advanced.replace('true',on).replace('false',off) ,'togglesetting', 'keepadvanced',   icon=ICONSAVE,  themeit=THEME1)
    base_info.addFile(cr+gn+cr2+cr1+'Keep \'Favourites\': %s' % favourites.replace('true',on).replace('false',off)     ,'togglesetting', 'keepfavourites', icon=ICONSAVE,  themeit=THEME1)        
    base_info.addDir2(cr+gn+cr2+cr1+bul+cr2,'url','backupdata',ARTBL,FANART,'')	
    base_info.addDir2(cr+gn+cr2+cr1+bub+cr2,'url','backup',ARTB,FANART,'')
    base_info.addDir(cr+gn+cr2+cr1+dab+cr2,'url','deletesingle',ARTDB,FANART,'')
    base_info.addDir2(cr+gn+cr2+cr1+dabs+cr2,'url','deleteall',ARTDA,FANART,'')
    xbmc.executebuiltin('Container.SetViewMode(50)')
示例#4
0
def Restore_Menu():
    base_info.addDir(cr+gn+cr2+cr1+rbb+cr2,'url','restore',ARTRB,FANART,'')
    base_info.addDir(cr+gn+cr2+cr1+rl+cr2,'url','restoredata',ARTRL,FANART,'')
    xbmc.executebuiltin('Container.SetViewMode(50)')
示例#5
0
def Categories():
    base_info.addDir(cr+gn+cr2+cr1+build+cr2,'url','builds',ARTBU,FANART,'') 
    if ADULT == 'true': base_info.addDir(cr+gn+cr2+cr1+adult+cr2,'url','adult',ARTA,FANART,'')
    if KRYPTON == 'true': base_info.addDir(cr+gn+cr2+cr1+krypton+cr2,'url','krypton',ARTK,FANART,'')	
    if THEME == 'true': base_info.addDir(cr+gn+cr2+cr1+theme+cr2,'url','thememenu',ARTT,FANART,'')
    if apk == 'true' : base_info.addDir(cr+gn+cr2+cr1+APKNAME+cr2,'url','apkinstaller',ARTAPK,FANART,'')	
    base_info.addDir(cr+gn+cr2+cr1+save+cr2,'url','savedata',ARTSA,FANART,'')
    base_info.addDir(cr+gn+cr2+cr1+rest+cr2,'url','restoremenu',ARTR,FANART,'')
    base_info.addDir(cr+gn+cr2+cr1+maint+cr2,'url','maint',ARTM,FANART,'')
    if DEVELOPER == 'true': base_info.addDir(cr+gn+cr2+cr1+dev+cr2,'url','developer',ARTD,FANART,'')    
    base_info.addDir2(cr+gn+cr2+cr1+'Contact Us'+cr2,'url','contact',ARTS,FANART,'')        
    base_info.addDir2(cr+gn+cr2+cr1+'Wizard Credits'+cr2,'url','wizcreds',ARTC,FANART,'') 
    xbmc.executebuiltin('Container.SetViewMode(50)')
示例#6
0
def Categories():
    base_info.addDir(themehelper.menuTitle(BUILDTITLE), 'url', 'builds', ARTBU,
                     FANART, '')
    if ADULTACTIVE == 'true':
        base_info.addDir(themehelper.menuTitle(ADULTTITLE), 'url', 'adult',
                         ARTA, FANART, '')
    if THEMEACTIVE == 'true':
        base_info.addDir(themehelper.menuTitle(THEMETITLE), 'url', 'thememenu',
                         ICON_THEMES, FANART, '')
    base_info.addDir(themehelper.menuTitle(SAVETITLE), 'url', 'savedata',
                     ICON_SAVE, FANART, '')
    base_info.addDir(themehelper.menuTitle(RESTORETITLE), 'url', 'restoremenu',
                     ARTR, FANART, '')
    base_info.addDir(themehelper.menuTitle(MAINTTITLE), 'url', 'maint', ARTM,
                     FANART, '')
    if FIXESACTIVE == 'true':
        base_info.addDir(themehelper.menuTitle(FIXESTITLE), 'url', 'fixes',
                         ICON_FIXESMENU, FANART, '')
    if DEVACTIVE == 'true':
        base_info.addDir(themehelper.menuTitle(DEVTITLE), 'url', 'developer',
                         ARTD, FANART, '')
    base_info.addDir2(themehelper.menuTitle(CONTACTTITLE), 'url', 'contact',
                      ARTS, FANART, '')
    base_info.addDir2(themehelper.menuTitle(CREDITSTITLE), 'url', 'wizcreds',
                      ARTC, FANART, '')
    xbmc.executebuiltin('Container.SetViewMode(50)')
示例#7
0
def Restore_Menu():
    base_info.addDir(cr + gn + cr2 + cr1 + rbb + cr2, 'url', 'restore', ARTRB,
                     FANART, '')
    base_info.addDir(cr + gn + cr2 + cr1 + rl + cr2, 'url', 'restoredata',
                     ARTRL, FANART, '')
    base_info.setView('files', 'viewType')