shoebot
shoebot copied to clipboard
var() step/steps don't seem to work properly
e.g. being able to increment variables by specific amounts, or steps.
Sounds good [bikesheds] it should be called step
We should think about how something like var() could work in shoebot.next ... this nodebox var thing doesn't feel exactly right.
step
/steps
was implemented, right? I saw that briefly when documenting vars but didn't test
I can't test right now, but looks like both are supported
https://github.com/shoebot/shoebot/blob/master/shoebot/data/variable.py
Briefly tested it on vars/cornu.bot
and it's not working as expected. Will look further later
Seems like the default in Gtk when things get small is 0.1, you can tweak this by changing the number of digits on the adjustment (amount of decimal points the slider can show while adjusting).
I put in a slightly dumb fix, that says if the difference between min and max > 2 set_digits to 2.
https://github.com/shoebot/shoebot/blob/master/shoebot/gui/var_window.py#L98
It doesn't exactly get you to the right step but it's more usable.