Closed enderelijas closed 9 months ago
format_deploy_icon is normally from a bcu icon iirc. This is now fixed, but i've added another function
form.import_enemy_deploy_icon(enemy, offset)
where offset is a tuple of (x_offset, y_offset) when pasting the enemy icon. It defaults to (-20, -20) which works for your image pretty well.
form.import_enemy(enemy, deploy_icon_offset)
does this as well now and you can again pass in an offset. So you don't need to call form.import_enemy_deploy_icon(enemy, offset)
yourself
Calling the
format_deploy_icon()
method as shown below, throws aValueError: bad transparency mask
.Code causing error
Method error chain