Ejemplo n.º 1
0
 /*
  * ===========================================
  * 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();
 }
Ejemplo n.º 2
0
 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";
     }
 }
Ejemplo n.º 3
0
 private void stopNovel()
 {
     loadedNovel.killNovelWindow();
     loadedNovel = null;
     GC.Collect();
     statusRect.Fill = LastColor;
     statusLabel.Content = "Ready";
     StopMenu.IsEnabled = false;
     DebugMenu.IsEnabled = true;
 }