コード例 #1
0
        //Uses box house SGB and replaces required sgbs with the given house ID's appropriate parts
        private void HouseRecSgb_Click(object sender, RoutedEventArgs e)
        {
            if (maplist == null)
            {
                maplist = new StringBuilder();
            }

            maplist.Clear();

            String[] poop = box.Text.Split(new[] { Environment.NewLine }, StringSplitOptions.None);
            box.Clear();

            List <String> list = new List <string>();

            foreach (String line in poop)
            {
                if (realm.Packs.FileExists(line.Trim()))
                {
                    SaintCoinach.IO.File f = realm.Packs.GetFile(line.Trim());
                    SgbFile sgb            = new SgbFile(f);

                    //ExportSgbFileUHousing(houseIDBox.Text, "null", sgb, 0, Vector3.Zero, Vector3.Zero, Vector3.One);
                }
            }

            foreach (String path in list)
            {
                box.Text += path + Environment.NewLine;
            }
        }
コード例 #2
0
        private void TextureOutBtn_Click(object sender, RoutedEventArgs e)
        {
            SaintCoinach.IO.File f = realm.Packs.GetFile(pathBox.Text.Trim());
            String filename        = pathBox.Text.Trim().Replace("/", "_");

            ImageFile img = new ImageFile(f.Pack, f.CommonHeader);

            img.GetImage().Save(mapPath + filename + ".png");
        }
コード例 #3
0
        //Replaces all sgbs in box with their model contents
        private void ResolveBoxSgbs_Click(object sender, RoutedEventArgs e)
        {
            String[] sgbs = box.Text.Split(new[] { Environment.NewLine }, StringSplitOptions.None);
            box.Clear();

            List <String> list = new List <string>();

            foreach (String line in sgbs)
            {
                if (realm.Packs.FileExists(line.Trim()))
                {
                    SaintCoinach.IO.File f = realm.Packs.GetFile(line.Trim());
                    SgbFile sgb            = new SgbFile(f);

                    getGimmickPaths(sgb, ref list);
                }
            }

            foreach (String path in list)
            {
                box.Text += path + Environment.NewLine;
            }
        }