Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: KozTheBoss on April 19, 2013, 08:59:20 AM
-
yay, more problems! Sorry for the mass influx of help posts, but i do trust you people to help me make the best graduation project possible! <3
This time, im now making GUI Buttons for the UI, and these buttons all have tooltips (as part of the GUI BUTTON action you can set the tooltip) below this GUI BUTTON action is a GUI TOOLTIP action that takes the tooltip string from the button, and stores it as a string var. i am then displaying this string var on a GUI text object
My problem is that this string is unformatted, which means it has no line breaks or anything, and is so long that it exits the screen
My question is if there is any way to format Tooltip strings before they are displayed?
<3 you guys
-Fred
-
Hi,
What kind of formatting? inserting returns? can you not have the formatting in the string already? that would be the most direct approach.
bye,
Jean
-
Hi Jean! Yeah, like returns :)
But the tooltip text is a preset text and i cannot edit it - i save it to a string that is displayed, but the tooltip text changes itself depending on what button or i hover my mouse over, and it all uses the same string so there is no way to format it I think
It is not like normal text that i save to a string, since that is static i can divide it into several strings and format it by line breaks, but the entire tooltip text is saved to 1 string so i cant format it since it´s also dynamic
-
hi,
Have you tried to create a custom skin for this? and set it up to wrap the content automatically?
bye,
Jean
-
Hey Jean! Honestly, i´ve never heard of custom skins! I will check it out :) Thanks!