Skip to content

Commit 704c0d9

Browse files
author
Bianca Marina Stana
committed
Fixed the clue text not being read by Narrator
1 parent 7bfe76d commit 704c0d9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Assets/Scripts/UITk/MainView.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -372,12 +372,12 @@ void SetupUI()
372372
m_GameView = m_StackView.Q("gameView");
373373

374374
m_ClueLabel = m_GameView.Q<Label>("clueLabel");
375-
var localizedClue = new LocalizedString
376-
{
377-
TableReference = "Game Text",
378-
TableEntryReference = "CLUE_LABEL"
379-
};
380-
localizedClue.StringChanged += s => m_ClueLabel.GetOrCreateAccessibleProperties().label = s;
375+
// var localizedClue = new LocalizedString
376+
// {
377+
// TableReference = "Game Text",
378+
// TableEntryReference = "CLUE_LABEL"
379+
// };
380+
// localizedClue.StringChanged += s => m_ClueLabel.GetOrCreateAccessibleProperties().label = s;
381381

382382
m_SuccessPill = m_GameView.Q("successPill");
383383
m_SuccessPill.GetOrCreateAccessibleProperties().ignored = true;
@@ -613,7 +613,7 @@ void ShowResults(int orderedWordCount, int totalWordCount)
613613
public void OnCurrentWordIndexChanged(int index)
614614
{
615615
m_ClueLabel.text = gameplay.currentWord.clue;
616-
m_ClueLabel.GetOrCreateAccessibleProperties().value = gameplay.currentWord.clue;
616+
// m_ClueLabel.GetOrCreateAccessibleProperties().label = gameplay.currentWord.clue;
617617

618618
ShowOrHideClue();
619619
}

0 commit comments

Comments
 (0)