Page 1 of 1

Geyser.Label:setClickCallback send a table when the second arg is not given

Posted: Thu Nov 26, 2020 4:37 am
by ecloud
My function is like: bot.start(name, botloop)
I call it from a Geyser.Label like: JB1:setClickCallback(UI.jobbar.c[1], UI.jobbar.arg[1])
So that means the name is UI.jobbar.arg[1], while the botloop should be nil because it's not given.
But there is a table sent to the function bot.start as the second arg:

Code: Select all

{
  y = 17,
  x = 12,
  globalX = 1302,
  buttons = {
    "LeftButton"
  },
  button = "LeftButton",
  globalY = 447
}

Re: Geyser.Label:setClickCallback send a table when the second arg is not given

Posted: Thu Nov 26, 2020 5:45 am
by demonnic
Yes, that is sent with every click callback. https://wiki.mudlet.org/w/Manual:Lua_Fu ... ckCallback has more information