OrionVeteran
Deity
I have a small issue that I would like to fix on a python popup. The popup I have currently, (see image), lists all the units on a specified plot and displays two attributes for each unit: The button image of the unit and the Name of the Unit. Here are the specific lines:
What I want to do is show a third attribute to the popup line: The promotions. Does anyone know how to change the popup line to include the images of all the promotions the unit may have?
Code:
xUnitName = gc.getUnitInfo(xUnitType).getDescription()
xUnitButton = gc.getUnitInfo(xUnitType).getButton()
popupInfo.addPythonButton([B]xUnitName[/B], [B]xUnitButton[/B])
What I want to do is show a third attribute to the popup line: The promotions. Does anyone know how to change the popup line to include the images of all the promotions the unit may have?