JasXSL / SL-XOBJ

A modular approach to LSL that makes it easier to share and communicate between SL scripts
Creative Commons Zero v1.0 Universal
16 stars 4 forks source link

Fix for jas Dialog after DB3 update #5

Closed without-ordinary closed 8 years ago

without-ordinary commented 8 years ago

I thought I had submitted this one a while ago, but apparently not...

Since the callback from jas Dialog returns a keyed json string, the changes from the DB3 update that turned PARAMS from a string into a list breaks reliably reading the callback data.

Cannot do this anymore: integer menu = (integer)llJsonGetValue(PARAMS, ["menu"]); string message = llJsonGetValue(PARAMS, ["message"]);

Suggest dropping the use of keys on jas Dialog callbacks so fixed indexes of 0 for message, 1 for menu, and 2 for user can be used.