Example #1
0
ExitBH=os.path.join(mediaFolder,'navi-x3.png')
try: LastVerMessageID=str(SettingG("LastVerMessageID"))
except: LastVerMessageID=""
try: curVerID=str(gAI("version"))
except: curVerID=''
#print [LastVerMessageID,curVerID]
#LastVerMessageID="" ## Used for testing.
if (len(LastVerMessageID)==0) or (not LastVerMessageID==curVerID):
	SettingS("LastVerMessageID",curVerID)
	#SplashTxt="Hello User,\n\n        "
	#SplashTxt+="NAVI-X may now be found for download on the XBMCHUB.COM repository."
	SplashTxt="Navi-X and Team XBMCHUB.com\n\n"
	SplashTxt+="If you're receiving this message it\n"
	SplashTxt+="means that Navi-X has for the first\n"
	SplashTxt+="time updated automatically on your\n"
	SplashTxt+="system and is now located in the\n"
	SplashTxt+="XBMCHUB.com repository!"
	#splash.do_My_TextSplash(SplashTxt,SplashBH,12,TxtColor='0xff00ff00',Font='font14',BorderWidth=70); 
	splash.do_My_TextSplash2(SplashTxt,SplashBH,12,TxtColor='0xff00ff00',Font='font14',BorderWidth=70,ImgexitBtn=ExitBH); 
	
#############################################################################
#Start Navi-X
#############################################################################
import navix
win = navix.MainWindow("skin2.xml", addon.getAddonInfo('path')) #,'Default','720p'
win.doModal()
del win

#xbmc.executescript(RootDir + 'default_.py')

Example #2
0
                                      FF4 + FF6.lower() + FF4b)
                    FF3 = FF3.replace(FF4 + FF5.upper() + FF4b,
                                      FF4 + FF6.upper() + FF4b)
        FileDoSave(FF2, FF3)
if SettingG('core-skin') == 'Default': pass
elif SettingG('core-skin') == 'skin2': MainSkinFile = 'skin2'
elif SettingG('core-skin') == 'skin2h': MainSkinFile = 'skin2h'

## <colordiffuse>0xff00ff00</colordiffuse>
#############################################################################

#############################################################################
ProfFolder = xbmc.translatePath(addon.getAddonInfo('profile'))
if os.path.exists(ProfFolder) == False:
    try:
        os.makedirs(ProfFolder)
    except:
        pass
#############################################################################
#Start Navi-X
#############################################################################
import navix

print['Main Skin File', MainSkinFile]
win = navix.MainWindow(MainSkinFile,
                       addon.getAddonInfo('path'))  #,'Default','720p'
win.doModal()
del win

#xbmc.executescript(RootDir + 'default_.py')
Example #3
0
#############################################################################
#############################################################################
#check for updates from the Navi-X website

#retrieve the platform.
platform = get_system_platform()

#read the current version installed
version = onReadVersion()
newversion = onReadNewVersion(version_URL)

if (version != version_default) and (newversion != version_default) and \
    (version != newversion):
    installUpdate(update_URL)
    #save updated version.
    onSaveVersion(newversion)
    dialog = xbmcgui.Dialog()
    dialog.ok("Message", "Navi-X has been updated.")

#############################################################################
#Start Navi-X
#############################################################################
import navix
#win = navix.MainWindow()
win = navix.MainWindow("skin.xml", os.getcwd())
win.doModal()
del win

#xbmc.executescript(RootDir + 'default_.py')
Example #4
0
#############################################################################
#############################################################################
#check for updates from the Navi-X website

#retrieve the platform.
platform = get_system_platform()

#read the current version installed
#version = onReadVersion()
#newversion = onReadNewVersion(version_URL)

#if (version != version_default) and (newversion != version_default) and \
#    (version != newversion):
#    installUpdate(update_URL)
#    #save updated version.
#    onSaveVersion(newversion)
#    dialog = xbmcgui.Dialog()
#    dialog.ok("Message", "Navi-X has been updated.")


#############################################################################
#Start Navi-X
#############################################################################
import navix
win = navix.MainWindow("skin.xml", addon.getAddonInfo('path'))
win.doModal()
del win

#xbmc.executescript(RootDir + 'default_.py')