@@ -203,7 +203,7 @@ private void BuildRightSubHeader(int bodyY)
203203 x : M , w : statusX - M , h : SUBHDR ) ;
204204 }
205205
206- // ── Settings strip: Ghost [ON/OFF] | Alpha [-] 0.40 [+] | Color ■■■■■■
206+ // ── Settings strip: Tracking [ON/OFF] | Ghost [ON/OFF] | Alpha [-] 0.40 [+] | Color ■■■■■■
207207 private void BuildSettingsBar ( )
208208 {
209209 var bar = MakeGO ( "SettingsBar" , panelGO ! . transform ) ;
@@ -216,6 +216,27 @@ private void BuildSettingsBar()
216216 int stepW = UIStyle . W ( 22 ) ;
217217 int x = M ;
218218
219+ // Tracking: [ON/OFF] - master switch for recording
220+ int trackLblW = UIStyle . W ( 52 ) ;
221+ MakeLbl ( bar . transform , "Tracking:" , UIStyle . FontSizeSm - 1 ,
222+ UIStyle . Subtext , TextAnchor . MiddleLeft , x : x , y : 0 , w : trackLblW , h : STGSH ) ;
223+ x += trackLblW + M / 2 ;
224+
225+ var trackingBtn = MakeGO ( "TrackingToggle" , bar . transform ) ;
226+ Img ( trackingBtn , GhostSettings . TrackingEnabled
227+ ? UIStyle . Accent with { a = 0.22f }
228+ : UIStyle . Red with { a = 0.22f } ) ;
229+ Btn ( trackingBtn , OnTrackingToggle ) ;
230+ Rect ( trackingBtn , x , btnY , UIStyle . W ( 46 ) , btnH ) ;
231+ trackingToggleLbl = MakeLbl ( trackingBtn . transform ,
232+ GhostSettings . TrackingEnabled ? "ON" : "OFF" , UIStyle . FontSizeSm - 1 ,
233+ GhostSettings . TrackingEnabled ? UIStyle . Accent : UIStyle . Red ,
234+ TextAnchor . MiddleCenter , fill : true ) ;
235+ trackingToggleBtnImg = trackingBtn . GetComponent < Image > ( ) ;
236+ x += UIStyle . W ( 46 ) ;
237+
238+ x = BarSeparator ( bar . transform , x , btnY , btnH ) ;
239+
219240 // Ghost: [ON/OFF]
220241 MakeLbl ( bar . transform , "Ghost:" , UIStyle . FontSizeSm - 1 ,
221242 UIStyle . Subtext , TextAnchor . MiddleLeft , x : x , y : 0 , w : lblW , h : STGSH ) ;
0 commit comments