Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor issue with root menu #734

Open
GusIsanda opened this issue Oct 11, 2024 · 5 comments
Open

Minor issue with root menu #734

GusIsanda opened this issue Oct 11, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@GusIsanda
Copy link

Hi, first of all thanks for all the work!

I found a minor bug in root menu and I'm not able to find the line myself. When the menu is on TG or in edit mode, you can't go one step down if it's the first item or step up if it's the last item (looping back to the last or first item), but in root menu it does.

I know it's a minimum trouble but now I need to know how it works. Thanks again!

@Banana71
Copy link

Banana71 commented Oct 11, 2024

Hi Guslsanda,

As far as I know, this is intended. The root menu moves in a loop and the submenus in a line with a beginning and an end.
Take a look at the file "uimenu.cpp" from line 473.
Peter

		if (pUIMenu->m_nCurrentSelection == 0)
		{
			// If in main mennu, wrap around
			if (pUIMenu->m_pCurrentMenu == s_MainMenu)
			{
				// Find last entry with a name
				while (pUIMenu->m_pCurrentMenu[pUIMenu->m_nCurrentSelection+1].Name)
				{
					pUIMenu->m_nCurrentSelection++;
				}
			}
		}
		else if (pUIMenu->m_nCurrentSelection > 0)
		{
			pUIMenu->m_nCurrentSelection--;
		}
.........

@GusIsanda
Copy link
Author

Why I couldn't see it? Thanks!

@Banana71
Copy link

Why I couldn't see it?

Because there really is a very small error in the root menu :-)
The arrow "<" is missing in the "TG1" menu on the left side
and the following arrow ">" is missing in the "Performance" menu on the right side.

@probonopd
Copy link
Owner

Noticed this too.

Either we should add arrows in both directions, or we should not wrap around.
Also, I think all menus should or should not wrap around (consistency), as the OP rightfully noted.

@diyelectromusic what do you think?

@probonopd probonopd added the bug Something isn't working label Nov 15, 2024
@diyelectromusic
Copy link
Collaborator

People asked for it to wrap around so they could quickly get to the performance menu. Yes, prob should have the arrows on the root.

I don't see an issue with not wrapping around on other menus - some really do have a sense of start and end for me, but the root feels different. But could probably add it in if people felt strongly about it.

I think the bigger issues for me are the differences between selecting voices and performances, but I have quite a long list of issue/discussion numbers related to the UI, that one day I'll sit and work through...

Kevin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants