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

Framework for defining menus modularly #563

Open
axollyon opened this issue Dec 20, 2022 · 0 comments
Open

Framework for defining menus modularly #563

axollyon opened this issue Dec 20, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request medium priority Semi-important issue or feature / medium priority
Milestone

Comments

@axollyon
Copy link
Collaborator

Custom framework, similar to a levelscript or behavior script, that allows for easier creation of custom menus for hackers.
Should support:

  • Callbacks
  • Submenus
  • Input types (numbers, toggles, etc)
  • Different text engines

Mockup code by @thecozies (would be passed to a function such as render_menu(x, y, pauseOptions)):

struct SubOptions modelOptions[] = {
    { .label = "big chungus", .value MODEL_BC },
    { .label = "luigi", .value MODEL_LUIGI }
}

struct MenuOptions pauseOptions[] = {
    { .callback: set_mario_model, .options: &modelOptions },
    ...more options
};

Possibly take this menu code by @aglab2 as reference.

@axollyon axollyon added enhancement New feature or request medium priority Semi-important issue or feature / medium priority labels Dec 20, 2022
@axollyon axollyon added this to the 2.2 milestone Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium priority Semi-important issue or feature / medium priority
Projects
Status: To do
Development

No branches or pull requests

2 participants