Rochet2 / TrinityCore

Rochet2's stuff for TC
https://rochet2.github.io
89 stars 144 forks source link

Unnecessary icons in gossip #141

Closed ataraxyaffliction closed 2 years ago

ataraxyaffliction commented 2 years ago

On the latest version of Trinity Core, display gossip with bugs. Small icons that obviously shouldn't be there. I can't understand how to fix this. Maybe you can help me?

2

Rochet2 commented 2 years ago

The small icons (bags) cannot be removed. But the large icon can be positioned over it. Either both icons show up or one is on top of the other.

The position of the icons varies depending on the screen and game window resolution, so you can basically never get the small icon perfectly hidden as far as I know.

You can adjust the icon position in the following file, but be aware that the small icon can still be visible or look bad on other screen resolutions than yours. https://github.com/Rochet2/TrinityCore/blob/transmog_3.3.5/src/server/scripts/Custom/Transmog/Transmogrifier.cpp The code contains strings like this:

"|TInterface/ICONS/INV_Misc_Book_11:30:30:-18:0|tHow transmogrification works"

In this code 30:30:-18:0 marks the large icon's width 30, height 30, offset x -18 and offset y 0. The x offset is what moves the icon to the left side. Using a value like -20 could move the large icon on top of the small icon as the icon is positioned further to the left. You should change all of the offsets in the file to what you choose to be proper.

ataraxyaffliction commented 2 years ago

Well, apparently because I'm testing it in 2k resolution. I see. Thanks. :)