public override void ProcessInput(Event ev)
        {
            if (!base.CheckCanInteract())
            {
                return;
            }

            MakeAllowedAreaListFloatMenu(delegate(Area a)
            {
                RectUtils.EdgeFromArea(a.ActiveCells.ToList(), out int height, out int width);
                List <IntVec3> cellExport = RectUtils.AreaToSquare(a, height, width);

                Dialog_ExportWindow exportWindow = new Dialog_ExportWindow(base.Map, cellExport, a);
                Find.WindowStack.Add(exportWindow);
            }, false, true, base.Map);
        }
Beispiel #2
0
        public override void ProcessInput(Event ev)
        {
            if (!base.CheckCanInteract())
            {
                return;
            }
            if (Designator_ExportToXmlFromArea.selectedArea != null)
            {
                base.ProcessInput(ev);
            }

            Designator_ExportToXmlFromArea.MakeAllowedAreaListFloatMenu(delegate(Area a)
            {
                KCSG_Utilities.EdgeFromArea(a.ActiveCells.ToList(), out int height, out int width);
                List <IntVec3> cellExport = KCSG_Utilities.AreaToSquare(a, height, width);

                Dialog_ExportWindow exportWindow = new Dialog_ExportWindow(base.Map, cellExport);
                Find.WindowStack.Add(exportWindow);
            }, false, true, base.Map);
        }
        public override void DesignateMultiCell(IEnumerable <IntVec3> cells)
        {
            Dialog_ExportWindow exportWindow = new Dialog_ExportWindow(base.Map, cells.ToList());

            Find.WindowStack.Add(exportWindow);
        }