forked from JavidPack/RecipeBrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UISystem.cs
32 lines (28 loc) · 892 Bytes
/
UISystem.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
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using RecipeBrowser.UIElements;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.UI;
namespace RecipeBrowser
{
public class UISystem : ModSystem
{
public override void UpdateUI(GameTime gameTime) => RecipeBrowser.instance.UpdateUI(gameTime);
public override void ModifyInterfaceLayers(List<GameInterfaceLayer> layers) => RecipeBrowser.instance.ModifyInterfaceLayers(layers);
public override void PreSaveAndQuit() => RecipeBrowser.instance.PreSaveAndQuit();
public override void PostAddRecipes()
{
if (!Main.dedServ) {
LootCacheManager.Setup(RecipeBrowser.instance);
RecipeBrowserUI.instance.PostSetupContent();
}
}
}
}