iEndGame = argsList[1] infoScreen.showScreen(-1, iTabID, iEndGame) victoryScreen = CvVictoryScreen.CvVictoryScreen() def showVictoryScreen(argsList): if (-1 != CyGame().getActivePlayer()): victoryScreen.interfaceScreen() ################################################# ## Civilopedia ################################################# pediaMainScreen = CvPediaMain.CvPediaMain() def linkToPedia(argsList): pediaMainScreen.link(argsList[0]) def pediaShow(): return pediaMainScreen.pediaShow() def pediaBack(): return pediaMainScreen.back() def pediaForward():
def createCivilopedia(): """Creates the correct Civilopedia based on an option.""" global pediaMainScreen global bUsingSevopedia if pediaMainScreen is None: import SevoPediaUtil if (AdvisorOpt.Sevopedia()): import SevoPediaMain import SevoPediaHistory bUsingSevopedia = True pediaMainScreen = SevoPediaMain.SevoPediaMain() else: import CvPediaMain import CvPediaHistory bUsingSevopedia = False pediaMainScreen = CvPediaMain.CvPediaMain() HandleInputMap.update({ PEDIA_MAIN: pediaMainScreen, PEDIA_TECH: pediaMainScreen, PEDIA_UNIT: pediaMainScreen, PEDIA_BUILDING: pediaMainScreen, PEDIA_PROMOTION: pediaMainScreen, PEDIA_PROJECT: pediaMainScreen, PEDIA_UNIT_CHART: pediaMainScreen, PEDIA_BONUS: pediaMainScreen, PEDIA_IMPROVEMENT: pediaMainScreen, PEDIA_TERRAIN: pediaMainScreen, PEDIA_FEATURE: pediaMainScreen, PEDIA_CIVIC: pediaMainScreen, PEDIA_CIVILIZATION: pediaMainScreen, PEDIA_LEADER: pediaMainScreen, PEDIA_RELIGION: pediaMainScreen, PEDIA_CORPORATION: pediaMainScreen, PEDIA_HISTORY: pediaMainScreen, SevoScreenEnums.PEDIA_MAIN: pediaMainScreen, SevoScreenEnums.PEDIA_TECHS: pediaMainScreen, SevoScreenEnums.PEDIA_UNITS: pediaMainScreen, SevoScreenEnums.PEDIA_UNIT_UPGRADES: pediaMainScreen, SevoScreenEnums.PEDIA_UNIT_CATEGORIES: pediaMainScreen, SevoScreenEnums.PEDIA_PROMOTIONS: pediaMainScreen, SevoScreenEnums.PEDIA_PROMOTION_TREE: pediaMainScreen, SevoScreenEnums.PEDIA_BUILDINGS: pediaMainScreen, SevoScreenEnums.PEDIA_NATIONAL_WONDERS: pediaMainScreen, SevoScreenEnums.PEDIA_GREAT_WONDERS: pediaMainScreen, SevoScreenEnums.PEDIA_PROJECTS: pediaMainScreen, SevoScreenEnums.PEDIA_SPECIALISTS: pediaMainScreen, SevoScreenEnums.PEDIA_TERRAINS: pediaMainScreen, SevoScreenEnums.PEDIA_FEATURES: pediaMainScreen, SevoScreenEnums.PEDIA_BONUSES: pediaMainScreen, SevoScreenEnums.PEDIA_IMPROVEMENTS: pediaMainScreen, SevoScreenEnums.PEDIA_CIVS: pediaMainScreen, SevoScreenEnums.PEDIA_LEADERS: pediaMainScreen, SevoScreenEnums.PEDIA_TRAITS: pediaMainScreen, SevoScreenEnums.PEDIA_CIVICS: pediaMainScreen, SevoScreenEnums.PEDIA_RELIGIONS: pediaMainScreen, SevoScreenEnums.PEDIA_CORPORATIONS: pediaMainScreen, SevoScreenEnums.PEDIA_CONCEPTS: pediaMainScreen, SevoScreenEnums.PEDIA_BTS_CONCEPTS: pediaMainScreen, SevoScreenEnums.PEDIA_HINTS: pediaMainScreen, SevoScreenEnums.PEDIA_SHORTCUTS: pediaMainScreen, }) global HandleNavigationMap HandleNavigationMap = { MAIN_INTERFACE: mainInterface, PEDIA_MAIN: pediaMainScreen, PEDIA_TECH: pediaMainScreen, PEDIA_UNIT: pediaMainScreen, PEDIA_BUILDING: pediaMainScreen, PEDIA_PROMOTION: pediaMainScreen, PEDIA_PROJECT: pediaMainScreen, PEDIA_UNIT_CHART: pediaMainScreen, PEDIA_BONUS: pediaMainScreen, PEDIA_IMPROVEMENT: pediaMainScreen, PEDIA_TERRAIN: pediaMainScreen, PEDIA_FEATURE: pediaMainScreen, PEDIA_CIVIC: pediaMainScreen, PEDIA_CIVILIZATION: pediaMainScreen, PEDIA_LEADER: pediaMainScreen, PEDIA_HISTORY: pediaMainScreen, PEDIA_RELIGION: pediaMainScreen, PEDIA_CORPORATION: pediaMainScreen, SevoScreenEnums.PEDIA_MAIN: pediaMainScreen, SevoScreenEnums.PEDIA_TECHS: pediaMainScreen, SevoScreenEnums.PEDIA_UNITS: pediaMainScreen, SevoScreenEnums.PEDIA_UNIT_UPGRADES: pediaMainScreen, SevoScreenEnums.PEDIA_UNIT_CATEGORIES: pediaMainScreen, SevoScreenEnums.PEDIA_PROMOTIONS: pediaMainScreen, SevoScreenEnums.PEDIA_PROMOTION_TREE: pediaMainScreen, SevoScreenEnums.PEDIA_BUILDINGS: pediaMainScreen, SevoScreenEnums.PEDIA_NATIONAL_WONDERS: pediaMainScreen, SevoScreenEnums.PEDIA_GREAT_WONDERS: pediaMainScreen, SevoScreenEnums.PEDIA_PROJECTS: pediaMainScreen, SevoScreenEnums.PEDIA_SPECIALISTS: pediaMainScreen, SevoScreenEnums.PEDIA_TERRAINS: pediaMainScreen, SevoScreenEnums.PEDIA_FEATURES: pediaMainScreen, SevoScreenEnums.PEDIA_BONUSES: pediaMainScreen, SevoScreenEnums.PEDIA_IMPROVEMENTS: pediaMainScreen, SevoScreenEnums.PEDIA_CIVS: pediaMainScreen, SevoScreenEnums.PEDIA_LEADERS: pediaMainScreen, SevoScreenEnums.PEDIA_TRAITS: pediaMainScreen, SevoScreenEnums.PEDIA_CIVICS: pediaMainScreen, SevoScreenEnums.PEDIA_RELIGIONS: pediaMainScreen, SevoScreenEnums.PEDIA_CORPORATIONS: pediaMainScreen, SevoScreenEnums.PEDIA_CONCEPTS: pediaMainScreen, SevoScreenEnums.PEDIA_BTS_CONCEPTS: pediaMainScreen, SevoScreenEnums.PEDIA_HINTS: pediaMainScreen, SevoScreenEnums.PEDIA_SHORTCUTS: pediaMainScreen, }
def createCivilopedia(): """Creates the correct Civilopedia based on an option.""" global pediaMainScreen if pediaMainScreen is None: pediaMainScreen = CvPediaMain.CvPediaMain() HandleInputMap.update({ PEDIA_MAIN: pediaMainScreen, PEDIA_CIVS: pediaMainScreen, PEDIA_LEADERS: pediaMainScreen, PEDIA_CIVICS: pediaMainScreen, PEDIA_RELIGIONS: pediaMainScreen, PEDIA_CORPORATIONS: pediaMainScreen, PEDIA_SPECIALISTS: pediaMainScreen, PEDIA_TECHS: pediaMainScreen, PEDIA_UNITS: pediaMainScreen, PEDIA_MILITARY_UNITS: pediaMainScreen, PEDIA_UNIQUE_UNITS: pediaMainScreen, PEDIA_UNIT_CATEGORIES: pediaMainScreen, PEDIA_UNIT_UPGRADES: pediaMainScreen, PEDIA_PROMOTIONS: pediaMainScreen, PEDIA_PROMOTION_TREE: pediaMainScreen, PEDIA_BUILDINGS: pediaMainScreen, PEDIA_RELIGIOUS_BUILDINGS: pediaMainScreen, PEDIA_UNIQUE_BUILDINGS: pediaMainScreen, PEDIA_NATIONAL_WONDERS: pediaMainScreen, PEDIA_GREAT_WONDERS: pediaMainScreen, PEDIA_PROJECTS: pediaMainScreen, PEDIA_TERRAINS: pediaMainScreen, PEDIA_FEATURES: pediaMainScreen, PEDIA_RESOURCES: pediaMainScreen, PEDIA_IMPROVEMENTS: pediaMainScreen, PEDIA_ROUTES: pediaMainScreen, PEDIA_CONCEPTS: pediaMainScreen, PEDIA_SHORTCUTS: pediaMainScreen, PEDIA_BTS_CONCEPTS: pediaMainScreen, }) global HandleNavigationMap HandleNavigationMap = { MAIN_INTERFACE: mainInterface, PEDIA_MAIN: pediaMainScreen, PEDIA_CIVS: pediaMainScreen, PEDIA_LEADERS: pediaMainScreen, PEDIA_CIVICS: pediaMainScreen, PEDIA_RELIGIONS: pediaMainScreen, PEDIA_CORPORATIONS: pediaMainScreen, PEDIA_SPECIALISTS: pediaMainScreen, PEDIA_TECHS: pediaMainScreen, PEDIA_UNITS: pediaMainScreen, PEDIA_MILITARY_UNITS: pediaMainScreen, PEDIA_UNIQUE_UNITS: pediaMainScreen, PEDIA_UNIT_CATEGORIES: pediaMainScreen, PEDIA_UNIT_UPGRADES: pediaMainScreen, PEDIA_PROMOTIONS: pediaMainScreen, PEDIA_PROMOTION_TREE: pediaMainScreen, PEDIA_BUILDINGS: pediaMainScreen, PEDIA_RELIGIOUS_BUILDINGS: pediaMainScreen, PEDIA_UNIQUE_BUILDINGS: pediaMainScreen, PEDIA_NATIONAL_WONDERS: pediaMainScreen, PEDIA_GREAT_WONDERS: pediaMainScreen, PEDIA_PROJECTS: pediaMainScreen, PEDIA_TERRAINS: pediaMainScreen, PEDIA_FEATURES: pediaMainScreen, PEDIA_RESOURCES: pediaMainScreen, PEDIA_IMPROVEMENTS: pediaMainScreen, PEDIA_ROUTES: pediaMainScreen, PEDIA_CONCEPTS: pediaMainScreen, PEDIA_SHORTCUTS: pediaMainScreen, PEDIA_BTS_CONCEPTS: pediaMainScreen, }