wip map importer stuff

This commit is contained in:
GoaLitiuM
2021-07-05 15:52:51 +03:00
parent edbb0f9742
commit d94a2544a0
18 changed files with 1969 additions and 71 deletions

View File

@@ -22,7 +22,15 @@ namespace Cabrito
protected TextLayoutOptions _layout;
public FontReference Font;
private FontReference Font;
public int FontHeight
{
get
{
return Font.GetFont().Height;
}
}
public float LineSpacing = 1.0f;
@@ -65,12 +73,14 @@ namespace Cabrito
{
}
public ConsoleContentTextBox(ConsoleInputTextBox inputBox, float x, float y, float width, float height) : base(
public ConsoleContentTextBox(FontReference font, ConsoleInputTextBox inputBox, float x, float y, float width, float height) : base(
x, y, width, height)
{
this.inputBox = inputBox;
Height = height;
Font = font;
_layout = TextLayoutOptions.Default;
_layout.VerticalAlignment = TextAlignment.Near;
_layout.TextWrapping = TextWrapping.WrapChars;