Open HLXII opened 3 years ago
All great feedback!
save(): SaveField[] {
return [
new NumberField(this.money, 0).
]
}
Feature
. That way if you delete your feature, there is no more useless code hanging around.The main reason there is no docs on the UI yet, is that I wanted the project to be script first. After the library, all this stuff will be in the template
, and explained in the demo
.
.has-tooltip
and .tooltip
css classes.Thanks gain for the feedback, very useful!
Been working with this framework for a bit. Just wanted to record all the small suggestions I've accumulated. Not sure how this list will be affected by the transition to an NPM package though.
Saving
There doesn't seem to be an entry in the docs for implementing saves. Adding some would be nice. Here are some suggestions for the saving implementation as well:
SaveData
interface.Feature
definition to force this somehow? Not too familiar with generics though...SAVE_KEY
property inGame.ts
would probably be good, as I found that out by skimming the code. That might also be something that's exported when this is transitioned to an NPM package though.Hotkeys
Built-in UI
This section is mostly because I'm not that familiar with TailwindCSS yet.