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, '') base_info.setView('files', 'viewType')
def apkMenu(): link = base_info.OPEN_URL(APK).replace('\n','').replace('\r','').replace('\t','') match = re.compile('name="(.+?)".+?rl="(.+?)".+?con="(.+?)".+?anart="(.+?)".+?dult="(.+?)".+?escription="(.+?)"').findall(link) if len(match) > 0: for name, url, icon, fanart, adult, description in match: base_info.addFile(name, 'apkinstall', name, url, description=description, icon=icon, fanart=fanart, themeit=THEME1) else: base_info.loga("[APK Menu] ERROR: Invalid Format.") base_info.setView('files', 'viewType')
def Theme_Menu(): link = base_info.OPEN_URL(glo_var.THEMEFILE).replace('\n', '').replace('\r', '') match = re.compile( 'name="(.+?)".+?rl="(.+?)".+?mg="(.+?)".+?anart="(.+?)".+?escription="(.+?)"' ).findall(link) for name, url, iconimage, fanart, description in match: base_info.addDir2(name, url, 'theme', iconimage, fanart, description) base_info.setView('files', 'viewType')
def Maintenance(): base_info.addDir2(cr + gn + cr2 + cr1 + cc + cr2, 'url', 'clearcache', ARTCI, FANART, '') base_info.addDir2(cr + gn + cr2 + cr1 + cp + cr2, 'url', 'clearpackages', ARTP, FANART, '') base_info.addDir2(cr + gn + cr2 + cr1 + ct + cr2, 'url', 'clearthumb', ARTTH, FANART, '') base_info.addDir2(cr + gn + cr2 + cr1 + fs + cr2, 'url', 'freshstart', ARTF, FANART, '') base_info.setView('files', 'viewType')
def Developer_Menu(): base_info.addDir2(cr + gn + cr2 + cr1 + chkr + cr2, 'url', 'checkrepos', ARTCR, FANART, '') base_info.addDir2(cr + gn + cr2 + cr1 + chks + cr2, 'url', 'checksources', ARTCS, FANART, '') base_info.addDir2(cr + gn + cr2 + cr1 + con + cr2, 'url', 'convertpath', ARTCP, FANART, '') base_info.addDir2(cr + gn + cr2 + cr1 + view + cr2, 'url', 'viewlog', ARTV, FANART, '') ADDF('Advanced Settings', 'autoadvanced', icon=ICONMAINT, themeit=THEME1) base_info.setView('files', 'viewType')
def Builds_Menu(): #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,'') link = base_info.OPEN_URL(glo_var.BASEURL + 'wizard.txt').replace( '\n', '').replace('\r', '') match = re.compile( 'name="(.+?)".+?rl="(.+?)".+?mg="(.+?)".+?anart="(.+?)".+?escription="(.+?)"' ).findall(link) for name, url, iconimage, fanart, description in match: base_info.addDir2(name, url, 'install', iconimage, fanart, description) base_info.setView('files', 'viewType')
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, '') base_info.setView('files', 'viewType')
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')