SO, i am making a game using data2viz and the game...
# data2viz
n
SO, i am making a game using data2viz and the game itself is pretty much done, now i need to add UI around it.. as in.. things that i probably should not cram into d2v like tabs, text, dropdowns, etc... does anyone know a simple way to abstract GUI creation so i can do the same things in html/js and tornadofx without a bunch of duplicated code ?
l
Abstract possible interactions, and user input/output with an
interface
having suspending functions and regular functions.
For suspending functions, think in terms of awaiting the user to do something, like picking an item from a list, doing a particular action regarding some data (or data set), doing some single action (e.g. cancelling something that is ongoing, pressing a next button, submitting some input…)
n
i found https://github.com/lightningkite/koolui and will use it.. or try to, seems like its changing rapidly currently
g
For https://beta.data2viz.io/ I’m currently using my own implementation of redux. It seems to be a nice pattern that could be used in multiplatform code. For a first project, I would start with vanilla code before using or extracting a framework.