Hi onkelm,
in Python/CvMainInterface.py ab Zeile 1387 die canTrain Überprüfung vermeiden:
Original:
PHP-Code:
# Units to construct
for i in range ( g_NumUnitClassInfos ):
eLoopUnit = gc.getCivilizationInfo(pHeadSelectedCity.getCivilizationType()).getCivilizationUnits(i)
if (pHeadSelectedCity.canTrain(eLoopUnit, False, True)):
szButton = gc.getPlayer(pHeadSelectedCity.getOwner()).getUnitButton(eLoopUnit)
screen.appendMultiListButton( "BottomButtonContainer", szButton, iRow, WidgetTypes.WIDGET_TRAIN, i, -1, False )
screen.show( "BottomButtonContainer" )
if ( not pHeadSelectedCity.canTrain(eLoopUnit, False, False) ):
screen.disableMultiListButton( "BottomButtonContainer", iRow, iCount, szButton)
iCount = iCount + 1
bFound = True
Alle Einheiten anzeigen:
PHP-Code:
# Units to construct
for i in range ( g_NumUnitClassInfos ):
eLoopUnit = gc.getCivilizationInfo(pHeadSelectedCity.getCivilizationType()).getCivilizationUnits(i)
#if (pHeadSelectedCity.canTrain(eLoopUnit, False, True)):
szButton = gc.getPlayer(pHeadSelectedCity.getOwner()).getUnitButton(eLoopUnit)
screen.appendMultiListButton( "BottomButtonContainer", szButton, iRow, WidgetTypes.WIDGET_TRAIN, i, -1, False )
screen.show( "BottomButtonContainer" )
if ( not pHeadSelectedCity.canTrain(eLoopUnit, False, False) ):
screen.disableMultiListButton( "BottomButtonContainer", iRow, iCount, szButton)
iCount = iCount + 1
bFound = True