def lateInit(): import CvCorporationScreen import CvEspionageAdvisor import CvMilitaryAdvisor import CvDomesticAdvisor import CvForeignAdvisor import CvFinanceAdvisor import CvReligionScreen import CvEraMovieScreen import CvVictoryScreen import CvCivicsScreen import CvInfoScreen import CvDawnOfMan import CvTopCivs import Forgetful import CvDebugInfoScreen import CvTechChooser import BuildListScreen screenMap[CORPORATION_SCREEN] = CvCorporationScreen.CvCorporationScreen() screenMap[ESPIONAGE_ADVISOR] = CvEspionageAdvisor.CvEspionageAdvisor() screenMap[MILITARY_ADVISOR] = CvMilitaryAdvisor.CvMilitaryAdvisor( MILITARY_ADVISOR) screenMap[DOMESTIC_ADVISOR] = CvDomesticAdvisor.CvDomesticAdvisor( DOMESTIC_ADVISOR) screenMap[FOREIGN_ADVISOR] = CvForeignAdvisor.CvForeignAdvisor( FOREIGN_ADVISOR) screenMap[FINANCE_ADVISOR] = CvFinanceAdvisor.CvFinanceAdvisor( FINANCE_ADVISOR) screenMap[RELIGION_SCREEN] = CvReligionScreen.CvReligionScreen() screenMap[ERA_MOVIE_SCREEN] = CvEraMovieScreen.CvEraMovieScreen() screenMap[VICTORY_SCREEN] = CvVictoryScreen.CvVictoryScreen(VICTORY_SCREEN) screenMap[CIVICS_SCREEN] = CvCivicsScreen.CvCivicsScreen(CIVICS_SCREEN) screenMap[INFO_SCREEN] = CvInfoScreen.CvInfoScreen(INFO_SCREEN) screenMap[DAWN_OF_MAN] = CvDawnOfMan.CvDawnOfMan() screenMap[TOP_CIVS] = CvTopCivs.CvTopCivs(TOP_CIVS) screenMap[FORGETFUL_SCREEN] = Forgetful.Forgetful() screenMap[DEBUG_INFO_SCREEN] = CvDebugInfoScreen.CvDebugInfoScreen() screenMap[TECH_CHOOSER] = CvTechChooser.CvTechChooser() screenMap[BUILD_LIST_SCREEN] = BuildListScreen.BuildListScreen() import WorldBuilder, CvAdvancedStartScreen global worldBuilderScreen, advancedStartScreen advancedStartScreen = CvAdvancedStartScreen.CvAdvancedStartScreen() worldBuilderScreen = WorldBuilder.WorldBuilder(WORLDBUILDER_SCREEN) screenMap[WORLDBUILDER_SCREEN] = worldBuilderScreen import WBPlotScreen import WBEventScreen import WBBuildingScreen import WBCityDataScreen import WBCityEditScreen import WBProjectScreen import WBTeamScreen import WBPlayerScreen import WBUnitScreen import WBPromotionScreen import WBDiplomacyScreen import WBPlayerUnits import WBReligionScreen import WBCorporationScreen import WBInfoScreen import WBTradeScreen screenMap[WB_PLOT] = WBPlotScreen.WBPlotScreen(worldBuilderScreen) screenMap[WB_EVENT] = WBEventScreen.WBEventScreen(worldBuilderScreen) screenMap[WB_BUILDING] = WBBuildingScreen.WBBuildingScreen( worldBuilderScreen) screenMap[WB_CITYDATA] = WBCityDataScreen.WBCityDataScreen( worldBuilderScreen) screenMap[WB_CITYEDIT] = WBCityEditScreen.WBCityEditScreen( worldBuilderScreen) screenMap[WB_PROJECT] = WBProjectScreen.WBProjectScreen(worldBuilderScreen) screenMap[WB_TEAM] = WBTeamScreen.WBTeamScreen(worldBuilderScreen) screenMap[WB_PLAYER] = WBPlayerScreen.WBPlayerScreen(worldBuilderScreen) screenMap[WB_UNIT] = WBUnitScreen.WBUnitScreen(worldBuilderScreen) screenMap[WB_PROMOTION] = WBPromotionScreen.WBPromotionScreen( worldBuilderScreen) screenMap[WB_DIPLOMACY] = WBDiplomacyScreen.WBDiplomacyScreen( worldBuilderScreen) screenMap[WB_UNITLIST] = WBPlayerUnits.WBPlayerUnits(worldBuilderScreen) screenMap[WB_RELIGION] = WBReligionScreen.WBReligionScreen( worldBuilderScreen) screenMap[WB_CORPORATION] = WBCorporationScreen.WBCorporationScreen( worldBuilderScreen) screenMap[WB_INFO] = WBInfoScreen.WBInfoScreen(worldBuilderScreen) screenMap[WB_TRADE] = WBTradeScreen.WBTradeScreen(worldBuilderScreen)
def handleInput(self, inputClass): screen = CyGInterfaceScreen("WBPlayerUnits", CvScreenEnums.WB_UNITLIST) global iCityID global iUnitID global iCopyType global iOwnerType global iPlotType global iActivityType global iPlayer global iCityOwner global iUnitOwner pPlayer = GC.getPlayer(iPlayer) pUnitOwner = GC.getPlayer(iUnitOwner) pCityOwner = GC.getPlayer(iCityOwner) sName = inputClass.getFunctionName() if sName == "CurrentPage": iIndex = screen.getPullDownData("CurrentPage", screen.getSelectedPullDownID("CurrentPage")) if iIndex == 0: WBPlayerScreen.WBPlayerScreen(self.WB).interfaceScreen(iPlayer) elif iIndex == 1: WBTeamScreen.WBTeamScreen(self.WB).interfaceScreen(pPlayer.getTeam()) elif iIndex == 2: WBProjectScreen.WBProjectScreen(self.WB).interfaceScreen(pPlayer.getTeam()) elif iIndex == 3: self.WB.goToSubScreen("TechScreen") elif iIndex == 11: WBInfoScreen.WBInfoScreen(self.WB).interfaceScreen(iPlayer) elif iIndex == 5: WBUnitScreen.WBUnitScreen(self.WB).interfaceScreen(pUnitOwner.getUnit(iUnitID)) elif iIndex == 6: WBPromotionScreen.WBPromotionScreen(self.WB).interfaceScreen(pUnitOwner.getUnit(iUnitID)) elif iIndex == 7: WBPlotScreen.WBPlotScreen(self.WB).interfaceScreen(pUnitOwner.getUnit(iUnitID).plot()) elif iIndex == 8: WBEventScreen.WBEventScreen(self.WB).interfaceScreen(pUnitOwner.getUnit(iUnitID).plot()) elif iIndex == 9: WBCityEditScreen.WBCityEditScreen(self.WB).interfaceScreen(pCityOwner.getCity(iCityID)) elif iIndex == 10: WBCityDataScreen.WBCityDataScreen(self.WB).interfaceScreen(pCityOwner.getCity(iCityID)) elif iIndex == 14: WBBuildingScreen.WBBuildingScreen(self.WB).interfaceScreen(pCityOwner.getCity(iCityID)) elif iIndex == 12: WBPlotScreen.WBPlotScreen(self.WB).interfaceScreen(pCityOwner.getCity(iCityID).plot()) elif iIndex == 13: WBEventScreen.WBEventScreen(self.WB).interfaceScreen(pCityOwner.getCity(iCityID).plot()) elif sName == "CurrentPlayer": iIndex = screen.getPullDownData("CurrentPlayer", screen.getSelectedPullDownID("CurrentPlayer")) iCityID = -1 iUnitID = -1 self.interfaceScreen(iIndex) elif sName == "OwnerType": iOwnerType = screen.getPullDownData("OwnerType", screen.getSelectedPullDownID("OwnerType")) if iCityOwner != iPlayer: iCityID = -1 if iUnitOwner != iPlayer: iUnitID = -1 self.sortCities() self.sortUnits() elif sName == "PlotType": iPlotType = screen.getPullDownData("PlotType", screen.getSelectedPullDownID("PlotType")) if iCityOwner != iPlayer: iCityID = -1 if iUnitOwner != iPlayer: iUnitID = -1 self.sortCities() self.sortUnits() elif sName == "CopyType": iCopyType = screen.getPullDownData("CopyType", screen.getSelectedPullDownID("CopyType")) self.sortUnits() screen.hide("ActivityType") if iCopyType == 5: screen.show("ActivityType") elif sName == "ActivityType": iActivityType = screen.getPullDownData("ActivityType", screen.getSelectedPullDownID("ActivityType")) self.sortUnits() elif sName == "GoToCity": WBCityEditScreen.WBCityEditScreen(self.WB).interfaceScreen(pCityOwner.getCity(iCityID)) elif sName == "GoToUnit": WBUnitScreen.WBUnitScreen(self.WB).interfaceScreen(pUnitOwner.getUnit(iUnitID)) elif sName == "WBCityList": if inputClass.getData1() == 7872: iCityOwner = inputClass.getData2() /10000 WBPlayerScreen.WBPlayerScreen(self.WB).interfaceScreen(iCityOwner) else: iCityID = inputClass.getData2() iCityOwner = inputClass.getData1() - 7200 self.placeCurrentCity() self.placeCityMap() elif sName == "DeleteCurrentCity": if pCityOwner: pCity = pCityOwner.getCity(iCityID) if not pCity: pCity.kill() iCityID = -1 self.sortCities() self.addPageSwitch() elif sName == "DeleteAllCities": for item in lCities: pPlayerX = GC.getPlayer(item[0]) pPlayerX.getCity(item[1]).kill() iCityID = -1 self.sortCities() self.addPageSwitch() elif sName == "WBUnitList": if inputClass.getData1() == 1043: return elif inputClass.getData1() == 7872: iUnitOwner = inputClass.getData2() /10000 WBPlayerScreen.WBPlayerScreen(self.WB).interfaceScreen(iUnitOwner) else: iUnitID = inputClass.getData2() iUnitOwner = inputClass.getData1() - 8300 self.placeCurrentUnit() self.placeUnitMap() elif sName == "DeleteCurrentUnit": if pUnitOwner: pUnit = pUnitOwner.getUnit(iUnitID) if not pUnit.isNone(): pUnit.kill(False, PlayerTypes.NO_PLAYER) iUnitID = -1 self.sortUnits() self.addPageSwitch() elif sName == "DeleteAllUnits": for item in lUnits: pPlayerX = GC.getPlayer(item[0]) pPlayerX.getUnit(item[1]).kill(False, PlayerTypes.NO_PLAYER) iUnitID = -1 self.sortUnits() self.addPageSwitch() elif sName == "EndCurrentUnit": if pUnitOwner: pUnit = pUnitOwner.getUnit(iUnitID) if not pUnit.isNone(): pUnit.finishMoves() self.placeCurrentUnit() elif sName == "EndAllUnits": for item in lUnits: pPlayerX = GC.getPlayer(item[0]) pPlayerX.getUnit(item[1]).finishMoves() self.placeCurrentUnit() return
def handleInput(self, inputClass): screen = CyGInterfaceScreen("WBInfoScreen", CvScreenEnums.WB_INFO) global iSelectedPlayer global iItem global iMode global lSelectedItem if inputClass.getFunctionName() == "PlotData": if iMode == 0: pUnit = gc.getPlayer(lSelectedItem[0]).getUnit( lSelectedItem[1]) if pUnit: WBUnitScreen.WBUnitScreen( CvPlatyBuilderScreen.CvWorldBuilderScreen( )).interfaceScreen(pUnit) elif iMode == 1: pUnit = gc.getPlayer(lSelectedItem[0]).getUnit( lSelectedItem[1]) if pUnit: WBPromotionScreen.WBPromotionScreen().interfaceScreen( pUnit) elif iMode < 6: pCity = gc.getPlayer(lSelectedItem[0]).getCity( lSelectedItem[1]) if pCity: WBCityEditScreen.WBCityEditScreen( CvPlatyBuilderScreen.CvWorldBuilderScreen( )).interfaceScreen(pCity) elif iMode < 11: pPlot = CyMap().plot(lSelectedItem[0], lSelectedItem[1]) if not pPlot.isNone(): WBPlotScreen.WBPlotScreen().interfaceScreen(pPlot) elif iMode == 11: WBPlayerScreen.WBPlayerScreen().interfaceScreen( lSelectedItem[0]) elif iMode == 12: WBTechScreen.WBTechScreen().interfaceScreen(lSelectedItem[0]) elif iMode == 13: WBProjectScreen.WBProjectScreen().interfaceScreen( lSelectedItem[0]) elif inputClass.getFunctionName() == "ItemType": iMode = screen.getPullDownData( "ItemType", screen.getSelectedPullDownID("ItemType")) iItem = -1 self.interfaceScreen(iSelectedPlayer) elif inputClass.getFunctionName() == "CurrentPlayer": iSelectedPlayer = screen.getPullDownData( "CurrentPlayer", screen.getSelectedPullDownID("CurrentPlayer")) self.interfaceScreen(iSelectedPlayer) elif inputClass.getFunctionName() == "InfoTable": iItem = inputClass.getData2() self.refreshMap() elif inputClass.getFunctionName() == "PlotTable": iColorA = gc.getInfoTypeForString(self.iColorA) iColorB = gc.getInfoTypeForString(self.iColorB) if iMode < 2: pUnit = gc.getPlayer(lSelectedItem[0]).getUnit( lSelectedItem[1]) if pUnit: screen.minimapFlashPlot(pUnit.getX(), pUnit.getY(), iColorB, -1) iPlayer = inputClass.getData1() - 8300 iUnit = inputClass.getData2() pNewUnit = gc.getPlayer(iPlayer).getUnit(iUnit) if pNewUnit: lSelectedItem = [iPlayer, iUnit] screen.minimapFlashPlot(pNewUnit.getX(), pNewUnit.getY(), iColorA, -1) elif iMode < 6: pCity = gc.getPlayer(lSelectedItem[0]).getCity( lSelectedItem[1]) if pCity: screen.minimapFlashPlot(pCity.getX(), pCity.getY(), iColorB, -1) iPlayer = inputClass.getData1() - 7200 iCity = inputClass.getData2() pNewCity = gc.getPlayer(iPlayer).getCity(iCity) if pNewCity: lSelectedItem = [iPlayer, iCity] screen.minimapFlashPlot(pNewCity.getX(), pNewCity.getY(), iColorA, -1) elif iMode < 11: iX = lSelectedItem[0] iY = lSelectedItem[1] if iX > -1 and iY > -1: screen.minimapFlashPlot(iX, iY, iColorB, -1) iX = inputClass.getData2() / 10000 iY = inputClass.getData2() % 10000 lSelectedItem = [iX, iY] screen.minimapFlashPlot(iX, iY, iColorA, -1) elif iMode == 11: iPlayerX = inputClass.getData2() / 10000 lSelectedItem = [iPlayerX, -1] elif iMode > 11: iPlayerX = inputClass.getData2() / 10000 lSelectedItem = [gc.getPlayer(iPlayerX).getTeam(), -1] self.placePlotData() elif inputClass.getFunctionName() == "HideInactive": CvPlatyBuilderScreen.bHideInactive = not CvPlatyBuilderScreen.bHideInactive CvPlatyBuilderScreen.CvWorldBuilderScreen().refreshSideMenu() sText = u"<font=3b>" + CyTranslator().getText( "TXT_KEY_PEDIA_HIDE_INACTIVE", ()) + "</font>" sColor = CyTranslator().getText("[COLOR_WARNING_TEXT]", ()) if CvPlatyBuilderScreen.bHideInactive: sColor = CyTranslator().getText("[COLOR_POSITIVE_TEXT]", ()) screen.setText("HideInactive", "Background", sColor + sText + "</color>", CvUtil.FONT_LEFT_JUSTIFY, screen.getXResolution() / 3 + 20, self.iTable_Y - 22, -0.1, FontTypes.TITLE_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1) self.placeItems()
def handleInput(self, inputClass): screen = CyGInterfaceScreen("WBInfoScreen", CvScreenEnums.WB_INFO) global iSelectedPlayer global iItem global iMode global lSelectedItem if inputClass.getFunctionName() == "PlotData": if iMode == 0: pUnit = GC.getPlayer(lSelectedItem[0]).getUnit( lSelectedItem[1]) if pUnit: WBUnitScreen.WBUnitScreen(self.WB).interfaceScreen(pUnit) elif iMode == 1: pUnit = GC.getPlayer(lSelectedItem[0]).getUnit( lSelectedItem[1]) if pUnit: WBPromotionScreen.WBPromotionScreen( self.WB).interfaceScreen(pUnit) elif iMode < 6: pCity = GC.getPlayer(lSelectedItem[0]).getCity( lSelectedItem[1]) if pCity: WBCityEditScreen.WBCityEditScreen( self.WB).interfaceScreen(pCity) elif iMode < 11: pPlot = CyMap().plot(lSelectedItem[0], lSelectedItem[1]) if not pPlot.isNone(): WBPlotScreen.WBPlotScreen(self.WB).interfaceScreen(pPlot) elif iMode == 11: WBPlayerScreen.WBPlayerScreen(self.WB).interfaceScreen( lSelectedItem[0]) elif iMode == 12: self.WB.goToSubScreen("TechScreen") elif iMode == 13: WBProjectScreen.WBProjectScreen(self.WB).interfaceScreen( lSelectedItem[0]) if inputClass.getFunctionName() == "ItemType": iMode = screen.getPullDownData( "ItemType", screen.getSelectedPullDownID("ItemType")) iItem = -1 self.interfaceScreen(iSelectedPlayer) elif inputClass.getFunctionName() == "CurrentPlayer": iSelectedPlayer = screen.getPullDownData( "CurrentPlayer", screen.getSelectedPullDownID("CurrentPlayer")) self.interfaceScreen(iSelectedPlayer) elif inputClass.getFunctionName() == "InfoTable": iItem = inputClass.getData2() self.refreshMap() elif inputClass.getFunctionName() == "PlotTable": iColorA = GC.getInfoTypeForString(self.iColorA) iColorB = GC.getInfoTypeForString(self.iColorB) if iMode < 2: pUnit = GC.getPlayer(lSelectedItem[0]).getUnit( lSelectedItem[1]) if pUnit: screen.minimapFlashPlot(pUnit.getX(), pUnit.getY(), iColorB, -1) iPlayer = inputClass.getData1() - 8300 iUnit = inputClass.getData2() pNewUnit = GC.getPlayer(iPlayer).getUnit(iUnit) if pNewUnit: lSelectedItem = [iPlayer, iUnit] screen.minimapFlashPlot(pNewUnit.getX(), pNewUnit.getY(), iColorA, -1) elif iMode < 6: pCity = GC.getPlayer(lSelectedItem[0]).getCity( lSelectedItem[1]) if pCity: screen.minimapFlashPlot(pCity.getX(), pCity.getY(), iColorB, -1) iPlayer = inputClass.getData1() - 7200 iCity = inputClass.getData2() pNewCity = GC.getPlayer(iPlayer).getCity(iCity) if pNewCity: lSelectedItem = [iPlayer, iCity] screen.minimapFlashPlot(pNewCity.getX(), pNewCity.getY(), iColorA, -1) elif iMode < 11: iX = lSelectedItem[0] iY = lSelectedItem[1] if iX > -1 and iY > -1: screen.minimapFlashPlot(iX, iY, iColorB, -1) iX = inputClass.getData2() / 10000 iY = inputClass.getData2() % 10000 lSelectedItem = [iX, iY] screen.minimapFlashPlot(iX, iY, iColorA, -1) elif iMode == 11: iPlayerX = inputClass.getData2() / 10000 lSelectedItem = [iPlayerX, -1] elif iMode > 11: iPlayerX = inputClass.getData2() / 10000 lSelectedItem = [GC.getPlayer(iPlayerX).getTeam(), -1] self.placePlotData()
PEDIA_SPELL: pediaMainScreen, #RevolutionDCM REVOLUTION_WATCH_ADVISOR: revolutionWatchAdvisor, ## World Builder ## WB_PLOT: WBPlotScreen.WBPlotScreen(), WB_EVENT: WBEventScreen.WBEventScreen(), WB_BUILDING: WBBuildingScreen.WBBuildingScreen(), WB_CITYDATA: WBCityDataScreen.WBCityDataScreen(), WB_CITYEDIT: WBCityEditScreen.WBCityEditScreen(), WB_TECH: WBTechScreen.WBTechScreen(), WB_PROJECT: WBProjectScreen.WBProjectScreen(), WB_TEAM: WBTeamScreen.WBTeamScreen(), WB_PLAYER: WBPlayerScreen.WBPlayerScreen(), WB_UNIT: WBUnitScreen.WBUnitScreen(worldBuilderScreen), WB_PROMOTION: WBPromotionScreen.WBPromotionScreen(), WB_DIPLOMACY: WBDiplomacyScreen.WBDiplomacyScreen(), WB_GAMEDATA: WBGameDataScreen.WBGameDataScreen(worldBuilderScreen), WB_UNITLIST: WBPlayerUnits.WBPlayerUnits(), WB_RELIGION: WBReligionScreen.WBReligionScreen(), WB_CORPORATION: WBCorporationScreen.WBCorporationScreen(), WB_INFO: WBInfoScreen.WBInfoScreen(), WB_TRADE: WBTradeScreen.WBTradeScreen(), } ####################################################################################### ## Handle Navigation Map ####################################################################################### HandleNavigationMap = { MAIN_INTERFACE: mainInterface, PEDIA_MAIN: pediaMainScreen,
WB_CITYDATA: WBCityDataScreen.WBCityDataScreen(), WB_CITYEDIT: WBCityEditScreen.WBCityEditScreen(worldBuilderScreen), WB_TECH: WBTechScreen.WBTechScreen(), WB_PROJECT: WBProjectScreen.WBProjectScreen(), WB_TEAM: WBTeamScreen.WBTeamScreen(), WB_PLAYER: WBPlayerScreen.WBPlayerScreen(), WB_UNIT: WBUnitScreen.WBUnitScreen(worldBuilderScreen), WB_PROMOTION: WBPromotionScreen.WBPromotionScreen(), WB_DIPLOMACY: WBDiplomacyScreen.WBDiplomacyScreen(), WB_GAMEDATA: WBGameDataScreen.WBGameDataScreen(worldBuilderScreen), WB_UNITLIST: WBPlayerUnits.WBPlayerUnits(), WB_RELIGION: WBReligionScreen.WBReligionScreen(), WB_CORPORATION: WBCorporationScreen.WBCorporationScreen(), WB_INFO: WBInfoScreen.WBInfoScreen(), WB_TRADE: WBTradeScreen.WBTradeScreen(), WB_STOREDDATA:
def handleInput(self, inputClass): screen = CyGInterfaceScreen("WBPlayerUnits", CvScreenEnums.WB_UNITLIST) global iCityID global iUnitID if inputClass.getFunctionName() == "CurrentPage": iIndex = screen.getPullDownData("CurrentPage", screen.getSelectedPullDownID("CurrentPage")) if iIndex == 0: WBPlayerScreen.WBPlayerScreen().interfaceScreen(iPlayer) elif iIndex == 1: WBTeamScreen.WBTeamScreen().interfaceScreen(iTeam) elif iIndex == 2: WBProjectScreen.WBProjectScreen().interfaceScreen(iTeam) elif iIndex == 3: WBTechScreen.WBTechScreen().interfaceScreen(iTeam) elif iIndex == 11: WBInfoScreen.WBInfoScreen().interfaceScreen(iPlayer) #Magister Start elif iIndex == 5: WBUnitScreen.WBUnitScreen(CvPlatyBuilderScreen.CvWorldBuilderScreen()).interfaceScreen(pPlayer.getUnit(iUnitID)) elif iIndex == 6: WBPromotionScreen.WBPromotionScreen().interfaceScreen(pPlayer.getUnit(iUnitID)) elif iIndex == 7: WBPlotScreen.WBPlotScreen().interfaceScreen(pPlayer.getUnit(iUnitID).plot()) elif iIndex == 8: WBEventScreen.WBEventScreen().interfaceScreen(pPlayer.getUnit(iUnitID).plot()) elif iIndex == 9: WBCityEditScreen.WBCityEditScreen().interfaceScreen(pPlayer.getCity(iCityID)) elif iIndex == 10: WBCityDataScreen.WBCityDataScreen().interfaceScreen(pPlayer.getCity(iCityID)) elif iIndex == 14: WBBuildingScreen.WBBuildingScreen().interfaceScreen(pPlayer.getCity(iCityID)) elif iIndex == 12: WBPlotScreen.WBPlotScreen().interfaceScreen(pPlayer.getCity(iCityID).plot()) elif iIndex == 13: WBEventScreen.WBEventScreen().interfaceScreen(pPlayer.getCity(iCityID).plot()) #Magister Stop elif inputClass.getFunctionName() == "CurrentPlayer": iIndex = screen.getPullDownData("CurrentPlayer", screen.getSelectedPullDownID("CurrentPlayer")) iCityID = 0 iUnitID = 0 self.interfaceScreen(iIndex) elif inputClass.getFunctionName() == "WBCityList": iCityID = inputClass.getData2() if inputClass.getData1() == 1030: WBCityEditScreen.WBCityEditScreen().interfaceScreen(pPlayer.getCity(iCityID)) elif inputClass.getData1() == 1031: pPlayer.getCity(iCityID).kill() self.setCityTable() self.interfaceScreen(iPlayer)#Magister else: self.placeCityMap() self.interfaceScreen(iPlayer)#Magister elif inputClass.getFunctionName() == "DeleteAllCities": pPlayer.killCities() self.setCityTable() self.interfaceScreen(iPlayer)#Magister elif inputClass.getFunctionName() == "WBUnitList": iUnitID = inputClass.getData2() if inputClass.getData1() == 1030: WBUnitScreen.WBUnitScreen(CvPlatyBuilderScreen.CvWorldBuilderScreen()).interfaceScreen(pPlayer.getUnit(iUnitID)) elif inputClass.getData1() == 1031: pPlayer.getUnit(iUnitID).kill(false, PlayerTypes.NO_PLAYER) self.setUnitTable() self.interfaceScreen(iPlayer)#Magister else: self.placeUnitMap() self.interfaceScreen(iPlayer)#Magister elif inputClass.getFunctionName() == "DeleteAllUnits": pPlayer.killUnits() self.setUnitTable() self.interfaceScreen(iPlayer)#Magister return