How to add intermediate tooltip to GUI button?

I want my tooltips like they are here. Just like the instant tooltip with that border. Additionally, how could I customise my tooltip windows to have different colours and kinds of borders? I’m also interested in how to do text modification like in the 3rd button tooltip with bold and colours.

I’m trying to figure out the correct code (C#) since I’ve seen on the web that tooltips are created with 2 lines. One for the button and one for the GUI label. The problem is I use one of these lines in my set of if-statements when checking if the button is pressed/clicked.

I’m looking for an elegant approach/code that lets me create and display the GUI button tooltip but ideally not having to repeat the GUI.button call in my if-statements.

Anyone is welcome to ask me questions so I can clarify things and we can reach the better solution.

Thanks.

Nevermind. I accidently stumbled onto the tooltip example at the store here.