public static void DrawVSProMapsOut(VSProMapsOut gen) { #if VEGETATION_STUDIO_PRO VegetationPackagePro package = null; if (GraphWindow.current.mapMagic != null) { package = GraphWindow.current.mapMagic.globals.vegetationPackage as VegetationPackagePro; using (Cell.LineStd) GeneratorDraw.DrawGlobalVar(ref package, "Package"); GraphWindow.current.mapMagic.globals.vegetationPackage = package; } //populating masks list to choose from if (package != null) { int masksCount = package.TextureMaskGroupList.Count; if (maskNames == null || maskNames.Length != masksCount) { maskNames = new string[masksCount]; } for (int i = 0; i < masksCount; i++) { maskNames[i] = (i + 1).ToString() + ". " + package.TextureMaskGroupList[i].TextureMaskName + " - " + package.TextureMaskGroupList[i].TextureMaskType; } } using (Cell.LineStd) { if (package != null) { Draw.PopupSelector(ref gen.maskGroup, maskNames, "Group"); } else { Draw.Field(ref gen.maskGroup, "Group"); } } using (Cell.LineStd) Draw.PopupSelector(ref gen.textureChannel, channelNames, "Channel"); #else using (Cell.LinePx(76)) Draw.Helpbox("Vegetation Studio Pro doesn't seem to be installed, or Vegetation Studio Pro compatibility is not enabled in settings"); using (Cell.LineStd) Draw.Field(ref gen.maskGroup, "Group"); using (Cell.LineStd) Draw.PopupSelector(ref gen.textureChannel, channelNames, "Channel"); #endif }
public static void DrawVSProMapsOut(VSProMapsOut gen) { #if VEGETATION_STUDIO_PRO Cell.current.fieldWidth = 0.49f; using (Cell.LinePx(0)) using (Cell.Padded(1, 1, 0, 0)) { if (GraphWindow.current.mapMagic != null) { VegetationSystemPro system = GraphWindow.current.mapMagic.globals.vegetationSystem as VegetationSystemPro; using (Cell.LineStd) GeneratorDraw.DrawGlobalVar(ref system, "System"); GraphWindow.current.mapMagic.globals.vegetationSystem = system; } VegetationPackagePro package = null; if (GraphWindow.current.mapMagic != null) { package = GraphWindow.current.mapMagic.globals.vegetationPackage as VegetationPackagePro; using (Cell.LineStd) GeneratorDraw.DrawGlobalVar(ref package, "Package"); GraphWindow.current.mapMagic.globals.vegetationPackage = package; } //populating masks list to choose from if (package != null) { int masksCount = package.TextureMaskGroupList.Count; if (maskNames == null || maskNames.Length != masksCount) { maskNames = new string[masksCount]; } for (int i = 0; i < masksCount; i++) { maskNames[i] = (i + 1).ToString() + ". " + package.TextureMaskGroupList[i].TextureMaskName + " - " + package.TextureMaskGroupList[i].TextureMaskType; } } Cell.EmptyLinePx(4); using (Cell.LineStd) { if (package != null) { Draw.PopupSelector(ref gen.maskGroup, maskNames, "Group"); } else { Draw.Field(ref gen.maskGroup, "Group"); } } using (Cell.LineStd) Draw.PopupSelector(ref gen.textureChannel, channelNames, "Channel"); } Cell.EmptyLinePx(3); using (Cell.LineStd) using (new Draw.FoldoutGroup(ref gen.guiAdvanced, "Advanced", isLeft: false, padding: 1)) if (gen.guiAdvanced) { if (GraphWindow.current.mapMagic != null) { using (Cell.LineStd) GeneratorDraw.DrawGlobalVar( ref GraphWindow.current.mapMagic.globals.vegetationSystemCopy, "Copy VS"); } using (Cell.LineStd) Draw.Field(ref gen.outputLevel, "Out Level"); } #else using (Cell.LinePx(76)) Draw.Helpbox("Vegetation Studio Pro doesn't seem to be installed, or Vegetation Studio Pro compatibility is not enabled in settings"); using (Cell.LineStd) Draw.Field(ref gen.maskGroup, "Group"); using (Cell.LineStd) Draw.PopupSelector(ref gen.textureChannel, channelNames, "Channel"); #endif }