void RadialTab() { _plane = (Plane)EditorGUILayout.EnumPopup("Plane", _plane); _space = (Space)EditorGUILayout.EnumPopup("Space", _space); _totalAngle = EditorGUILayout.FloatField("Total Angle", _totalAngle); _inclusiveAngle = EditorGUILayout.Toggle("Inclusive Angle", _inclusiveAngle); _radius = EditorGUILayout.FloatField("Radius", _radius); _elementRotation = (ElementRotation)EditorGUILayout.EnumPopup("Rotate Elements", _elementRotation); EditorGUI.BeginDisabledGroup(_elementRotation == ElementRotation.DontRotate); EditorGUIUtility.wideMode = true; _rotationOffset = EditorGUILayout.Vector3Field("Rotation Offset", _rotationOffset); EditorGUIUtility.wideMode = false; EditorGUI.EndDisabledGroup(); LayoutButton(RadialLayout); }
public void Link(ElementRotation rot) { _linkedRotation = rot; }
public TreeNodeRotation(ElementRotation rot) : base("Rotation") { Link(rot); Configurate(); }
public LevelElementData(Vector2Int pos, ElementRotation rotation) { this.pos = pos; this.rotation = rotation; }
public DoorData(Vector2Int pos, ElementRotation rotation) : base(pos, new Vector2Int(2, 1), rotation) { }
public RectLevelElementData(Vector2Int pos, Vector2Int size, ElementRotation rotation) : base(pos, rotation) { this.size = size; }
public SingleTileLevelElementData(Vector2Int pos, ElementRotation rotation) : base(pos, rotation) { }