Ejemplo n.º 1
0
        /// <summary>Event that is called when the game returns to the title.</summary>
        /// <param name="sender">The object</param>
        /// <param name="e">The Returned To Titles Event argument</param>
        private void OnReturnedToTitle(object sender, ReturnedToTitleEventArgs e)
        {
            //Set the menu to null since it's a per save type of thing
            Menu = null;

            //Clear the favorites list as it's per save
            PlayerLoader.Favorites.Clear();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates the Glam Menu and Assigns it to the dresser.
        /// </summary>
        private void CreateAndAssignDresserMenu()
        {
            Menu         = new GlamMenu(this, Config, PackHelper, Dresser, PlayerLoader, PlayerChanger);
            Dresser.Menu = Menu;

            if (IsJsonAssetsInstalled)
            {
                DresserJson.SetMenu(Menu);
                DresserJson.GetCraftableId();
            }
        }
Ejemplo n.º 3
0
        /// <summary>Event that is called when a save is loaded.</summary>
        /// <param name="sender">The object</param>
        /// <param name="e">The Save Loaded Event arguement</param>
        private void OnSaveLoaded(object sender, SaveLoadedEventArgs e)
        {
            //Set up the Dresser and Place it
            Dresser.FarmHouse = Game1.getLocationFromName("FarmHouse");
            Dresser.SetDresserTexture();
            Dresser.PlaceDresser();

            //Create the Menus and set the var in DresserHandler
            Menu         = new GlamMenu(this, Config, PackHelper, Dresser, PlayerLoader);
            Dresser.Menu = Menu;

            //Load the character
            PlayerLoader.LoadCharacterLayout(Menu);
        }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="menu">Instance of GlamMenu</param>
 /// <param name="components">Instance of GlamMenuComponents</param>
 public ComponentLeftButtons(GlamMenu menu, GlamMenuComponents components)
 {
     Menu           = menu;
     MenuComponents = components;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="menu">Instance of GlamMenu</param>
 /// <param name="components">Instance of GlamMenuComponents</param>
 public ComponentButtons(ModEntry entry, GlamMenu menu, GlamMenuComponents components)
 {
     Entry          = entry;
     Menu           = menu;
     MenuComponents = components;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="menu">Instance of GlamMenu</param>
 /// <param name="components">Instance of GlamMenuComponents</param>
 public ComponentLabels(GlamMenu menu, GlamMenuComponents components)
 {
     Menu           = menu;
     MenuComponents = components;
 }
Ejemplo n.º 7
0
 /// <summary>Event that is called when the game returns to the title.</summary>
 /// <param name="sender">The object</param>
 /// <param name="e">The Returned To Titles Event argument</param>
 private void OnReturnedToTitle(object sender, ReturnedToTitleEventArgs e)
 {
     //Set the menu to null since it's a per save type of thing
     Menu = null;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Creates the Glam Menu and Assigns it to the dresser.
 /// </summary>
 private void CreateAndAssignDresserMenu()
 {
     Menu         = new GlamMenu(this, Config, PackHelper, Dresser, PlayerLoader);
     Dresser.Menu = Menu;
 }