change
self.toggle = (toggle == 1)
to
self.toggle = util.tobool(toggle)
to fix the toggle problem but it doesn't fix the value not saving. It doesn't save because its not registered with adv dup. and the way its built its not the easiest to add.
If you set, for example, an Input to 1 and to toggle and then you could save it with the adv. duplicator. When you paste it the Input automatically will be set to 0 and if you press the input key it will only output 1 as long as you hold down the key.
The toggle just dissapered. Then you have to uppdate the input. Itīs really annoying sometimes
change
self.toggle = (toggle == 1)
to
self.toggle = util.tobool(toggle)
to fix the toggle problem but it doesn't fix the value not saving. It doesn't save because its not registered with adv dup. and the way its built its not the easiest to add.
Bookmarks