Esempio n. 1
0
        private static Button MakeButton(int i)
        {
            Button button = new Button()
            {
                Content    = $"Player {i}",
                FontSize   = 26,
                Height     = 65,
                Background = new SolidColorBrush(Color.FromArgb(100, 100, 100, 100)),
            };

            button.Click += (_, _) =>
            {
                CameraWriteController.SetCameraMode(CameraWriteController.CameraMode.pov, i);
                Program.FocusEchoVR();
            };
            return(button);
        }
Esempio n. 2
0
 private void GoToDischolder(object sender, RoutedEventArgs e)
 {
     CameraWriteController.SpectatorCamFindPlayer(Program.lastFrame?.GetAllPlayers()?.Find(p => p.possession)?.name);
 }
Esempio n. 3
0
 private void ToggleUI(object sender, RoutedEventArgs e)
 {
     CameraWriteController.SetUIVisibility(!uiVisible);
     uiVisible = !uiVisible;
 }
Esempio n. 4
0
 private void ToggleMap(object sender, RoutedEventArgs e)
 {
     CameraWriteController.SetMinimapVisibility(!minimapVisible);
     minimapVisible = !minimapVisible;
 }