1- using System . Collections . Generic ;
1+ using System ;
2+ using System . Collections . Generic ;
23using DynamicForms . Library . Core ;
34using DynamicForms . Library . Core . Attributes ;
45using MSURandomizerLibrary ;
@@ -12,36 +13,44 @@ namespace TrackerCouncil.Smz3.Data.ViewModels;
1213[ DynamicFormGroupBasic ( DynamicFormLayout . TwoColumns , "Bottom" ) ]
1314public class OptionsWindowTrackerOptions
1415{
15- [ DynamicFormFieldColorPicker ( label : "Tracker background color:" ) ]
16+ [ DynamicFormFieldColorPicker ( order : 0 , label : "Tracker background color:" ) ]
1617 public byte [ ] TrackerBGColor { get ; set ; } = [ 0xFF , 0x21 , 0x21 , 0x21 ] ;
1718
18- [ DynamicFormFieldCheckBox ( checkBoxText : "Render shadows" , alignment : DynamicFormAlignment . Right ) ]
19+ [ DynamicFormFieldCheckBox ( order : 1 , checkBoxText : "Render shadows" , alignment : DynamicFormAlignment . Right ) ]
1920 public bool TrackerShadows { get ; set ; } = true ;
2021
21- [ DynamicFormFieldComboBox ( label : "Tracker speech window image pack:" ,
22- comboBoxOptionsProperty : nameof ( TrackerSpeechImagePacks ) ) ]
22+ [ DynamicFormFieldComboBox ( order : 2 , label : "Tracker speech window image pack:" ,
23+ comboBoxOptionsProperty : nameof ( TrackerSpeechImagePacks ) , platforms : DynamicFormPlatform . Windows & DynamicFormPlatform . Linux ) ]
2324 public string TrackerSpeechImagePack { get ; set ; } = "Default" ;
2425
25- [ DynamicFormFieldColorPicker ( label : "Tracker speech window color:" ) ]
26+ [ DynamicFormFieldColorPicker ( order : 3 , label : "Tracker speech window color:" , platforms : DynamicFormPlatform . Windows & DynamicFormPlatform . Linux ) ]
2627 public byte [ ] TrackerSpeechBGColor { get ; set ; } = [ 0xFF , 0x48 , 0x3D , 0x8B ] ;
2728
28- [ DynamicFormFieldCheckBox ( checkBoxText : "Enable speech bounce animation" , alignment : DynamicFormAlignment . Right ) ]
29+ [ DynamicFormFieldCheckBox ( order : 4 , checkBoxText : "Enable speech bounce animation" , alignment : DynamicFormAlignment . Right , platforms : DynamicFormPlatform . Windows & DynamicFormPlatform . Linux ) ]
2930 public bool TrackerSpeechEnableBounce { get ; set ; } = true ;
3031
31- [ DynamicFormFieldSlider ( minimumValue : 0 , maximumValue : 100 , decimalPlaces : 1 , incrementAmount : .1 , suffix : "%" , label : "Tracker recognition threshold:" ) ]
32+ [ DynamicFormFieldSlider ( order : 5 , minimumValue : 0 , maximumValue : 100 , decimalPlaces : 1 , incrementAmount : .1 , suffix : "%" , label : "Tracker recognition threshold:" , platforms : DynamicFormPlatform . Windows & DynamicFormPlatform . Linux ) ]
3233 public float TrackerRecognitionThreshold { get ; set ; }
3334
34- [ DynamicFormFieldSlider ( minimumValue : 0 , maximumValue : 100 , decimalPlaces : 1 , incrementAmount : .1 , suffix : "%" , label : "Tracker execution threshold:" ) ]
35+ [ DynamicFormFieldSlider ( order : 6 , minimumValue : 0 , maximumValue : 100 , decimalPlaces : 1 , incrementAmount : .1 , suffix : "%" , label : "Tracker execution threshold:" , platforms : DynamicFormPlatform . Windows & DynamicFormPlatform . Linux ) ]
3536 public float TrackerConfidenceThreshold { get ; set ; }
3637
37- [ DynamicFormFieldSlider ( minimumValue : 0 , maximumValue : 100 , decimalPlaces : 1 , incrementAmount : .1 , suffix : "%" , label : "Tracker spoiler threshold:" ) ]
38+ [ DynamicFormFieldSlider ( order : 7 , minimumValue : 0 , maximumValue : 100 , decimalPlaces : 1 , incrementAmount : .1 , suffix : "%" , label : "Tracker spoiler threshold:" , platforms : DynamicFormPlatform . Windows & DynamicFormPlatform . Linux ) ]
3839 public float TrackerConfidenceSassThreshold { get ; set ; }
3940
40- [ DynamicFormFieldComboBox ( label : "Tracker voice frequency:" ) ]
41+ [ DynamicFormFieldSlider ( order : 8 , minimumValue : 0 , maximumValue : 100 , decimalPlaces : 0 , incrementAmount : 1 , suffix : "%" , label : "Text to speech volume:" , platforms : DynamicFormPlatform . Windows & DynamicFormPlatform . Linux ) ]
42+ public int TextToSpeechVolume { get ; set ; }
43+
44+ #pragma warning disable CS0067 // Event is never used
45+ [ DynamicFormFieldButton ( order : 9 , buttonText : "Test Tracker Voice" , alignment : DynamicFormAlignment . Right , platforms : DynamicFormPlatform . Windows & DynamicFormPlatform . Linux ) ]
46+ public event EventHandler ? TestTextToSpeechPressed ;
47+ #pragma warning restore CS0067 // Event is never used
48+
49+ [ DynamicFormFieldComboBox ( label : "Tracker voice frequency:" , platforms : DynamicFormPlatform . Windows & DynamicFormPlatform . Linux ) ]
4150 public TrackerVoiceFrequency TrackerVoiceFrequency { get ; set ; }
4251
4352 [ DynamicFormFieldComboBox ( label : "Speech recognition mode:" ,
44- comboBoxOptionsProperty : nameof ( SpeechRecognitionTypes ) ) ]
53+ comboBoxOptionsProperty : nameof ( SpeechRecognitionTypes ) , platforms : DynamicFormPlatform . Windows & DynamicFormPlatform . Linux ) ]
4554 public string SpeechRecognitionMode { get ; set ; } = "" ;
4655
4756 [ DynamicFormFieldComboBox ( label : "Push-to-talk key:" , platforms : DynamicFormPlatform . Windows ) ]
@@ -50,7 +59,7 @@ public class OptionsWindowTrackerOptions
5059 [ DynamicFormFieldComboBox ( label : "Push-to-talk device:" , comboBoxOptionsProperty : nameof ( AudioDevices ) , platforms : DynamicFormPlatform . Windows ) ]
5160 public string PushToTalkDevice { get ; set ; } = "" ;
5261
53- [ DynamicFormFieldNumericUpDown ( minValue : 0 , label : "Undo expiration time:" ) ]
62+ [ DynamicFormFieldNumericUpDown ( minValue : 0 , label : "Undo expiration time:" , platforms : DynamicFormPlatform . Windows & DynamicFormPlatform . Linux ) ]
5463 public int UndoExpirationTime { get ; set ; } = 3 ;
5564
5665 [ DynamicFormFieldFilePicker ( FilePickerType . Folder , label : "Auto tracker scripts folder:" , dialogText : "Select auto tracker scripts folder" ) ]
0 commit comments