Wynntils

Wynntils

611k Downloads

Comparing two pieces of gear will sometimes make the tooltips overlap

EpicPuppy613 opened this issue ยท 4 comments

commented

image
Its very inconsistent where its perfectly fine with some comparisons, but others (like the one shown above) overlap and is sometimes hard to read.

commented

This might be unrelated and could be caused by legendary tooltips (I will do proper checks at a later time) but it seems like if the second tooltip doesn't have enough horizontal space it tries to be rendered on the other side, but it goes to weird x positions.

Another theory for this might be because the tooltip is too big, so when it renders, it scales the entire screen up, but it doesn't account for the scaled up screen when offsetting the x position

commented

I have spotted the main issue, the x offset is not accounting for the fact that the item name could be bold (perfect) or the percentage numbers on the identification. I might give a go at fixing this.
image

commented

This might be unrelated and could be caused by legendary tooltips (I will do proper checks at a later time) but it seems like if the second tooltip doesn't have enough horizontal space it tries to be rendered on the other side, but it goes to weird x positions.
2023-10-09_02 09 59
On this example, you can see that I am comparing a chestplate in my inventory with my boots, the tooltip of the boots is going to the left of them and thus the chestplate tooltip is trying to render on the left of that tooltip, but it would not fit the screen and tries to render on the right but fails to determine right x position.

commented

I tried fixing it, but the tooltip system is just really goofy and stupid. I'll try to commit a partial fix soon, but this issue is definitely going to take a bit to fix.