Ejemplo n.º 1
0
    // Will move the entry position vertically down. A line change, that is.
    // A line change will have two options, a thinner and thicker one.
    void AddRow(int amount = 1, bool wantThinSized = false)
    {
        float requestedRowHeight;

        if (wantThinSized)
        {
            // Use less spaceous rows, normally for blank separator lines
            requestedRowHeight = RowManager.thinRowHeight;
            rm.AddThinRow(amount);
        }
        else
        {
            // Use taller rows, normally for editable value rows
            requestedRowHeight = RowManager.thickRowHeight;
            rm.AddThickRow(amount);
        }
        for (int i = 0; i < amount; ++i)
        {
            newPosition.y += requestedRowHeight;
        }
    }