Beispiel #1
0
 public HunterMenu(ModEntry entry, SlayerData slayerData, Dictionary <string, string> locs, int x, int y, int width, int height) : base(Game1.activeClickableMenu.xPositionOnScreen, Game1.activeClickableMenu.yPositionOnScreen, Width, Game1.activeClickableMenu.height)
 {
     Entry      = entry;
     Inbounds   = new Rectangle(xPositionOnScreen + 50, yPositionOnScreen + 110, width - 100, height - 200);
     Offsets    = new Vector2(375, 25);
     Locs       = locs;
     SlayerData = slayerData;
 }
Beispiel #2
0
 /// <summary>The mod entry point, called after the mod is first loaded.</summary>
 /// <param name="helper">Provides simplified APIs for writing mods.</param>
 public override void Entry(IModHelper helper)
 {
     helper.Events.Input.ButtonPressed += this.OnButtonPressed;
     loadedSlayerData = helper.Data.ReadJsonFile <SlayerData>("data/SlayerData.json");
 }