Example #1
0
     print 'Unable to open window; aborting.'
     sys.exit()
 if launcher:
     launcher.setPandaErrorCode(0)
     launcher.setPandaWindowOpen()
 backgroundNodePath = aspect2d.attachNewNode(backgroundNode, 0)
 backgroundNodePath.setPos(0.0, 0.0, 0.0)
 backgroundNodePath.setScale(render2d, VBase3(1))
 backgroundNodePath.find('**/fg').setBin('fixed', 20)
 backgroundNodePath.find('**/bg').setBin('fixed', 10)
 base.graphicsEngine.renderFrame()
 DirectGuiGlobals.setDefaultRolloverSound(
     base.loadSfx('phase_3/audio/sfx/GUI_rollover.mp3'))
 DirectGuiGlobals.setDefaultClickSound(
     base.loadSfx('phase_3/audio/sfx/GUI_create_toon_fwd.mp3'))
 DirectGuiGlobals.setDefaultDialogGeom(
     loader.loadModelOnce('phase_3/models/gui/dialog_box_gui'))
 if base.musicManagerIsValid:
     music = base.musicManager.getSound('phase_3/audio/bgm/tt_theme.mid')
     if music:
         music.setLoop(1)
         music.setVolume(0.9)
         music.play()
     print 'ToontownStart: Loading default gui sounds'
     DirectGuiGlobals.setDefaultRolloverSound(
         base.loadSfx('phase_3/audio/sfx/GUI_rollover.mp3'))
     DirectGuiGlobals.setDefaultClickSound(
         base.loadSfx('phase_3/audio/sfx/GUI_create_toon_fwd.mp3'))
 else:
     music = None
 import ToontownLoader
 tempLoaderOther = ToontownLoader.ToontownLoader(base)
Example #2
0
    print 'Unable to open window; aborting.'
    sys.exit()

if launcher:
    launcher.setPandaErrorCode(0)
    launcher.setPandaWindowOpen()

backgroundNodePath = aspect2d.attachNewNode(backgroundNode, 0)
backgroundNodePath.setPos(0.0, 0.0, 0.0)
backgroundNodePath.setScale(render2d, VBase3(1))
backgroundNodePath.find('**/fg').setBin('fixed', 20)
backgroundNodePath.find('**/bg').setBin('fixed', 10)
base.graphicsEngine.renderFrame()
DirectGuiGlobals.setDefaultRolloverSound(base.loadSfx('phase_3/audio/sfx/GUI_rollover.mp3'))
DirectGuiGlobals.setDefaultClickSound(base.loadSfx('phase_3/audio/sfx/GUI_create_toon_fwd.mp3'))
DirectGuiGlobals.setDefaultDialogGeom(loader.loadModelOnce('phase_3/models/gui/dialog_box_gui'))
if base.musicManagerIsValid:
    music = base.musicManager.getSound('phase_3/audio/bgm/tt_theme.mid')
    if music:
        music.setLoop(1)
        music.setVolume(0.90000000000000002)
        music.play()
    
    print 'ToontownStart: Loading default gui sounds'
    DirectGuiGlobals.setDefaultRolloverSound(base.loadSfx('phase_3/audio/sfx/GUI_rollover.mp3'))
    DirectGuiGlobals.setDefaultClickSound(base.loadSfx('phase_3/audio/sfx/GUI_create_toon_fwd.mp3'))
else:
    music = None
import ToontownLoader
tempLoaderOther = ToontownLoader.ToontownLoader(base)
base.loader = tempLoaderOther