-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathModEntry.cs
28 lines (24 loc) · 1.05 KB
/
ModEntry.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
using StardewModdingAPI;
using MiniBars.Framework.Rendering;
using MiniBars.Framework;
using StardewModdingAPI.Events;
using Microsoft.Xna.Framework;
using StardewValley;
namespace MiniBars
{
public class ModEntry : Mod
{
public static ModEntry instance;
public static Config config;
public override void Entry(IModHelper helper)
{
instance = this;
config = helper.ReadConfig<Config>();
Textures.LoadTextures();
helper.Events.Display.RenderedWorld += Renderer.OnRendered;
helper.ConsoleCommands.Add("minibars_theme", "Change the bars theme.\nUsage: minibars_theme '1 or 2'", Commands.Theme);
helper.ConsoleCommands.Add("minibars_showfull", "Enable or disable showing healthbars when monsters full health.\nUsage: minibars_showfull 'true or false'", Commands.ShowFullLife);
helper.ConsoleCommands.Add("minibars_range", "Enable or disable the range verification.\nUsage: minibars_range 'true or false'", Commands.RangeVerification);
}
}
}