Page 1 of 1

Showing a skill icon in Response Buttons

Posted: Tue Jun 15, 2021 10:02 am
by lostmushroom
Hey Tony. Is there a way to show icons in response buttons? I'd like to show skill icons every time there is a skill check, so if you have a STR check you get a muscle icon appearing at the top of the response button, INT check you get a brain and so on...

I was just looking at this thread: https://pixelcrushers.com/phpbb/viewtop ... f=3&t=2782

Wondering if there's a way to do something similar but with an image instead of [Strength] as text. The skill checks are already working, the only thing I have left to do is add a visual :)

Thanks for your help!

Re: Showing a skill icon in Response Buttons

Posted: Tue Jun 15, 2021 11:02 am
by Tony Li
Hi,

Sure! The easiest way is to use TextMesh Pro. (See TextMesh Pro Support.) Then include <sprite> tags in your response text.

Re: Showing a skill icon in Response Buttons

Posted: Tue Jun 15, 2021 11:54 am
by lostmushroom
Thanks! This looks like it will work well.

I got TextMeshPro working in the project with icons showing up in text fields, but it doesn't seem to be working when I do it in the DS database. I enabled TMP in Dialogue System/Project Settings so that seems ok, is there something else I need to do to get it working in conversation nodes?

Re: Showing a skill icon in Response Buttons

Posted: Tue Jun 15, 2021 12:19 pm
by lostmushroom
Wait, nvm I got it working. I had forgotten to assign the new TMP Response Text in the Response Button Template.