Fix llDialog with empty buttons list for OpenSim.
The optimizer removes the extra "OK" for SL.
This commit is contained in:
parent
b71c5e4287
commit
7bf262c61e
5 changed files with 7 additions and 7 deletions
|
@ -493,7 +493,7 @@ find_seat(key id, integer index, string msg, integer captureSub)
|
|||
|
||||
info_dialog(key id, string text)
|
||||
{
|
||||
llDialog(id, product + " " + version + "\n\nSorry, " + text + ".\n", [], -7947386);
|
||||
llDialog(id, product + " " + version + "\n\nSorry, " + text + ".\n", ["OK"], -7947386);
|
||||
}
|
||||
|
||||
hovertext()
|
||||
|
|
|
@ -130,12 +130,12 @@ menu_check(string name, key id)
|
|||
}
|
||||
else
|
||||
{
|
||||
llDialog(id, product + " " + version + "\n\n" + llList2String(llParseString2List(last_menu_avatar, [" "], []), 0) + " is already using the menu.\nPlease wait a moment.", [], -585868);
|
||||
llDialog(id, product + " " + version + "\n\n" + llList2String(llParseString2List(last_menu_avatar, [" "], []), 0) + " is already using the menu.\nPlease wait a moment.", ["OK"], -585868);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
llDialog(id, product + " " + version + "\n\n" + "Sorry, the owner has set this menu to: " + llList2String(MENUCONTROL_TYPES, MENUCONTROL_INDEX), [], -585868);
|
||||
llDialog(id, product + " " + version + "\n\n" + "Sorry, the owner has set this menu to: " + llList2String(MENUCONTROL_TYPES, MENUCONTROL_INDEX), ["OK"], -585868);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -275,7 +275,7 @@ string sitter_text(integer sitter)
|
|||
remove_script(string reason)
|
||||
{
|
||||
string message = "\n" + llGetScriptName() + " ==Script Removed==\n\n" + reason;
|
||||
llDialog(llGetOwner(), message, [], -3675);
|
||||
llDialog(llGetOwner(), message, ["OK"], -3675);
|
||||
llInstantMessage(llGetOwner(), message);
|
||||
llRemoveInventory(llGetScriptName());
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ check_sitters()
|
|||
if (pass_security(av, "SIT") == FALSE)
|
||||
{
|
||||
llUnSit(av);
|
||||
llDialog(av, product + "\n\nSorry, Sit access is set to: " + llList2String(SIT_TYPES, SIT_INDEX), [], -164289491);
|
||||
llDialog(av, product + "\n\nSorry, Sit access is set to: " + llList2String(SIT_TYPES, SIT_INDEX), ["OK"], -164289491);
|
||||
}
|
||||
i--;
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ register_touch(key id, integer animation_menu_function, integer active_prim, int
|
|||
}
|
||||
else if (giveFailedMessage)
|
||||
{
|
||||
llDialog(id, product + "\n\nSorry, Menu access is set to: " + llList2String(MENU_TYPES, MENU_INDEX), [], -164289491);
|
||||
llDialog(id, product + "\n\nSorry, Menu access is set to: " + llList2String(MENU_TYPES, MENU_INDEX), ["OK"], -164289491);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -177,7 +177,7 @@ wipe_sit_targets()
|
|||
|
||||
primcount_error()
|
||||
{
|
||||
llDialog(llGetOwner(), "\nThere aren't enough prims for required SitTargets.\nYou must have one prim for each avatar to sit!", [], 23658);
|
||||
llDialog(llGetOwner(), "\nThere aren't enough prims for required SitTargets.\nYou must have one prim for each avatar to sit!", ["OK"], 23658);
|
||||
}
|
||||
|
||||
sittargets()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue