Пример #1
0
        /// <summary>
        /// FavoriteMenu Constructor.
        /// </summary>
        /// <param name="entry">The instance of ModEntry</param>
        /// <param name="playerLoader">The instance of CharacterLoader</param>
        /// <param name="menu">The instance of the GlamMenu</param>
        public FavoriteMenu(ModEntry entry, CharacterLoader playerLoader, GlamMenu menu)
            : base((int)Utility.getTopLeftPositionForCenteringOnScreen(712, 712, 0, 0).X, (int)Utility.getTopLeftPositionForCenteringOnScreen(712, 712, 0, 0).Y - IClickableMenu.borderWidth, 712, 712, false)
        {
            Entry        = entry;
            PlayerLoader = playerLoader;
            Menu         = menu;

            SetUpMenu();
        }
Пример #2
0
        /// <summary>FavoriteMenu Constructor</summary>
        /// <param name="entry">The instance of ModEntry</param>
        /// <param name="playerLoader">The instance of CharacterLoader</param>
        /// <param name="menu">The instance of the GlamMenu</param>
        public FavoriteMenu(ModEntry entry, CharacterLoader playerLoader, GlamMenu menu)
            : base((int)Utility.getTopLeftPositionForCenteringOnScreen(712, 712, 0, 0).X, (int)Utility.getTopLeftPositionForCenteringOnScreen(712, 712, 0, 0).Y - IClickableMenu.borderWidth, 712, 712, false)
        {
            //Set the fields
            Entry        = entry;
            PlayerLoader = playerLoader;
            Menu         = menu;

            //Set up the button layouts
            SetUpButtons();
        }
Пример #3
0
        /// <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();
        }
 /// <summary>SaveLoadMenuPatcher's Constructor</summary>
 /// <param name="entry">The instance of ModEntry</param>
 /// <param name="playerLoader">The instance of CharacterLoader</param>
 public SaveLoadMenuPatcher(ModEntry entry, CharacterLoader playerLoader)
 {
     //Set the fields
     Entry        = entry;
     PlayerLoader = playerLoader;
 }
Пример #5
0
 /// <summary>
 /// SaveLoadMenuPatcher's Constructor.
 /// </summary>
 /// <param name="entry">The instance of ModEntry</param>
 /// <param name="playerLoader">The instance of CharacterLoader</param>
 public SaveLoadMenuPatcher(ModEntry entry, CharacterLoader playerLoader)
 {
     Entry        = entry;
     PlayerLoader = playerLoader;
 }