setLabelClickCallback("mtar1", matt() )

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: setLabelClickCallback("mtar1", matt() )

Post by Vadi »

Hmm. Did anything come out of this?

Naito
Posts: 18
Joined: Thu Aug 12, 2010 1:36 pm

Re: setLabelClickCallback("mtar1", matt() )

Post by Naito »

EDIT: Scratch that... Question is nul and void >.> Seems I fixed the problem myself.

Naito
Posts: 18
Joined: Thu Aug 12, 2010 1:36 pm

Re: setLabelClickCallback("mtar1", matt() )

Post by Naito »

I hope this is a good thread to ask this.

How would a setLabelClickCallBack work? Heres what I have:
Code: [show] | [select all] lua
createLabel("Stupidity",960,97,90,30,1);
  moveWindow("Stupidity",1000,97,90,30,1)
  setLabelClickCallback("Stupidity","Eat_Lung")
  setLabelStyleSheet("Stupidity", [[background-image: url(]]..gfx_path .. "GreenButton.png"..[[);]])

ALIAS: Eat_Lung

CODE: send("outc lung slice")
send("eat lung_slice")
But it doesn't come up with any kind of error or the like for it not working, doesn't do anything when I attempt to click the label either. I'm going to try and make a function that eats lung slice and see if that works. But thus far nothing is happening

EDIT: With the new function made called 'Eat_Lung()' it comes back with the following error:[ERROR:] object:<event handler function> function:<Eat_Lung()>

Post Reply