/*
  * ===========================================
  * Class: NyaaOutput
  * Description:
  * An object created by NyaaNovel that contains user interaction logic
  * Generates interface via WPF
  * ===========================================
  */
 public NyaaOutput(NyaaNovel novelToControl, MainWindow NyaaDebugPointer)
 {
     InitializeComponent();
     NyaaDebug = NyaaDebugPointer;
     Novel = novelToControl;
     CurrentCharPath = "";
     CurrentBGPath = "";
     Animating = true;
     startStory();
 }
 private void testNovel()
 {
     if (LoadedFile.CompareTo("") != 0)
     {
         loadedNovel = new NyaaNovel(LoadedFile, this);
         DebugMenu.IsEnabled = false;
         StopMenu.IsEnabled = true;
         LastColor = statusRect.Fill;
         statusRect.Fill = new SolidColorBrush(Colors.Red);
         statusLabel.Content = "Debugging";
     }
 }
 private void stopNovel()
 {
     loadedNovel.killNovelWindow();
     loadedNovel = null;
     GC.Collect();
     statusRect.Fill = LastColor;
     statusLabel.Content = "Ready";
     StopMenu.IsEnabled = false;
     DebugMenu.IsEnabled = true;
 }