|
Post by robert on Aug 18, 2018 12:03:57 GMT
Controlling a button's actions from "General" or "On Start" code box or something like that. Not from "On Click".
What's the code template to do that?
|
|
|
Post by runes on Aug 20, 2018 6:07:30 GMT
That was a challenge to figure out There is no built in way to do that in Hippani. But here's a sollution. This should go in On Start: var Button=GetElement("YourButtonID"); Button.onclick=function(){ alert("Hello world!"); }; Only works on export.
|
|
|
Post by robert on Aug 22, 2018 6:09:06 GMT
Another huge step in progress but how do you write it to control more than one button in "On Start"?
Two different buttons (a toggle button and a regular button) only work if one button's code is written in the script.
|
|