import time
import os
import sys
import random
import __builtin__
try:
    launcher
except:
    from toontown.launcher.ToontownDummyLauncher import ToontownDummyLauncher
    launcher = ToontownDummyLauncher()
    __builtin__.launcher = launcher

launcher.setRegistry('EXIT_PAGE', 'normal')
pollingDelay = 0.5
print 'ToontownStart: Polling for game2 to finish...'
while not launcher.getGame2Done():
    time.sleep(pollingDelay)

print 'ToontownStart: Game2 is finished.'
print 'ToontownStart: Starting the game.'
from pandac.PandaModules import *
if launcher.isDummy():
    http = HTTPClient()
else:
    http = launcher.http
tempLoader = PandaLoader()
backgroundNode = tempLoader.loadSync(
    Filename('phase_3/models/gui/loading-background'))
from direct.gui import DirectGuiGlobals
print 'ToontownStart: setting default font'
import ToontownGlobals
import time
import os
import sys
import random
import __builtin__
try:
    launcher
except:
    from toontown.launcher.ToontownDummyLauncher import ToontownDummyLauncher
    launcher = ToontownDummyLauncher()
    __builtin__.launcher = launcher

launcher.setRegistry('EXIT_PAGE', 'normal')
pollingDelay = 0.5
print 'ToontownStart: Polling for game2 to finish...'
while not launcher.getGame2Done():
    time.sleep(pollingDelay)

print 'ToontownStart: Game2 is finished.'
print 'ToontownStart: Starting the game.'
from pandac.PandaModules import *
if launcher.isDummy():
    http = HTTPClient()
else:
    http = launcher.http
tempLoader = PandaLoader()
backgroundNode = tempLoader.loadSync(Filename('phase_3/models/gui/loading-background'))
from direct.gui import DirectGuiGlobals
print 'ToontownStart: setting default font'
import ToontownGlobals
DirectGuiGlobals.setDefaultFontFunc(ToontownGlobals.getInterfaceFont)
Exemple #3
0
    __builtin__.launcher = launcher

# Default to "normal" web exit page.  This should be set early
# so that the right thing will get done on a crash.  "normal"
# may be marketting info, thanks for playing, or the report
# bug page.  The installer.php file will use this setting.
launcher.setRegistry("EXIT_PAGE", "normal")

# The first thing we need to do is make sure the Flash intro is not playing
# If it is, we need to wait here until it is done. We check to see if it is
# done by asking the Launcher.

pollingDelay = 0.5

print 'ToontownStart: Polling for game2 to finish...'
while (not launcher.getGame2Done()):
    time.sleep(pollingDelay)
print 'ToontownStart: Game2 is finished.'

# Ok, now we know we are clear from the flash into, fire it up
print 'ToontownStart: Starting the game.'

from pandac.PandaModules import *

if launcher.isDummy():
    # Create a dummy HTTPClient so we can get that stupid openSSL
    # random seed computed before we attempt to open the window.  (We
    # only need do this if we don't have a launcher.  If we do have a
    # launcher, it's already been created.)
    http = HTTPClient()
else: