Example #1
0
        public DebugWindow(MiraiVn novel, string path, List <MainWindow.fileData> bg, List <MainWindow.fileData> sprite, List <MainWindow.fileData> music)
        {
            InitializeComponent();

            mirai         = novel;
            VnPath        = path;
            BgContent     = bg;
            SpriteContent = sprite;
            MusicContent  = music;
            LineReaded    = 0;

            LoadNovel();
        }
Example #2
0
        private void OpenProject_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog FileLocation = new OpenFileDialog();

            FileLocation.ShowDialog();

            if (FileLocation.FileName.CompareTo("") != 0)
            {
                ProjectFile = FileLocation.FileName;
                RootDir     = ProjectFile.Substring(0, ProjectFile.LastIndexOf("\\"));

                Mirai      = new MiraiVn(ProjectFile, BgData, SpriteData, MusicData);
                miraiBuild = new MiraiBuild(ProjectFile);

                ShowDir(RootDir);

                SaveAsMenu.IsEnabled = true;
            }
        }