@@ -30,6 +30,7 @@ public class TextMeshProUGUIHandler : TypeHandler<TextMeshProUGUI>
3030 { "lineSpacing" , new [ ] { "line-spacing" } } ,
3131 { "lineSpacingAdjustment" , new [ ] { "line-spacing-adjustment" } } ,
3232 { "paragraphSpacing" , new [ ] { "paragraph-spacing" } } ,
33+ { "monochrome" , new [ ] { "monochrome" } } ,
3334 } ;
3435
3536 public override Dictionary < string , Action < TextMeshProUGUI , string > > Setters => new ( )
@@ -55,6 +56,7 @@ public class TextMeshProUGUIHandler : TypeHandler<TextMeshProUGUI>
5556 { "lineSpacing" , new Action < TextMeshProUGUI , string > ( ( textMesh , value ) => textMesh . lineSpacing = Parse . Float ( value ) ) } ,
5657 { "lineSpacingAdjustment" , new Action < TextMeshProUGUI , string > ( ( textMesh , value ) => textMesh . lineSpacingAdjustment = Parse . Float ( value ) ) } ,
5758 { "paragraphSpacing" , new Action < TextMeshProUGUI , string > ( ( textMesh , value ) => textMesh . paragraphSpacing = Parse . Float ( value ) ) } ,
59+ { "monochrome" , new Action < TextMeshProUGUI , string > ( ( textMesh , value ) => textMesh . font = Parse . Bool ( value ) ? BeatSaberUI . MonochromeTextFont : BeatSaberUI . MainTextFont ) } ,
5860 } ;
5961
6062 private static FontStyles SetStyle ( FontStyles existing , FontStyles modifyStyle , string flag )
0 commit comments