TangentFoxy / Pop.Box

(ON HOLD) Pop.Box is an easy to use GUI library for the LÖVE engine, intended for rapid prototyping.
http://guard13007.github.io/Pop.Box/docs
MIT License
8 stars 4 forks source link

Data-driven design capability #26

Closed TangentFoxy closed 7 years ago

TangentFoxy commented 8 years ago

As an alternate to the crazy function-calling I have going on right now:

Data-driven UI design. I want to be able to describe an entire UI without calling any
functions or requiring any libraries.

So, build a table of what you want, and then call pop.something(table) and it will build it.

Related:

An API that dovetails with the data-driven format, such that changing data fields
after the UI has been constructed triggers any appropriate behavior. In other words,
an API primarily based on function-bound properties.

So, when a UI is created that way, it should pay attention to what was passed to it and change appropriately.

Note: I may want to try this as a separate project or a fork of this project, as it is a completely different concept. I may want to have everything be using closures everywhere so it can relate back to the original data and automatically update or something, idk exactly how it would work.