/// <summary> /// CharacterLoader's Constructor. /// </summary> /// <param name="entry">The instance of ModEntry</param> /// <param name="changer">The instance of PlayerChanger</param> /// <param name="dresser">The instance of DresserHandler</param> public CharacterLoader(ModEntry entry, PlayerChanger changer, DresserHandler dresser) { // Set the fields to the instances Entry = entry; PlayerChanger = changer; Dresser = dresser; }
/// <summary>CharacterLoader's Constructor</summary> /// <param name="entry">The instance of ModEntry</param> /// <param name="packHelper">The instance of ContentPackHelper</param> /// <param name="dresser">The instance of DresserHandler</param> public CharacterLoader(ModEntry entry, ContentPackHelper packHelper, DresserHandler dresser) { //Set the fields to the instances Entry = entry; PackHelper = packHelper; Dresser = dresser; }
/// <summary>Glam Menu's Conrstructor</summary> /// <param name="entry">Instance of <see cref="ModEntry"/></param> /// <param name="packHelper">Instance of <see cref="ContentPackHelper"/></param> /// <param name="dresser">Instance of <see cref="DresserHandler"/></param> /// <param name="playerLoader">Instance of <seealso cref="CharacterLoader"/></param> public GlamMenu(ModEntry entry, ModConfig config, ContentPackHelper packHelper, DresserHandler dresser, CharacterLoader playerLoader) : base((int)Utility.getTopLeftPositionForCenteringOnScreen(712, 712, 0, 0).X, (int)Utility.getTopLeftPositionForCenteringOnScreen(712, 712, 0, 0).Y - IClickableMenu.borderWidth, 712, 712, false) { //Set the vars to the Instances Entry = entry; Config = config; PackHelper = packHelper; Dresser = dresser; PlayerLoader = playerLoader; //Check if they're wearing a hat if (Game1.player.hat.Value != null) { //Get the draw type value and change the HairFix button as selected if (Game1.player.hat.Value.hairDrawType.Get() == 0) { IsHatFixSelected = true; } } //Set the positions of each item on the menu SetUpPositions(); }