コード例 #1
0

__builtin__.game = game()
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'))
コード例 #2
0

__builtin__.game = game()
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
コード例 #3
0
ファイル: ToontownStart.py プロジェクト: satire6/Anesidora
# technique here in case you start toontown from the command line
import __builtin__

# See if we have a launcher, if we do not, make an empty one
try:
    launcher
except:
    from toontown.launcher.ToontownDummyLauncher import ToontownDummyLauncher
    launcher = ToontownDummyLauncher()
    __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.'