private void Update(WorldForm wf, ref MapSelection sel, Vector3 p) { Entity?.SetPivotPositionFromWidget(p); if (Entity != sel.EntityDef) { wf.SelectObject(Entity); } wf.SetWidgetPosition(p); }
private void Update(WorldForm wf, ref MapSelection sel, Quaternion q) { CarGen?.SetOrientation(q); if (CarGen != sel.CarGenerator) { wf.SelectObject(CarGen); } wf.SetWidgetRotation(q); }
private void Update(WorldForm wf, ref MapSelection sel, Vector3 s) { Entity?.SetScale(s); if (Entity != sel.EntityDef) { wf.SelectObject(Entity); } wf.SetWidgetScale(s); }
private void Update(WorldForm wf, ref MapSelection sel, Vector3 p) { Audio?.SetPosition(p); if (Audio != sel.Audio) { wf.SelectObject(Audio); } wf.SetWidgetPosition(p); }
private void Update(WorldForm wf, ref MapSelection sel, Vector3 s) { CarGen?.SetScale(s); if (CarGen != sel.CarGenerator) { wf.SelectObject(CarGen); } wf.SetWidgetScale(s); }
private void Update(WorldForm wf, ref MapSelection sel, Quaternion q) { Entity?.SetPivotOrientationFromWidget(q); if (Entity != sel.EntityDef) { wf.SelectObject(Entity); } wf.SetWidgetRotation(q); }
private void Update(WorldForm wf, ref MapSelection sel, Quaternion q) { Audio?.SetOrientation(q); if (Audio != sel.Audio) { wf.SelectObject(Audio); } wf.SetWidgetRotation(q); }
private void Update(WorldForm wf, ref MapSelection sel, Vector3 p) { PathNode?.SetPosition(p); if (PathNode != sel.PathNode) { if (sel.PathLink != null) { wf.SelectObject(sel.PathLink); } else { wf.SelectObject(PathNode); } } wf.SetWidgetPosition(p); UpdateGraphics(wf); }
private void Update(WorldForm wf, ref MapSelection sel, Vector3 s) { LodLight?.SetScale(s); if (LodLight != sel.LodLight) { wf.SelectObject(LodLight); } wf.SetWidgetScale(s); UpdateGraphics(wf); }
private void Update(WorldForm wf, ref MapSelection sel, Quaternion q) { ScenarioNode?.SetOrientation(q); if (ScenarioNode != sel.ScenarioNode) { wf.SelectObject(ScenarioNode); } wf.SetWidgetRotation(q); //UpdateGraphics(wf); }
private void Update(WorldForm wf, ref MapSelection sel, Vector3 p) { ScenarioNode?.SetPosition(p); if (ScenarioNode != sel.ScenarioNode) { wf.SelectObject(ScenarioNode); } wf.SetWidgetPosition(p); UpdateGraphics(wf); }
private void Update(WorldForm wf, ref MapSelection sel, Quaternion q) { Portal?.SetOrientation(q); if (Portal != sel.NavPortal) { wf.SelectObject(Portal); } wf.SetWidgetRotation(q); //UpdateGraphics(wf); }
private void Update(WorldForm wf, ref MapSelection sel, Quaternion q) { LodLight?.SetOrientation(q); if (LodLight != sel.LodLight) { wf.SelectObject(LodLight); } wf.SetWidgetRotation(q); UpdateGraphics(wf); }
private void Update(WorldForm wf, ref MapSelection sel, Vector3 p) { Portal?.SetPosition(p); if (Portal != sel.NavPortal) { wf.SelectObject(Portal); } wf.SetWidgetPosition(p); UpdateGraphics(wf); }
private void Update(WorldForm wf, ref MapSelection sel, Vector3 p) { Node?.SetPosition(p); if (Node != sel.TrainTrackNode) { wf.SelectObject(Node); } wf.SetWidgetPosition(p); UpdateGraphics(wf); }
private void Update(WorldForm wf, ref MapSelection sel, Vector3 s) { if (Polygon != null) { Polygon.Scale = s; } if (Polygon != sel.CollisionPoly) { wf.SelectObject(Polygon); } wf.SetWidgetScale(s); UpdateGraphics(wf); }
private void Update(WorldForm wf, ref MapSelection sel, Vector3 s) { if (Bounds != null) { Bounds.Scale = s; } if (Bounds != sel.CollisionBounds) { wf.SelectObject(Bounds); } wf.SetWidgetScale(s); UpdateGraphics(wf); }
private void Update(WorldForm wf, ref MapSelection sel, Vector3 p) { if (Vertex != null) { if (Entity != null) { Vertex.Position = Quaternion.Invert(Entity.Orientation).Multiply(p - Entity.Position); } else { Vertex.Position = p; } } if (Vertex != sel.CollisionVertex) { wf.SelectObject(Vertex); } wf.SetWidgetPosition(p); UpdateGraphics(wf); }
private void Update(WorldForm wf, ref MapSelection sel, Quaternion q) { if (Polygon != null) { if (Entity != null) { Polygon.Orientation = Quaternion.Invert(Entity.Orientation) * q; } else { Polygon.Orientation = q; } } if (Polygon != sel.CollisionPoly) { wf.SelectObject(Polygon); } wf.SetWidgetRotation(q); UpdateGraphics(wf); }