Example #1
0
 public NyaaChapter(String Name, String Location, String LoadingScreenLocation, String rootDirectory, MainWindow NyaaDebugPointer)
 {
     sceneLoc = 0;
     ChapterName = Name;
     ChapterLocation = Location;
     ChapterLoadingScreenLocation = LoadingScreenLocation;
     NyaaDebug = NyaaDebugPointer;
     // TN: load chapter xml
     ChapterXml = new XmlDocument();
     if (File.Exists(Location))
     {
         NyaaDebug.addToConsole("Notice: File found! Loading: " + Location);
         try
         {
             ChapterXml.Load(Location);
             NyaaDebug.addToConsole("Notice: Chapter File (successfully) loaded!");
             NyaaDebug.addToConsole("Notice: ChapterObj created for: " + ChapterName);
             loadScenes();
         }
         catch (XmlException ex)
         {
             NyaaDebug.addToConsole(String.Format("FATAL: Your " + Location + " is broken: {0}", ex.Message));
         }
     }
     else
     {
         NyaaDebug.addToConsole("FATAL: Failed to load file");
     }
 }
Example #2
0
 public NyaaNovel(String novelLocation, MainWindow StudioWindow)
 {
     NyaaDebug = StudioWindow;
     curLocationChapter = 0;
     rootLocation = novelLocation;
     rootDirectory = rootLocation.Substring(0, rootLocation.LastIndexOf("\\"));
     loadChapers();
 }
Example #3
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();
 }
Example #4
0
 public NyaaScene(String Transition, String Background, XmlNodeList Content, String inLocation, MainWindow NyaaDebugPointer)
 {
     Location = 0;
     sceneBackground = Background;
     sceneTransition = Transition;
     sceneContent = Content;
     NyaaDebug = NyaaDebugPointer;
     Length = sceneContent.Count;
     ChapterLocation = inLocation;
     loadDialog();
 }