/// <summary> /// Resets settings to begin a new score. /// </summary> /// <param name="score">Score</param> public void BeginNewScore(Score score) { CurrentScore = score; CurrentPage = score.DefaultPageSettings; CurrentStaff = null; CurrentMeasure = null; CurrentClef = null; CurrentKey = null; LinePositions.Clear(); }
public Line(LinePositions position, Color color, int point1, int point2) { if (position == LinePositions.TOP || position == LinePositions.BOTTOM) { _x1 = point1; _x2 = point2; } else { _y1 = point1; _y2 = point2; } _color = color; _position = position; }
public Line(LinePositions position, Color color, int point1, int point2) { if (position == LinePositions.Top || position == LinePositions.Bottom) { X1 = point1; X2 = point2; } else { Y1 = point1; Y2 = point2; } Color = color; LinePosition = position; }
public void drawLine(LinePositions pos, Color color, int point1, int point2) { _lines.Add(new Line(pos, color, point1, point2)); }
protected void UpdateArrowsState() { GameObject p = root.transform.parent.gameObject; RootElement r = p.GetComponent<RootElement>(); if (r.elements.Count == 1) { linePosition = LinePositions.Alone; } else { for (int i = 0; i < r.elements.Count; i++) { if (root == r.elements[i]) { if (i == 0) linePosition = LinePositions.Left; else if (i == r.elements.Count - 1) linePosition = LinePositions.Right; else linePosition = LinePositions.Center; } } } UpdateTicks(); }
public void SetLinePosition(LinePositions pos) { linePosition = pos; }