Fractal Softworks Forum

Starsector => Bug Reports & Support => Bug Reports & Support (modded) => Topic started by: Jaghaimo on May 01, 2021, 01:51:47 AM

Title: [0.95a-RC15] TooltipMakerAPI.addShipList fails to render ships with modules
Post by: Jaghaimo on May 01, 2021, 01:51:47 AM
TooltipMakerAPI's showShips() renders ships with modules fine, but addShipList() renders white rectangles over modules. Also added base sprite (using addImage() which is fine) for comparison. Tried both base hull and proper variants.

At this point I'll gladly accept any workaround that lets me render image centered using addImage(), whatever the hack is needed.

Code for reproduction: get Roider Union mod, and the code here: https://github.com/jaghaimo/rcoin (https://github.com/jaghaimo/rcoin)

Spoiler
(https://i.imgur.com/ZfCkdN5.png)
[close]

Title: Re: [0.95a-RC12] TooltipMakerAPI.addShipList fails to render ships with modules
Post by: SafariJohn on May 01, 2021, 03:48:09 AM
The list on the left side of your image is not showing modules at all.
Title: Re: [0.95a-RC12] TooltipMakerAPI.addShipList fails to render ships with modules
Post by: Jaghaimo on May 01, 2021, 05:04:05 AM
The list on the left side of your image is not showing modules at all.
Yes, that's the same as what I fed to `addImage()` - base hull's sprite name. Which is probably what `showShips()` display as well, thus it looks "fine" (hard to tell with small icon). Wish `addShipList()` would behave the same...
Title: Re: [0.95a-RC15] TooltipMakerAPI.addShipList fails to render ships with modules
Post by: Jaghaimo on May 04, 2021, 08:41:53 AM
Updated title, it always was RC15, but my browser autocompleted 12 for me :/