Showing a skill icon in Response Buttons

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
lostmushroom
Posts: 195
Joined: Mon Jul 01, 2019 1:21 pm

Showing a skill icon in Response Buttons

Post 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!
User avatar
Tony Li
Posts: 22162
Joined: Thu Jul 18, 2013 1:27 pm

Re: Showing a skill icon in Response Buttons

Post 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.
lostmushroom
Posts: 195
Joined: Mon Jul 01, 2019 1:21 pm

Re: Showing a skill icon in Response Buttons

Post 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?
lostmushroom
Posts: 195
Joined: Mon Jul 01, 2019 1:21 pm

Re: Showing a skill icon in Response Buttons

Post by lostmushroom »

Wait, nvm I got it working. I had forgotten to assign the new TMP Response Text in the Response Button Template.
Post Reply