Hi,
I am at the moment mentally a little bit boarded up. I am in a button listener in canvas and try to call a function from another module but in the same namespace. The called function is not part of any class.
Now, if I say
voodoomaster.autopilot_change(1)
I get no error, but the function is also not called. What am I missing here?
The mysteries of Nasal
The mysteries of Nasal
Free speech can never be achieved by dictatorial measures!
Re: The mysteries of Nasal
Great, I found in the meantime, the listen function isn't called at all.
the print doesn't come. Other buttons with "clicked" work. So, more glitches in Canvas?
Code: Select all
var btnCmpA = canvas.gui.widgets.Button.new(me.root, canvas.style, {})
.setText("CmpA")
.setCheckable(1) # this indicates that is should be a toggle button
.setChecked(0) # depressed by default
.setFixedSize(45, 25);
btnCmpA.listen("toggle", func(e) {
print("CmpA toggled");
test();
voodoomaster.autopilot_change(1);
if (e.detail.checked) {
the print doesn't come. Other buttons with "clicked" work. So, more glitches in Canvas?
Free speech can never be achieved by dictatorial measures!
Re: The mysteries of Nasal
oh my!
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc
R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?
R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?
Re: The mysteries of Nasal
No worries, now, after I spelled it correctly, it works!
"toggled" not "toggle"
My in honor of Homer Simpson moment ... duh!
"toggled" not "toggle"
My in honor of Homer Simpson moment ... duh!
Free speech can never be achieved by dictatorial measures!
Re: The mysteries of Nasal
You need to sneeze on it -
Gets nasal working every time
Gets nasal working every time
Soundpack requests are currently: PERMANENTLY CLOSED
Current WIP: None
See and download all my work: HERE
Current WIP: None
See and download all my work: HERE
Re: The mysteries of Nasal
I have to do this.
I'm sure you can sniff out all the Nasal errors.....
...
XD
Josh
I'm sure you can sniff out all the Nasal errors.....
...
XD
Josh
Return to “Aircraft Development”
Who is online
Users browsing this forum: No registered users and 32 guests