Recently it was brought to my attention that if you look into another player's city (e.g. via espionage) and it is currently building a unit, the model of the unit being displayed uses the art style of the currently active player, not the owner of the city. This can have confusing consequences such as a European civ's city building an Asian Spearman just because the player has an Asian art style.
However, looking into the code, it seems not so easy to control this. This is what draws the model in my interface code (BUG mod):
As you can see, the method only takes a unit type and then draws the model, presumably assuming that it belongs to the active player, using their art style.
Is there any way to get around this? I'd really like to display the unit model based on the art style of the player controlling the city instead.
However, looking into the code, it seems not so easy to control this. This is what draws the model in my interface code (BUG mod):
Code:
screen.addUnitGraphicGFC( "InterfaceUnitModel", CyInterface().getOrderNodeData1(i), 175, yResolution - 138, 123, 132, WidgetTypes.WIDGET_HELP_SELECTED, 0, -1, -20, 30, 1, False )
Is there any way to get around this? I'd really like to display the unit model based on the art style of the player controlling the city instead.