platyping
Sleeping Dragon
Code:
## Show Natural Wonders with CTRL F ##
if theKey == int(InputTypes.KB_F) and self.bCtrl:
self.showNaturalWonders()
return 1
## Show Natural Wonders with CTRL F ##
return 0
def showNaturalWonders(self):
iPlayer = CyGame().getActivePlayer()
pPlayer = gc.getPlayer(iPlayer)
for i in xrange(CyMap().numPlots()):
pPlot = CyMap().plotByIndex(i)
iFeature = pPlot.getFeatureType()
if iFeature == -1: continue
if CyGame().GetWorldBuilderMode() or pPlot.isRevealed(pPlayer.getTeam(), False):
FeatureInfo = gc.getFeatureInfo(iFeature)
if FeatureInfo.getType().find("FEATURE_PLATY_") == -1: continue
sText = FeatureInfo.getDescription() + " (" + str(pPlot.getX()) + ", " + str(pPlot.getY()) +")"
CyInterface().addMessage(iPlayer,True,60,sText,'',0, FeatureInfo.getButton(),ColorTypes(11),pPlot.getX(),pPlot.getY(), True,True)