-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTerrariaFontSet.cs
35 lines (32 loc) · 1.25 KB
/
TerrariaFontSet.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using Terraria;
using ReLogic.Graphics;
namespace TerrariaJapan
{
class TerrariaFontSet
{
public DynamicSpriteFont ItemStack { get; set; }
public DynamicSpriteFont MouseText { get; set; }
public DynamicSpriteFont DeathText { get; set; }
public DynamicSpriteFont CombatText { get; set; }
public DynamicSpriteFont CombatCrit { get; set; }
public static TerrariaFontSet FromCurrentFonts()
{
return new TerrariaFontSet()
{
ItemStack = Main.instance.OurLoad<DynamicSpriteFont>("Fonts/Item_Stack"),
MouseText = Main.instance.OurLoad<DynamicSpriteFont>("Fonts/Mouse_Text"),
DeathText = Main.instance.OurLoad<DynamicSpriteFont>("Fonts/Death_Text"),
CombatText = Main.instance.OurLoad<DynamicSpriteFont>("Fonts/Combat_Text"),
CombatCrit = Main.instance.OurLoad<DynamicSpriteFont>("Fonts/Combat_Crit")
};
}
public void LoadIntoTerraria()
{
Main.fontItemStack = ItemStack;
Main.fontMouseText = MouseText;
Main.fontDeathText = DeathText;
Main.fontCombatText[0] = CombatText;
Main.fontCombatText[1] = CombatCrit;
}
}
}