platyping
Sleeping Dragon
Reuploaded, removed that file. For testing purposes.


Right now it is mostly just not having the python crash all over the shop
But that doesn't have anything to do with either mod, just my complete stupidity 



###combat-aircombat - start
szLeftBuffer = u""
szRightBuffer = u""
[COLOR="Red"]if (pHeadSelectedUnit.getDomainType() != DomainTypes.DOMAIN_AIR) and (pHeadSelectedUnit.airBaseCombatStr()>0):[/COLOR]
if (pHeadSelectedUnit.canFight()):
szLeftBuffer = localText.getText("INTERFACE_PANE_RANGED_STRENGTH", ())
if (pHeadSelectedUnit.isFighting()):
szRightBuffer = u"?/%d%c" %(pHeadSelectedUnit.airBaseCombatStr(), CyGame().getSymbolID(FontSymbols.STRENGTH_CHAR))
elif (pHeadSelectedUnit.isHurt()):
szRightBuffer = u"%.1f/%d%c" %(((float(pHeadSelectedUnit.airBaseCombatStr() * pHeadSelectedUnit.currHitPoints())) / (float(pHeadSelectedUnit.maxHitPoints()))), pHeadSelectedUnit.airBaseCombatStr(), CyGame().getSymbolID(FontSymbols.STRENGTH_CHAR))
else:
szRightBuffer = u"%d%c" %(pHeadSelectedUnit.airBaseCombatStr(), CyGame().getSymbolID(FontSymbols.STRENGTH_CHAR))
szBuffer = szLeftBuffer + szRightBuffer
if ( szBuffer ) and (pHeadSelectedUnit.getDomainType() != DomainTypes.DOMAIN_AIR) and (pHeadSelectedUnit.airBaseCombatStr()>0):
screen.appendTableRow( "SelectedUnitText" )
screen.setTableText( "SelectedUnitText", 0, iRow, szLeftBuffer, "", WidgetTypes.WIDGET_HELP_SELECTED, -1, -1, CvUtil.FONT_LEFT_JUSTIFY )
screen.setTableText( "SelectedUnitText", 1, iRow, szRightBuffer, "", WidgetTypes.WIDGET_HELP_SELECTED, -1, -1, CvUtil.FONT_RIGHT_JUSTIFY )
screen.show( "SelectedUnitText" )
screen.show( "SelectedUnitPanel" )
iRow += 1
###combat-aircombat - end
