Hint shown when hovering
Hint shown when hovering
Hi,
I have followed the solution in the linked post to try to achieve showing hints when hovering the response text.
https://www.pixelcrushers.com/phpbb/vie ... a382615bb1
But so far the hint is not showing. Below is my own implementation. Any help is much appreciated!
I have followed the solution in the linked post to try to achieve showing hints when hovering the response text.
https://www.pixelcrushers.com/phpbb/vie ... a382615bb1
But so far the hint is not showing. Below is my own implementation. Any help is much appreciated!
Re: Hint shown when hovering
Hi,
I'm afraid your images didn't come through in your post.
The Dialogue System Extras page has a Hover Example (direct download) that may be helpful.
I'm afraid your images didn't come through in your post.
The Dialogue System Extras page has a Hover Example (direct download) that may be helpful.
Re: Hint shown when hovering
I think now the images should be showing.
And I have looked through the example scene, it looks like I have the same setup.Re: Hint shown when hovering
Hi,
Does the included example scene work correctly? (Hover Response Button Example)
If so, can you identify what you might be doing differently? Did you modify the ActivateOnResponseHover script, other than changing "Description" to "Hint"?
Try adding a Debug.Log() line at the end of your OnHover method, something like:
If you inspect the Tooltip Text GameObject after hovering a response button, does it have the hint text?
Are there any errors or warnings in the Console window?
Does the included example scene work correctly? (Hover Response Button Example)
If so, can you identify what you might be doing differently? Did you modify the ActivateOnResponseHover script, other than changing "Description" to "Hint"?
Try adding a Debug.Log() line at the end of your OnHover method, something like:
Code: Select all
Debug.Log("HINT: " + Field.LookupValue(response.destinationEntry.fields, "Description"));
Are there any errors or warnings in the Console window?
Re: Hint shown when hovering
No, the console does not say anything and the text in the tooltip text does not change. (i.e. it is always empty)
the code was not change except for the "hint" line of code.
Does ActivationOnResponseHover depend on any pre-requisites?
the code was not change except for the "hint" line of code.
Does ActivationOnResponseHover depend on any pre-requisites?
Last edited by GREI on Thu Jul 13, 2023 10:55 am, edited 1 time in total.
Re: Hint shown when hovering
the example scene works properly though
Re: Hint shown when hovering
Hi,
Did you set up the Event Trigger component like on the example's response button template?
Did you set up the Event Trigger component like on the example's response button template?
Re: Hint shown when hovering
That is what I missed! It works now, thank you!
But I am having trouble parsing Lua code.
Here is the Lua code Here is the error message.
But I am having trouble parsing Lua code.
Here is the Lua code Here is the error message.
Re: Hint shown when hovering
Hi,
What version of the Dialogue System are you using?
Is "NoticedFamiliarityWith27" a Boolean variable or a Text variable?
What version of the Dialogue System are you using?
Is "NoticedFamiliarityWith27" a Boolean variable or a Text variable?
Re: Hint shown when hovering
the version is 2.2.32 and "NoticedFamiliarityWith27" is a Boolean