def configTechSplash(option=None, value=None): if value is None: TechWindowOpt = BugCore.game.TechWindow if TechWindowOpt.isWideView(): value = True if value: import TechWindowWide screen = TechWindowWide.CvTechSplashScreen(TECH_SPLASH) else: import TechWindow screen = TechWindow.CvTechSplashScreen(TECH_SPLASH) screenMap[TECH_SPLASH] = screen
def createTechSplash(): """Creates the correct Tech Splash Screen based on an option.""" global techSplashScreen if techSplashScreen is None: if (TechWindowOpt.isDetailedView()): import TechWindow techSplashScreen = TechWindow.CvTechSplashScreen(TECH_SPLASH) elif (TechWindowOpt.isWideView()): import TechWindowWide techSplashScreen = TechWindowWide.CvTechSplashScreen(TECH_SPLASH) else: import CvTechSplashScreen techSplashScreen = CvTechSplashScreen.CvTechSplashScreen(TECH_SPLASH) HandleInputMap[TECH_SPLASH] = techSplashScreen