Beispiel #1
0
        public DocumentView Open(string fileName)
        {
            DocumentView view = new MapEditView();

            view.Load(fileName);
            return(view);
        }
Beispiel #2
0
        private static void menuMapProps_Click(object sender, EventArgs e)
        {
            MapEditView editor = PluginManager.Core.ActiveDocument as MapEditView;

            using (MapPropertiesForm form = new MapPropertiesForm(editor.Map))
            {
                if (form.ShowDialog() == DialogResult.OK)
                {
                    editor.SetTileSize(editor.Map.Tileset.TileWidth, editor.Map.Tileset.TileHeight);
                }
            }
        }
Beispiel #3
0
        private static void menuRecenter_Click(object sender, EventArgs e)
        {
            MapEditView editor = PluginManager.Core.ActiveDocument as MapEditView;

            editor?.MapControl.CenterMap();
        }
Beispiel #4
0
        public DocumentView New()
        {
            DocumentView view = new MapEditView();

            return(view.NewDocument() ? view : null);
        }
Beispiel #5
0
 public DocumentView Open(string fileName)
 {
     DocumentView view = new MapEditView();
     view.Load(fileName);
     return view;
 }
Beispiel #6
0
 public DocumentView New()
 {
     DocumentView view = new MapEditView();
     return view.NewDocument() ? view : null;
 }