From 7bf262c61e9c2eab041d2a457c24fe689e0bb378 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Fri, 25 Aug 2017 21:51:25 +0200 Subject: [PATCH] Fix llDialog with empty buttons list for OpenSim. The optimizer removes the extra "OK" for SL. --- AVsitter2/Plugins/AVcontrol/[AV]root-RLV.lsl | 2 +- AVsitter2/Plugins/AVprop/[AV]menu.lsl | 4 ++-- AVsitter2/[AV]adjuster.lsl | 2 +- AVsitter2/[AV]root-security.lsl | 4 ++-- AVsitter2/[AV]sitA.lsl | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/AVsitter2/Plugins/AVcontrol/[AV]root-RLV.lsl b/AVsitter2/Plugins/AVcontrol/[AV]root-RLV.lsl index 8ed707f..f7008cb 100644 --- a/AVsitter2/Plugins/AVcontrol/[AV]root-RLV.lsl +++ b/AVsitter2/Plugins/AVcontrol/[AV]root-RLV.lsl @@ -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() diff --git a/AVsitter2/Plugins/AVprop/[AV]menu.lsl b/AVsitter2/Plugins/AVprop/[AV]menu.lsl index 7bb5fcd..8ea7862 100644 --- a/AVsitter2/Plugins/AVprop/[AV]menu.lsl +++ b/AVsitter2/Plugins/AVprop/[AV]menu.lsl @@ -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); } } diff --git a/AVsitter2/[AV]adjuster.lsl b/AVsitter2/[AV]adjuster.lsl index 900ec1e..4334665 100644 --- a/AVsitter2/[AV]adjuster.lsl +++ b/AVsitter2/[AV]adjuster.lsl @@ -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()); } diff --git a/AVsitter2/[AV]root-security.lsl b/AVsitter2/[AV]root-security.lsl index b2c6dcf..e50c5e8 100644 --- a/AVsitter2/[AV]root-security.lsl +++ b/AVsitter2/[AV]root-security.lsl @@ -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); } } diff --git a/AVsitter2/[AV]sitA.lsl b/AVsitter2/[AV]sitA.lsl index fcb2b7d..ad601c6 100644 --- a/AVsitter2/[AV]sitA.lsl +++ b/AVsitter2/[AV]sitA.lsl @@ -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()