예제 #1
0
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here
            mapEd = new Map ();
            drawMapSeg = new DrawMapSegment (mapEd.SegmentDefinitions, 500, 30, 50, 30, 40);
            segIndex = -1;
            mapSegIndex = -1;
            currentLayer = 0f;
            layer = new string[]{ "back", "mid", "front" };
            selectType = new string[]{"col","select" };
            layerName = layer[0];
            selectName = selectType [1];

            mouseClick = false;
            dropSegment = false;
            holdSegment = false;
            mouseDrag = false;

            drawType = DrawingMode.SegmentSelection;
            //Components.Add (new CollisionRectangle (this));

            base.Initialize ();
        }
예제 #2
0
 public void Init()
 {
     map = new Map ();
     map.AddSeg (1f, 1, 45, 45);
     pallet =new DrawMapSegment (map.SegmentDefinitions, 500, 30, 50, 30, 40);
 }