public override void DrawnNodeProperties(GUISkin skin) { base.DrawnNodeProperties(skin); FieldInspectorHelper.StartSection(); FieldInspectorHelper.ShowFlexibleVector3Field("Rotation", fl_rotation, skin, true); FieldInspectorHelper.EndSection(); }
public override void DrawnNodeProperties(GUISkin skin) { base.DrawnNodeProperties(skin); FieldInspectorHelper.StartSection(); FieldInspectorHelper.ShowFlexibleVector3Field("Offset", fl_initAnchorOffset, skin); FieldInspectorHelper.EndSection(); }
public override void DrawnNodeProperties(GUISkin skin) { base.DrawnNodeProperties(skin); FieldInspectorHelper.StartSection(); FieldInspectorHelper.ShowFlexibleFloatField("Lifetime", fl_lifetime, skin); FieldInspectorHelper.EndSection(); }
public override void DrawnNodeProperties(GUISkin skin) { base.DrawnNodeProperties(skin); FieldInspectorHelper.StartSection(); FieldInspectorHelper.ShowFlexibleVector3Field("Velocity", fl_velocity, skin); FieldInspectorHelper.EndSection(); }
public override void DrawnNodeProperties(GUISkin skin) { base.DrawnNodeProperties(skin); FieldInspectorHelper.StartSection(); FieldInspectorHelper.ShowFlexibleFloatField("Speed", fl_homingSpeed, skin); FieldInspectorHelper.ShowFlexibleVector3Field("Strength", fl_homingStrengthXYZ, skin); FieldInspectorHelper.EndSection(); }
public override void DrawnNodeProperties(GUISkin skin) { base.DrawnNodeProperties(skin); FieldInspectorHelper.StartSection(); modifierType = (ModifierType)FieldInspectorHelper.ShowEnumField("Modifier Type", modifierType, skin); FieldInspectorHelper.ShowFlexibleVector3Field("Offset", fl_anchorOffsetOverLife, skin); FieldInspectorHelper.EndSection(); }
public override void DrawnNodeProperties(GUISkin skin) { base.DrawnNodeProperties(skin); FieldInspectorHelper.StartSection(); modifierType = (ModifierType)FieldInspectorHelper.ShowEnumField("Modifier Type", modifierType, skin); FieldInspectorHelper.ShowFlexibleFloatField("Velocity Scale", fl_velocityScale, skin); FieldInspectorHelper.EndSection(); }
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(); FieldInspectorHelper.ShowFlexibleFloatField("Unit/s", fl_rateOverTime, skin); FieldInspectorHelper.EndSection(); FieldInspectorHelper.ShowTitle("Brust", skin, true); FieldInspectorHelper.StartSection(); FieldInspectorHelper.StartRow(0); FieldInspectorHelper.ShowText("Time", skin, minWidth); FieldInspectorHelper.ShowText("Count", skin, minWidth); FieldInspectorHelper.ShowText("Cycle", skin, minWidth); FieldInspectorHelper.ShowText("Interval", skin, minWidth); FieldInspectorHelper.ShowAddSubButton(true, false, skin, () => { brustList.Insert(0, new BrustData()); }, null); FieldInspectorHelper.EndRow(0); for (int i = 0; i < brustList.Count; i++) { var brust = brustList[i]; FieldInspectorHelper.StartRow(0); brust.time = FieldInspectorHelper.ShowFloatField(brust.time, skin, minWidth); brust.count = FieldInspectorHelper.ShowIntField(brust.count, skin, minWidth); brust.cycle = FieldInspectorHelper.ShowIntField(brust.cycle, skin, minWidth); brust.interval = FieldInspectorHelper.ShowFloatField(brust.interval, skin, minWidth); FieldInspectorHelper.ShowAddSubButton(true, true, skin, () => { brustList.Insert(i + 1, brust.Clone()); }, () => { brustList.RemoveAt(i); }); FieldInspectorHelper.EndRow(0); } //BrustCount = FieldInspectorHelper.ShowIntField("Count", BrustCount, skin); 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(); }
public override void DrawnNodeProperties(GUISkin skin) { base.DrawnNodeProperties(skin); FieldInspectorHelper.StartSection(); targetSource = (TargetSource)FieldInspectorHelper.ShowEnumField("Target Source", targetSource, skin); FieldInspectorHelper.EndSection(); switch (targetSource) { case TargetSource.SkillControl: break; case TargetSource.MouseToWorld: { FieldInspectorHelper.ShowTitle("Mouse To World", skin, false); FieldInspectorHelper.StartSection(); mouseLayerMask = FieldInspectorHelper.ShowMaskField("Layer Mask", mouseLayerMask, skin); CameraType oldCamType = cameraType; cameraType = (CameraType)FieldInspectorHelper.ShowEnumField("Camera Type", cameraType, skin); switch (cameraType) { case CameraType.ByTag: cameraTag = FieldInspectorHelper.ShowTextField("Camera Tag", cameraTag, skin); customMouseCam = null; break; case CameraType.ByName: cameraName = FieldInspectorHelper.ShowTextField("Camera Name", cameraName, skin); customMouseCam = null; break; default: break; } FieldInspectorHelper.EndSection(); } break; default: break; } switch (targetSource) { //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; } }