View Single Post
Old 10-24-2019, 01:16 PM   #560
babag
Human being with feelings
 
Join Date: Nov 2009
Posts: 2,230
Default

that didn't seem to do it. this is what i have:
Code:
  elms["button_"..k] = {
    type = "Button",
    z = 1,
    x = ((k - 1) % buttons_per_row) * button_width,
    y = math.floor((k - 1) / buttons_per_row) *  button_height,
    w = button_width,
    h = button_height,
    caption = v.label,
    func = btn_click,
    params = {v.command},
    tooltip = "I'm a button"
  }
still crashes. tried also with/without comma at end of line. also tried wit parentheses instead of curly brackets.
babag is offline   Reply With Quote