OrnitheMC / ornithe-standard-libraries

Apache License 2.0
8 stars 5 forks source link

Discuss the API for a ScreenBuilder to allow a stable API for building in-game screens #1

Open SRAZKVT opened 1 year ago

SRAZKVT commented 1 year ago

Let's discuss the API such a builder should have, including, but not limited to :

SRAZKVT commented 1 year ago

@SpaceWalkerRS and i thought about using a declarative api, using a builder, though, if someone has a better idea, they are free to say so

SpaceWalkerRS commented 1 year ago

I reckon it makes sense to keep it fairly simple. So e.g. no complex structures like sub-screens (just open a new screen like vanilla does). Though ig we don't have to lock it down, so people can extend the system with more complex structures if they wish.

SRAZKVT commented 1 year ago

yes, it being extandable should be a requirement, probably using minimal interfaces for most basic components. Though, i guess common extensions making it into the base builder wouldn't hurt, if it is something very commonly used, but we aren't there yet.