public override void DrawnNodeProperties(GUISkin skin) { base.DrawnNodeProperties(skin); FieldInspectorHelper.StartSection(); lockXYZ = FieldInspectorHelper.ShowBoolField("Lock XYZ", lockXYZ, skin); if (!lockXYZ) { FieldInspectorHelper.ShowFlexibleVector3Field("Size", fl_size3D, skin); } else { FieldInspectorHelper.ShowFlexibleFloatField("Size", fl_size, skin); } FieldInspectorHelper.EndSection(); }
public override void DrawnNodeProperties(GUISkin skin) { base.DrawnNodeProperties(skin); FieldInspectorHelper.StartSection(); FieldInspectorHelper.ShowFlexibleFloatField("Radius", fl_radius, skin); FieldInspectorHelper.ShowFlexibleFloatField("Radius Thickness", fl_radiusThickness, skin); FieldInspectorHelper.ShowFlexibleFloatField("Arc", fl_arc, skin); FieldInspectorHelper.ShowFlexibleFloatField("Arc Offset", fl_arcOffset, skin); locationMode = (SpawnLocationMode)FieldInspectorHelper.ShowEnumField("Mode", locationMode, skin); FieldInspectorHelper.EndSection(); switch (locationMode) { case SpawnLocationMode.Random: break; case SpawnLocationMode.LoopByTimeRatio: break; case SpawnLocationMode.LoopByCount: { FieldInspectorHelper.ShowTitle("Loop By Count", skin, false); FieldInspectorHelper.StartSection(); bUseSpawnTotalCount = FieldInspectorHelper.ShowBoolField("Spawn Count", bUseSpawnTotalCount, skin); if (!bUseSpawnTotalCount) { unitPerLoop = FieldInspectorHelper.ShowIntField("Unit Per Loop", unitPerLoop, skin); } bReverseDirection = FieldInspectorHelper.ShowBoolField("Reversed Dir", bReverseDirection, skin); FieldInspectorHelper.EndSection(); } break; case SpawnLocationMode.LoopByBrust: { } break; default: break; } }
public override void DrawnNodeProperties(GUISkin skin) { base.DrawnNodeProperties(skin); FieldInspectorHelper.StartSection(); bReverseEmitBase = FieldInspectorHelper.ShowBoolField("Reverse Base", bReverseEmitBase, skin); emitFrom = (EmitFrom)FieldInspectorHelper.ShowEnumField("Emit From", emitFrom, skin); FieldInspectorHelper.ShowFlexibleFloatField("Angle", fl_angle, skin); FieldInspectorHelper.ShowFlexibleFloatField("Radius", fl_radius, skin); FieldInspectorHelper.ShowFlexibleFloatField("Length", fl_length, skin); FieldInspectorHelper.ShowFlexibleVector3Field("Top Offset", fl_topOffset, skin); locationMode = (SpawnLocationMode)FieldInspectorHelper.ShowEnumField("Mode", locationMode, skin); FieldInspectorHelper.EndSection(); switch (locationMode) { case SpawnLocationMode.Random: break; case SpawnLocationMode.LoopByTimeRatio: break; case SpawnLocationMode.LoopByCount: { FieldInspectorHelper.ShowTitle("Loop By Count", skin, false); FieldInspectorHelper.StartSection(); bUseSpawnTotalCount = FieldInspectorHelper.ShowBoolField("Spawn Count", bUseSpawnTotalCount, skin); if (!bUseSpawnTotalCount) { unitPerLoop = FieldInspectorHelper.ShowIntField("Unit Per Loop", unitPerLoop, skin); } FieldInspectorHelper.EndSection(); } break; case SpawnLocationMode.LoopByBrust: { } break; default: break; } }
public override void DrawnNodeProperties(GUISkin skin) { base.DrawnNodeProperties(skin); FieldInspectorHelper.StartSection(); collisionMask = FieldInspectorHelper.ShowMaskField("Collide Layer", collisionMask, skin); FieldInspectorHelper.ShowFlexibleFloatField("Col. Time Gap", fl_collisionGap, skin); killOnCollision = FieldInspectorHelper.ShowBoolField("Destroy On Hit", killOnCollision, skin); FieldInspectorHelper.EndSection(); FieldInspectorHelper.ShowTitle("Spawn GameObject On Collision", skin, true); FieldInspectorHelper.StartSection(); int spawnGameObjectListCount = FieldInspectorHelper.ShowIntField("Spawn Count", spawnGameObjectList.Count, skin); if (spawnGameObjectList.Count != spawnGameObjectListCount) { spawnGameObjectList.Resize <SpawnGameObjectTrigger>(spawnGameObjectListCount); } for (int i = 0; i < spawnGameObjectList.Count; i++) { var spawnTrigger = spawnGameObjectList[i]; if (spawnTrigger == null) { spawnTrigger = new SpawnGameObjectTrigger(); spawnGameObjectList[i] = spawnTrigger; } spawnTrigger.bShow = FieldInspectorHelper.ShowExpandField(string.Format("Index {0}", i + 1), spawnTrigger.bShow, skin); if (spawnTrigger.bShow) { FieldInspectorHelper.StartSubSection(); spawnTrigger.template = FieldInspectorHelper.ShowObjectField <GameObject>("Template", spawnTrigger.template, skin); spawnTrigger.count = FieldInspectorHelper.ShowIntField("Quanity", spawnTrigger.count, skin); spawnTrigger.useLocation = FieldInspectorHelper.ShowBoolField("Copy Location", spawnTrigger.useLocation, skin); spawnTrigger.useRotation = FieldInspectorHelper.ShowBoolField("Copy Rotation", spawnTrigger.useRotation, skin); spawnTrigger.parentTo = (ParentTo)FieldInspectorHelper.ShowEnumField("Parent To", spawnTrigger.parentTo, skin); FieldInspectorHelper.EndSubSection(); } } FieldInspectorHelper.EndSection(); }
public override void DrawnNodeProperties(GUISkin skin) { base.DrawnNodeProperties(skin); FieldInspectorHelper.StartSection(); bSeperateXYZ = FieldInspectorHelper.ShowBoolField("Seperate XYZ", bSeperateXYZ, skin); if (!bSeperateXYZ) { FieldInspectorHelper.ShowFlexibleFloatField("Noise Speed", fl_noiseSpeed, skin); FieldInspectorHelper.ShowFlexibleFloatField("Noise Strength", fl_noiseStrength, skin); } else { FieldInspectorHelper.ShowFlexibleVector3Field("Speed", fl_noiseSpeedXYZ, skin); FieldInspectorHelper.ShowFlexibleVector3Field("Strength", fl_noiseStrengthXYZ, skin); } FieldInspectorHelper.EndSection(); FieldInspectorHelper.ShowTitle("World Position Influence", skin, true); FieldInspectorHelper.StartSection(); worldPositionInfluence = FieldInspectorHelper.ShowVector3Field("Strength", worldPositionInfluence, skin); FieldInspectorHelper.EndSection(); }
public override void DrawnNodeProperties(GUISkin skin) { base.DrawnNodeProperties(skin); FieldInspectorHelper.StartSection(); int spawnGameObjectListCount = FieldInspectorHelper.ShowIntField("Spawn Count", spawnGameObjectList.Count, skin); if (spawnGameObjectList.Count != spawnGameObjectListCount) { spawnGameObjectList.Resize <SpawnGameObjectTrigger>(spawnGameObjectListCount); } for (int i = 0; i < spawnGameObjectList.Count; i++) { var spawnTrigger = spawnGameObjectList[i]; if (spawnTrigger == null) { spawnTrigger = new SpawnGameObjectTrigger(); spawnGameObjectList[i] = spawnTrigger; } spawnTrigger.bShow = FieldInspectorHelper.ShowExpandField(string.Format("Index {0}", i + 1), spawnTrigger.bShow, skin); if (spawnTrigger.bShow) { FieldInspectorHelper.StartSubSection(); spawnTrigger.template = FieldInspectorHelper.ShowObjectField <GameObject>("Template", spawnTrigger.template, skin); spawnTrigger.count = FieldInspectorHelper.ShowIntField("Quanity", spawnTrigger.count, skin); spawnTrigger.useLocation = FieldInspectorHelper.ShowBoolField("Copy Location", spawnTrigger.useLocation, skin); spawnTrigger.useRotation = FieldInspectorHelper.ShowBoolField("Copy Rotation", spawnTrigger.useRotation, skin); spawnTrigger.parentTo = (ParentTo)FieldInspectorHelper.ShowEnumField("Parent To", spawnTrigger.parentTo, skin); FieldInspectorHelper.EndSubSection(); } } FieldInspectorHelper.EndSection(); }