exerro / Sheets

Yet another GUI framework for ComputerCraft.
5 stars 2 forks source link

Dynamic value percentages #37

Closed exerro closed 7 years ago

exerro commented 7 years ago

Implement percentages in dynamic values. They should be context sensitive, with a few inbuilt ones, and a good framework for adding in custom ones.

exerro commented 7 years ago

Percentages should simply map to an AST structure, for example 100% -> 100/100 * parent.width -> parent.width. It might be useful to have dynamically generated AST values. Not really sure why, but it can't hurt. As such, functions should be supported as this AST value (where in fact they return the AST value (or even another function, just for fun?)).