Extras: Menu System Full Screen Toggle

Announcements, support questions, and discussion for the Dialogue System.
EatAllTheGames
Posts: 23
Joined: Mon Jul 30, 2018 9:20 am

Re: Extras: Menu System Full Screen Toggle

Post by EatAllTheGames »

Tony Li wrote: Tue Jul 31, 2018 10:50 am I believe this update resolves those issues: DialogueSystem_MenuFramework_2018-07-31rc1.unitypackage

My initial tests work, but I'm going to put it through more tests before publishing it.

It required some extra code to make dropdowns regain focus, and I also made these changes to the UIPanels on the dropdowns' Templates:
  • Focus Check Frequency: 0
  • Refresh Selectables Frequency: 0
  • Select Previous On Disable: unticked
This is because dropdowns handle focus a little differently.

Will update this post as I find them...

1) Resolution drop down doesn't scroll to the currently selected item upon opening it, but once you change selection up/down it scrolls to it.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Extras: Menu System Full Screen Toggle

Post by Tony Li »

Sounds good! The only scripts that changed were Options.cs and ScrollToMe.cs. (I made a minor change to ScrollToMe so it doesn't jump as strangely when it hits the bottom item.)
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Extras: Menu System Full Screen Toggle

Post by Tony Li »

Hi,
EatAllTheGames wrote: Tue Jul 31, 2018 11:19 am1) Resolution drop down doesn't scroll to the currently selected item upon opening it, but once you change selection up/down it scrolls to it.
Fixed: DialogueSystem_MenuFramework_2018-07-31rc2.unitypackage

The only file that changed was ScrollToMe.cs. In later versions of Unity, the dropdown items aren't added as children until the end of the frame. The script now waits until then to compute the scroll position.

If you run into any other issues, please let me know what version of Unity you're using.
Post Reply