Dialog buttons are backwards. Need a fix? You can use the 55 lines of
code IBM came out with, or use mine which is right around 760 times faster
and 1/15 of the memory:
//Compact function to put buttons in "correct" human-readable order ~ Redux
list order_buttons(list buttons)
{
return llList2List(buttons, -3, -1) + llList2List(buttons, -6, -4) + llList2List(buttons, -9, -7) + llList2List(buttons, -12, -10);
}
//same thing, recursively, slower, but flexible to possible patch changing
//also safe against possible buffer overflow resulting from -neg list handling
list order_buttons(list buttons)
{
integer offset;
list fixt;
while((offset = llGetListLength(buttons)))
{
fixt += llList2List(buttons, offset = -3 * (offset > 3), -1);
buttons = llDeleteSubList(buttons, offset, -1);
}
return fixt;
}
This will turn THIS....
10
7 8 9
4 5 6
1 2 3
...into THIS....
1
2 3 4
5 6 7
8 9 10
works for any size list. Make donations payable to Redux ;)