@@ -226,6 +226,9 @@ class MainView : MonoBehaviour
226226 Label m_AudioHeader ;
227227 Label m_AppearanceHeader ;
228228 Label m_SettingsHeader ;
229+ Label m_BoldTextLabel ;
230+ Label m_FontScaleLabel ;
231+
229232 VisualElement m_LastView ;
230233 LetterCardListModel m_Model = new ( ) ;
231234
@@ -443,6 +446,9 @@ void SetupUI()
443446 m_SettingsHeader = m_SettingsView . Q < Label > ( "settingsHeader" ) ;
444447 m_SettingsHeader . GetOrCreateAccessibleProperties ( ) . role = AccessibilityRole . Header ;
445448
449+ m_BoldTextLabel = m_SettingsView . Q < Label > ( "boldTextLabel" ) ;
450+ m_FontScaleLabel = m_SettingsView . Q < Label > ( "fontScaleLabel" ) ;
451+
446452 // m_SettingsPopup = new PopupWindow();
447453 // m_SettingsPopup.content = m_SettingsView;
448454
@@ -531,6 +537,8 @@ void OnBoldTextStatusChanged(bool boldTextStatus)
531537 // m_MainView.panel.visualTree.style.unityFontStyleAndWeight = boldTextStatus ? FontStyle.Bold : FontStyle.Normal;
532538
533539 m_MainView . panel . visualTree . EnableInClassList ( "bold-text" , boldTextStatus ) ;
540+
541+ m_BoldTextLabel . text = LocalizationSettings . StringDatabase . GetLocalizedString ( "Game Text" , boldTextStatus ? "SETTING_ON" : "SETTING_OFF" ) ;
534542 }
535543
536544 void OnClosedCaptioningStatusChanged ( bool closedCaptioningStatus )
@@ -541,6 +549,8 @@ void OnFontScaleValueChanged(float fontScale)
541549 {
542550 m_MainView . panel . visualTree . style . fontSize = 64 * fontScale ;
543551 m_LetterCardContainer . fontScale = fontScale ;
552+
553+ m_FontScaleLabel . text = $ "{ fontScale : 0.00} ";
544554 }
545555
546556 void OnGameStateChanged ( Gameplay . State state )
0 commit comments