Ejemplo n.º 1
0
def preGameStart():
    # BUG - core
    import CvEventInterface
    CvEventInterface.getEventManager().fireEvent("PreGameStart")
    # continue
    import CvScreensInterface
    if not CyGame().isPitbossHost():
        # Preload the tech chooser..., only do this release builds, in debug build we may not be raising the tech chooser
        if not CyGlobalContext().isDebugBuild():
            NiTextOut("Preloading tech chooser")
            CvScreensInterface.showTechChooser()
            CvScreensInterface.techChooser.hideScreen()

    NiTextOut("Loading main interface...")
    CvScreensInterface.showMainInterface()
def preGameStart():
	import CvScreensInterface
	
	if not CyGame().isPitbossHost():
		NiTextOut("Initializing font icons")
		# Load dynamic font icons into the icon map
		CvUtil.initDynamicFontIcons()

	if not CyGame().isPitbossHost():
		# Preload the tech chooser..., only do this release builds, in debug build we may not be raising the tech chooser
		if (not gc.isDebugBuild()):
			NiTextOut("Preloading tech chooser")
			CvScreensInterface.showTechChooser()
			CvScreensInterface.techChooser.hideScreen()
		
	NiTextOut("Loading main interface...")
	CvScreensInterface.showMainInterface()	
Ejemplo n.º 3
0
def preGameStart():
	import CvScreensInterface
	
# BUG - core - start
	import CvEventInterface
	CvEventInterface.getEventManager().fireEvent("PreGameStart")
# BUG - core - end
	
	if not CyGame().isPitbossHost():
		NiTextOut("Initializing font icons")
		# Load dynamic font icons into the icon map
		CvUtil.initDynamicFontIcons()

#	if not CyGame().isPitbossHost():
#		# Preload the tech chooser..., only do this release builds, in debug build we may not be raising the tech chooser
#		if (not gc.isDebugBuild()):
#			NiTextOut("Preloading tech chooser")
#			CvScreensInterface.showTechChooser(argsList)
#			CvScreensInterface.techChooser.hideScreen()
		
	NiTextOut("Loading main interface...")
	CvScreensInterface.showMainInterface()	
Ejemplo n.º 4
0
def preGameStart():
    #import CvEventInterface
    #CvEventInterface.getEventManager().fireEvent("PreGameStart")
    import CvScreensInterface
    CvScreensInterface.mainInterface.bSetStartZoom = True
    CvScreensInterface.showMainInterface()
Ejemplo n.º 5
0
def preGameStart():
    import CvEventInterface
    CvEventInterface.getEventManager().fireEvent("PreGameStart")
    import CvScreensInterface
    CvScreensInterface.showMainInterface()