Can $did return the button's ID? - 28/12/19 04:17 AM
More specifically,
Can $did() return the number of the button pressed to call the function? i.e.,
I didn't see any identifier to match this purpose in "/help $did", so i'm either blind, or it doesn't exist yet.
Do you guys know what solutions are available?
Can $did() return the number of the button pressed to call the function? i.e.,
Code
dialog example { button "Save without Updating", 1, 135 132 130 12 button "Save and Update", 2, 268 132 129 12, ok } on *:dialog:example:sclick:1-2: { <code code code, variables, stuff.> if ($did().whatnumberwasclicked == 2) { <special code> } }
I didn't see any identifier to match this purpose in "/help $did", so i'm either blind, or it doesn't exist yet.
Do you guys know what solutions are available?