Пример #1
0
 public void PositionRight(TextItem textItem, float margin = 10)
 {
     position = new Vector2(textItem.position.X + textItem.TextSize.X + margin, textItem.position.Y);
 }
Пример #2
0
 public void PositionBelow(TextItem textItem, float margin = 10.0f)
 {
     position = new Vector2(textItem.position.X, textItem.position.Y + textItem.TextSize.Y + margin);
 }