Beispiel #1
0
        public IPlugin CreateUsing(PluginParameter args)
        {
            var filename = Path.GetFileName(args.Filename);
            _file = new DaxWallDefFile(args.Filename);
            Viewer = new DaxWallDefViewer(_file.wallsets, _file._blockIds, args.Zoom, args.ContainerWidth);


            return this;
        }
        public IPlugin CreateUsing(PluginParameter args)
        {
            var filename = Path.GetFileName(args.Filename);

            _file  = new DaxWallDefFile(args.Filename);
            Viewer = new DaxWallDefViewer(_file.wallsets, _file._blockIds, args.Zoom, args.ContainerWidth);


            return(this);
        }
Beispiel #3
0
        private void loadWallSets(string file)
        {
            var path = Path.GetDirectoryName(file);

            for (int n = 0; n < 8; n++)
            {
                var fn = path + "\\WALLDEF" + n + ".DAX";
                if (n == 0) { fn = path + "\\WALLDEF.DAX"; }
                if (System.IO.File.Exists(fn))
                {
                    var dwf = new DaxWallDefFile(fn);
                    int i = 0;
                    foreach (var b in dwf.wallsets)
                    {
                        var id = dwf._blockIds[i];
                        if (!wallsetBitmaps.ContainsKey(id))
                            wallsetBitmaps.Add(id, b);
                        i++;
                    }
                }
            }
        }