wip map importer stuff
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user