Skip to main content

AccessibilityFeaturesBoard

A class in Root.Township, the global namespace.

Popup board asking the player whether to turn on accessibility features. Saves the choice to the game config.

Constructors​

MemberWhat it is
AccessibilityFeaturesBoard()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

5 private and internal fields
MemberWhat it is
private PhysicalButton acceptButtonButton that turns the features on.
private string acceptedMessageMessage shown after accepting.
private PhysicalButton closeButtonButton that closes the board after a choice.
private PhysicalButton declineButtonButton that turns the features off.
private string declinedMessageMessage shown after declining.

Methods​

5 private and internal methods
MemberWhat it is
private void Accept()Turns accessibility features on and shows the accepted message.
private void Awake()Hooks the accept and decline buttons and hides the close button.
private void Decline()Turns accessibility features off and shows the declined message.
private void SetValue(bool settingValue)Sets HasAccessibilityFeatures in the game config, notifies listeners and saves.
private void ShowCloseButton()Hides accept and decline and shows the close button.