Page 1 of 1

Menu Framework

Posted: Tue Oct 18, 2022 5:16 am
by dnblank12
Hello again, so I'm using the Menu Framework, and my issue is that when getting the first mission/quest, then quitting the menu, it still retains the entry. I'll attach an example. I also tried to ResetDatabase()/StopAllConverstation() on QuitToMenuConfirm button it didn't work.
Edit1: I might try and follow this post https://www.pixelcrushers.com/phpbb/vie ... 11&p=17077
Edit2: It didn't work.

Re: Menu Framework

Posted: Tue Oct 18, 2022 8:04 am
by Tony Li
Hi,

I recommend making a prefab variant of the MenuSystem prefab so you can customize it. In your custom version, inspect the MenuSystem > QuitToMenuPanel > QuitToMenuConfirm button. Add a SaveSystemMethods component. Configure the third UnityEvent element to call SaveSystemMethods.ResetGameState, and configure a fourth one to call SaveHelper.ReturnToTitleMenu:

returnToTitleMenu.png
returnToTitleMenu.png (88.68 KiB) Viewed 183 times

Re: Menu Framework

Posted: Wed Oct 19, 2022 4:58 am
by dnblank12
Thanks again Tony! :D

Re: Menu Framework

Posted: Wed Oct 19, 2022 8:53 am
by Tony Li
Glad to help!