2019-08-09 22:04:26 +02:00
|
|
|
using Microsoft.Xna.Framework;
|
|
|
|
|
|
|
|
namespace MLEM.Ui.Elements {
|
2020-05-22 17:02:24 +02:00
|
|
|
/// <summary>
|
|
|
|
/// A vertical space element for use inside of a <see cref="UiSystem"/>.
|
|
|
|
/// A vertical space is an invisible element that can be used to add vertical space between paragraphs or other elements.
|
|
|
|
/// </summary>
|
2019-08-09 22:04:26 +02:00
|
|
|
public class VerticalSpace : Element {
|
|
|
|
|
2020-05-22 17:02:24 +02:00
|
|
|
/// <summary>
|
|
|
|
/// Creates a new vertical space with the given settings
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="height">The height of the vertical space</param>
|
2021-10-01 03:42:27 +02:00
|
|
|
public VerticalSpace(float height) : base(Anchor.AutoCenter, new Vector2(1, height)) {
|
2019-08-28 18:27:17 +02:00
|
|
|
this.CanBeSelected = false;
|
2019-08-09 22:04:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2022-06-17 18:23:47 +02:00
|
|
|
}
|