Skip to content

Hard Coded Menu Navigation #3

@IsaiahKelly

Description

@IsaiahKelly

Is there a good reason for hard-coding menu navigation into each menu type? For example the MainMenu class has:

public void OnOptionsPressed()
{
	OptionsMenu.Show();
}

But allowing you to actually define which menu you want to go to using an argument would allow you to freely setup navigate to any menu you want in the editor, without having to create an explicit method for each navigation you need. Something like this instead:

public void GoTo(Menu menu)
{
	menu.Show();
}

Are these explicit navigation methods just done to enforce a specific menu flow and prevent certain types of issues?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions