Skip to content

Framework for defining menus modularly #563

@axollyon

Description

@axollyon

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestmedium prioritySemi-important issue or feature / medium priority

Type

No type

Projects

Status

To do

Relationships

None yet

Development

No branches or pull requests

Issue actions