Skip to content

develop a standard interface for simple menus #308

@ahicks92

Description

@ahicks92

In the f2.0-dev branch we can see research.lua, which has a number of menu_xxx functions. This then goes out of the way to reimplement things like menu search. In general we have lots of menus that are simple one-offs, possibly but not always over a simple dynamic list. This is true even of the inventory, which is a 1d menu masquerading as a 2d one.

We will be introducing layers. Once that's done, we will have a powerful mechanism for redirecting input and building UI abstractions. But powerful doesn't mean simple. What a lot of code wants is up/down/left/right/a few variations on click. If we then add some functions (I think around 3) to allow search to iterate in a relevant order, we can standardize all our menu code. While one would for now still be writing their own position movement code, that's fine: it's still an improvement, and an improvement we can build better things on top of such as completely static menus that call specific functions with specific labels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ui2Large improvements to the UI and input systems for efficiency of long-term players

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions