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

train station trees #304

Open
ahicks92 opened this issue Oct 31, 2024 · 0 comments
Open

train station trees #304

ahicks92 opened this issue Oct 31, 2024 · 0 comments
Labels
ui2 Large improvements to the UI and input systems for efficiency of long-term players

Comments

@ahicks92
Copy link
Member

This is one of two views over train stations that I think we should have. After a lot of thought I think this works.

Suppose we encourage players to name their stations like "water pickup" or "pickup water", or "pickup water west". This forms a kind of hierarchy. One can debate/reorder based off relevance, but no matter what order you put those parts in, you get a hierarchical relationship. It's hard not to.

So, there's a solution for that called trees. One would press tab in train station selection menus to get to it. Inside it, each level of the tree moves one one word to the right. For example, the first level would be "water", "iron", ... and the second level "dropoff" and "pickup", and the third level where "east" or "west" say. For each layer, if a station "stops" there--e.g. "water pickup" and "water pickup west" it gets an entry below the child words.

This moves train station selection from O(N) to O(log n). It's still not the most convenient thing in the world, but that's a big improvement and would allow managing hundreds of stations at least before it becomes intractable. Right now, hundreds of stations means hundreds of keypresses to select one.

@ahicks92 ahicks92 added the ui2 Large improvements to the UI and input systems for efficiency of long-term players label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui2 Large improvements to the UI and input systems for efficiency of long-term players
Projects
None yet
Development

No branches or pull requests

1 participant