mono text style
This commit is contained in:
parent
1a91c9bc56
commit
c906fb2884
1 changed files with 8 additions and 0 deletions
|
@ -24,6 +24,8 @@ static class Arts
|
||||||
static XYZi last_tailpos = new(0, 0, 0);
|
static XYZi last_tailpos = new(0, 0, 0);
|
||||||
static DeltaBool tailmove = new(false);
|
static DeltaBool tailmove = new(false);
|
||||||
|
|
||||||
|
static TextStyle text_style;
|
||||||
|
|
||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
foreach (ModelNode node in assets_model.Nodes)
|
foreach (ModelNode node in assets_model.Nodes)
|
||||||
|
@ -34,6 +36,12 @@ static class Arts
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
text_style = TextStyle.FromFont(
|
||||||
|
Font.FromFile("HurmitNerd.otf"),
|
||||||
|
1.0f * U.cm,
|
||||||
|
Color.White
|
||||||
|
);
|
||||||
|
|
||||||
// mat_mono.SetTexture("diffuse", tex_mono);
|
// mat_mono.SetTexture("diffuse", tex_mono);
|
||||||
mat_box.SetTexture("diffuse", tex_box);
|
mat_box.SetTexture("diffuse", tex_box);
|
||||||
mat_backbox.SetTexture("diffuse", tex_box);
|
mat_backbox.SetTexture("diffuse", tex_box);
|
||||||
|
|
Loading…
Add table
Reference in a new issue