Customising Invalid Entries
Posted: Thu Jun 29, 2017 11:29 am
Hey, I've set up a project where invalid entries are shown, but wanted to customise them a bit. So far I've set up a script in ResponseButtonTemplate that runs as each button is created, and if the entry is invalid (it bases this on whether the Button is interactable or not), enables a small tooltip giving a message about why the response is disabled.
So far so good, but the next step is to only show certain invalid responses - there's some responses I never want to show if they fail the condition check. I was wondering if there's a way of retrieving the current ID of the response within my button script? This way I could base a check upon it - e.g. if ID = 15, set Button to inactive. Another option is to base the check upon a new dialogue field (e.g. a "NeverShowIfInvalid" bool), though I'd still need to access it as each button is created.
Hope this makes sense! If there's another way I haven't thought of, please let me know
So far so good, but the next step is to only show certain invalid responses - there's some responses I never want to show if they fail the condition check. I was wondering if there's a way of retrieving the current ID of the response within my button script? This way I could base a check upon it - e.g. if ID = 15, set Button to inactive. Another option is to base the check upon a new dialogue field (e.g. a "NeverShowIfInvalid" bool), though I'd still need to access it as each button is created.
Hope this makes sense! If there's another way I haven't thought of, please let me know