hrochland
Prince
Those of you who understand python, please tell me can this work?
I need in a new victory type count how many has player the number one resource type.
I need in a new victory type count how many has player the number one resource type.
PHP:
iRow = screen.appendTableRow(szTable)
iBonus = pPlot.getBonusType(-1)
screen.setTableText(szTable, 0, iRow, gc.getBonusInfo(gc.getInfoTypeForString("BONUS_WHEAT")).getDescription(), gc.getBonusInfo(gc.getInfoTypeForString("BONUS_WHEAT")).getButton(), WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
screen.setTableText(szTable, 2, iRow, pTeam.getName() + ":", sLeaderButton, WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
screen.setTableText(szTable, 3, iRow, str(pTeam.getBonusClassCount(gc.getInfoTypeForString("BONUS_WHEAT"))), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)