NodeCanvas Forums › Support › Custom buttons in DT
Hi
I’m getting stuck trying to customize the response buttons from the dialogue tree example.
I need a different button (sprite) for yes & no (no text required). Started by making 2 new option button prefabs then
tried adapting OnMultipleChoiceRequest within DialogueUGUI… but not successful.
Any help would be greatly appreciated!
Hey,
This would require a custom dialogue UI implementation, probably one created based on the existing one. What you could do is to add two Image variables to the UI script, one for Yes and another for No. Then change the Image used on the option button gameobject instantiated and used, based on the statement.text (or even the statement.meta). If you want so, I can certainly take a look at this tomorrow and provide you with a more complete example for your convenience if so required.
Let me know.
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh