if (CyInterface().canDeleteGroup()):
screen.appendMultiListButton( "BottomButtonContainer", ArtFileMgr.getInterfaceArtInfo("INTERFACE_BUTTONS_SPLITGROUP").getPath(), 0, WidgetTypes.WIDGET_DELETE_GROUP, -1, -1, False )
screen.show( "BottomButtonContainer" )
iCount = iCount + 1
# Mine Warfare Mod
# # ##### Naval Mine Sweeper Unit Button ######
pUnit = g_pSelectedUnit
iUnitType = pUnit.getUnitType()
iUnitOwner = pUnit.getOwner( )
pUnitOwner = gc.getPlayer(pUnit.getOwner( ))
iPlotX = pUnit.getX()
iPlotY = pUnit.getY()
pPlot = CyMap().plot(iPlotX, iPlotY)
iUnitMineSweeper = gc.getInfoTypeForString("UNIT_NAVAL_MINE_SWEEPER")
if pUnitOwner.isTurnActive( ):
if iUnitType == iUnitMineSweeper:
if not pPlot.isCity():
if MineWarfare.hasEnemyNavalMine(pPlot, iUnitOwner):
screen.appendMultiListButton( "BottomButtonContainer", ArtFileMgr.getInterfaceArtInfo("INTERFACE_RADAR_SCREEN").getPath(), 0, WidgetTypes.WIDGET_GENERAL, 777, 777, False )
screen.show( "BottomButtonContainer" )
iCount = iCount + 1
return
# End Mine Warfare Mod
elif (CyInterface().getShowInterface() != InterfaceVisibility.INTERFACE_HIDE_ALL and CyInterface().getShowInterface() != InterfaceVisibility.INTERFACE_MINIMAP_ONLY):
self.setMinimapButtonVisibility(True)
return 0