Pyroxenium / Basalt

A UI Framework for CC:Tweaked
MIT License
189 stars 34 forks source link

Refactor reactive framework #85

Closed thesabinelim closed 1 year ago

thesabinelim commented 1 year ago

Removed most object-specific extensions in order to produce a more agnostic framework.

Also allows for reactive props to be passed to loadLayout() in imperative code, as long as they're wrapped in functions.

Also removes most specific event registration functions in favour of a generic one that looks for properties starting with "on". It would be worth having another look at this in future to determine a better way, but for now this avoids needing to hard code for each object.