• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTClient Where are otclient's tooltips handled?

Itutorial

Legendary OT User
Joined
Dec 23, 2014
Messages
2,370
Solutions
68
Reaction score
1,043
I know how to use the tooltips but I cannot find where the code to display the tool tip is. Also, if someone knows how I can add text color to the tooltip that would be a bonus. Thanks for any help.


I think I might be dumb early in the morning. Still, is there a way to tell otcv8 that you want specific text to be a different color from the rest?

I can change all the texts color but doing a single word or whatever Idk
 
Last edited:
Then you need string manipulation. What you see is simply text from "Look" that the server sends with an item (full item description).
That's why custom tooltips are using own methods and not this shit.
 
You can do things basically, and its what oen said.
You can change the text and give it a color or create a new widget that will be called onHoverChange and give it different text colors. Second choice is way more versatile, but you do need some knowledge on coding OTC modules.
You need 3 things to achieve that: Know how to send data server-client-server, how to create widgets and learn how to apply onHoverChange..
 
Back
Top