Accessibility Option

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Albyd
Posts: 29
Joined: Thu Jul 21, 2022 4:46 pm

Accessibility Option

Post by Albyd »

Hi there,
I'm creating some accessibility options for the game I'm currently working on.
This will be a game for people with special needs, some of them with severe visual impairments.
Given this reason, I'm currently thinking of creating an option window that will allow the user to choose between different version of the Dialogue interface.
Is there a way to make this change happen on a click of a button and moreover, will this change be stored when I save the game?
What would be the best way of doing it?

Many thanks,
Alberto

PS: sorry for the number of questions
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Accessibility Option

Post by Tony Li »

Hi Alberto,

You can use the C# method DialogueManager.UseDialogueUI(ui) to assign a different UI.
Albyd
Posts: 29
Joined: Thu Jul 21, 2022 4:46 pm

Re: Accessibility Option

Post by Albyd »

Thanks, bud, it works.
What if i want to make a button that changes the UI color when the dialogue is playing?
Currently, the button that changes the colour of the UI is located Outside the Dialogue UI Prefab, so I can't show the changes in the UI in real-time.

Is there a way to do this?
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Accessibility Option

Post by Tony Li »

Hi,

You can access the dialogue UI in C# using DialogueManager.standardDialogueUI. For example, to change the color of the main Dialogue Panel's image:

Code: Select all

DialogueManager.standardDialogueUI.conversationUIElements.mainPanel.GetComponent<Image>().color = Color.red;
Post Reply