public static PositioningSettingsSpline CreatePosSettings(MapSplineOutMark1 output)
        {
            PositioningSettingsSpline ps = new PositioningSettingsSpline
            {
                objHeight            = output.objHeight,
                relativeHeight       = output.relativeHeight,
                guiHeight            = output.guiHeight,
                isRandomYaw          = output.isRandomYaw,
                useRotation          = output.useRotation,
                takeTerrainNormal    = output.takeTerrainNormal,
                rotateYonly          = output.rotateYonly,
                regardPrefabRotation = output.regardPrefabRotation,
                guiRotation          = output.guiRotation,
                offset              = output.offset,
                offsetRange         = output.offsetRange,
                mergeSegments       = output.mergeSegments,
                spacingFromScale    = output.spacingFromScale,
                spacing             = output.spacing,
                spacingRange        = output.spacingRange,
                guiPositionSettings = output.guiPositionSettings,
                scale             = output.scale,
                scaleRange        = output.scaleRange,
                useScale          = output.useScale,
                scaleYonly        = output.scaleYonly,
                regardPrefabScale = output.regardPrefabScale,
                guiScale          = output.guiScale
            };

            return(ps);
        }
Beispiel #2
0
        public static void DrawObjectsOutput(MapSplineOutMark1 gen)
        {
            if (gen.posSettings == null)
            {
                gen.posSettings = MapSplineOutMark1.CreatePosSettings(gen);
            }

            using (Cell.LineStd)
                DrawObjectPrefabs(ref gen.prefabs, gen.guiMultiprefab, treeIcon: true);

            gen.allowReposition = false;


            using (Cell.LinePx(0))
                using (Cell.Padded(2, 2, 0, 0))
                {
                    using (Cell.LineStd) Draw.ToggleLeft(ref gen.guiMultiprefab, "Multi-Prefab");

                    Cell.EmptyRowPx(4);
                    DrawPositioningSettings(gen.posSettings, billboardRotWaring: false);
                }
        }