Exemple #1
0
        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            SaveBotWindowPosition();

            KeyboardHook.Disable();

            Overlay?.Exit();
            AmeisenBot?.Dispose();

            InfoWindow?.Close();
            MapWindow?.Close();
            DevToolsWindow?.Close();
            RelationshipWindow?.Close();

            if (StateConfigWindows != null)
            {
                foreach (Window window in StateConfigWindows.Values)
                {
                    window.Close();
                }
            }

            SaveConfig();

            AmeisenLogger.I.Stop();
        }
Exemple #2
0
        private void ButtonToggleMapWindow_Click(object sender, RoutedEventArgs e)
        {
            if (MapWindow == null)
            {
                MapWindow = new MapWindow(AmeisenBot);
            }

            MapWindow.Show();
        }
Exemple #3
0
        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            AmeisenBot?.Stop();
            Overlay?.Exit();
            InfoWindow?.Close();
            MapWindow?.Close();
            DevToolsWindow?.Close();

            if (StateConfigWindows != null)
            {
                foreach (Window window in StateConfigWindows.Values)
                {
                    window.Close();
                }
            }

            SaveConfig();
        }
Exemple #4
0
 private void ButtonToggleMapWindow_Click(object sender, RoutedEventArgs e)
 {
     MapWindow ??= new(AmeisenBot);
     MapWindow.Show();
 }