Add TextScale property to ToolTip#2702
Conversation
petchema
left a comment
There was a problem hiding this comment.
Can't really test the functionality, but those changes shouldn't affect anything as long as the textScale of a tooltip is not tweaked by a mod
|
For anyone wanting to see this functioning, here is a video example of everything working as I intend it. I am targetting the tooltips in the exterior automap and changing their size. I also show tooltips I am not targetting, whose sizes don't change. Maphours.-.Textscale.Example.mp4I also removed some TextScale variables I added in my first commit as they were not needed. In fact, some of them were causing problems with the positioning of the ToolTip if they got too big (so its good I made this video or I wouldn't have caught it this early). To test it yourself just do this on any toolTip: You can also check the |
I got a request for one of my mods to be able to scale the text of tool tips (specifically in the exterior automap).
I couldn't find an easy way of doing this so I created this property. This property is also in other files such as TextLabel.cs, and works the same way.
This lets me adjust the ToolTip scaling very easily for individual ToolTips.