@@ -186,9 +186,9 @@ private void LoadSettingsConfig()
186186 {
187187 var value = s . Slider . Value ;
188188 if ( value >= 95 )
189- ShowNotice ( "The minimum confidence you have set for Aimmy to be too high and may be unable to detect players." ) ;
189+ new NoticeBar ( "The minimum confidence you have set for Aimmy to be too high and may be unable to detect players." ) . Show ( ) ;
190190 else if ( value <= 35 )
191- ShowNotice ( "The minimum confidence you have set for Aimmy may be too low can cause false positives." ) ;
191+ new NoticeBar ( "The minimum confidence you have set for Aimmy may be too low can cause false positives." ) . Show ( ) ;
192192 } ;
193193 } )
194194 . AddToggle ( "Mouse Background Effect" , t => uiManager . T_MouseBackgroundEffect = t )
@@ -248,11 +248,11 @@ private void LoadDisplaySelectMenu()
248248 {
249249 DisplayManager . RefreshDisplays ( ) ;
250250 uiManager . DisplaySelector . RefreshDisplays ( ) ;
251- ShowNotice ( "Display list refreshed successfully" ) ;
251+ new NoticeBar ( "Display list refreshed successfully" ) . Show ( ) ;
252252 }
253253 catch ( Exception ex )
254254 {
255- ShowNotice ( $ "Error refreshing displays: { ex . Message } ") ;
255+ new NoticeBar ( $ "Error refreshing displays: { ex . Message } ") . Show ( ) ;
256256 }
257257 } ;
258258 DisplaySelectMenu . Children . Insert ( insertIndex + 1 , refreshButton ) ;
@@ -276,7 +276,7 @@ private void LoadThemeMenu()
276276 uiManager . ThemeColorWheel = new AColorWheel ( ) ;
277277
278278 // Insert before separator
279- var insertIndex = ThemeMenu . Children . Count - 1 ;
279+ var insertIndex = ThemeMenu . Children . Count - 2 ;
280280 ThemeMenu . Children . Insert ( insertIndex , uiManager . ThemeColorWheel ) ;
281281 }
282282
@@ -290,7 +290,7 @@ private void OnDisplayChanged(object? sender, DisplayChangedEventArgs e)
290290 {
291291 try
292292 {
293- ShowNotice ( $ "AI focus switched to Display { e . DisplayIndex + 1 } ({ e . Bounds . Width } x{ e . Bounds . Height } )") ;
293+ new NoticeBar ( $ "AI focus switched to Display { e . DisplayIndex + 1 } ({ e . Bounds . Width } x{ e . Bounds . Height } )") . Show ( ) ;
294294 UpdateDisplayRelatedSettings ( e ) ;
295295 }
296296 catch ( Exception ex )
@@ -310,9 +310,6 @@ private async Task ResetToMouseEvent()
310310 _mainWindow ! . uiManager . D_MouseMovementMethod ! . DropdownBox . SelectedIndex = 0 ;
311311 }
312312
313- private void ShowNotice ( string message , int duration = 4000 ) =>
314- new NoticeBar ( message , duration ) . Show ( ) ;
315-
316313 public void Dispose ( )
317314 {
318315 DisplayManager . DisplayChanged -= OnDisplayChanged ;
0 commit comments