How do I create a hover over tooltip with borders?

Get help using Construct 2

Post » Fri Apr 14, 2017 11:49 pm

Hi guys. First of all i'd like to say, that i am really happy, that i found Construct2 and this awesome community.
It has resparked my hobbyish programming flame and is killing all my leisure time in the moment. In a good way.

I got following problem / question. I need tooltips for my game, that appear when i hover over an item and display the name, a prepared tooltip text and so on.

Maybe im missing something but i can either create textbox objects with borders, that only work with singleline output (even with plugins) OR text objects, on which i cant get borders working.

I'd love some input on how you would takle this or maybe a capx where you already did something like this.

Cheers guys
B
4
Posts: 2
Reputation: 209

Post » Sat Apr 15, 2017 3:06 am

@m0nkeybusiness

The options are pretty limited - you can change the Type field of a TextBox to TextArea to get multiple lines (and then use CSS to make the background and border. Or use a sprite for the background and border and then place a text object on top of it. But then you need to know how much text will be displayed in advance, or resize the sprite after text has been set - using the TextHeight and TextWidth properties.
B
95
S
33
G
20
Posts: 438
Reputation: 17,640

Post » Sat Apr 15, 2017 9:54 am

TextArea was exactly what i was looking for. Thank you very much!
B
4
Posts: 2
Reputation: 209


Return to How do I....?

Who is online

Users browsing this forum: lukewasthefish, Nicolas951, tarek2 and 6 guests