コード例 #1
0
ファイル: Zone.cs プロジェクト: Scrivener07/moddingSuite
        public Zone(Editor e, Point p, int index)
        {
            editor = e;
            attachPoint = new VertexMarker();
            attachPoint.setPosition(PanAndZoom.fromLocalToGlobal(p));
            attachPoint.Colour = System.Drawing.Brushes.Green;
            outline = new Outline(p);
            propertypanel = new ZoneProperty(this);

            possession = Possession.Neutral;
            Name = string.Format("Zone {0}", index);
            setSelected(false);
        }
コード例 #2
0
ファイル: Zone.cs プロジェクト: Scrivener07/moddingSuite
        public Zone(Editor e,Area a)
        {
            //name = a.Name;
            editor = e;
            area = a;
            attachPoint = new VertexMarker();
            attachPoint.setPosition(Geometry.Geometry.convertPoint(a.AttachmentPoint));
            attachPoint.Colour = System.Drawing.Brushes.Green;
            outline = new Outline(Geometry.Geometry.getOutline(a.Content));
            propertypanel = new ZoneProperty(this);

            possession = Possession.Neutral;
            Name = string.Format("Zone {0}", a.Id);
            setSelected(false);
        }