From 7765274bd95b4ef2b27dee999c34c746807beb81 Mon Sep 17 00:00:00 2001 From: Hornet <37483246+TheSilverHornet@users.noreply.github.com> Date: Wed, 20 Mar 2024 22:29:09 +0000 Subject: [PATCH] QoL misclick prevention --- LuaMenu/widgets/api_user_handler.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LuaMenu/widgets/api_user_handler.lua b/LuaMenu/widgets/api_user_handler.lua index fc516817c..9769b4bfb 100644 --- a/LuaMenu/widgets/api_user_handler.lua +++ b/LuaMenu/widgets/api_user_handler.lua @@ -215,11 +215,12 @@ local function GetUserComboBoxOptions(userName, isInBattle, control, showTeamCol if isInBattle and not bs.isSpectator and (iAmBoss or iPlay or (bs.aiLib and bs.owner == myUserName)) then comboOptions[#comboOptions + 1] = "Change Team" comboOptions[#comboOptions + 1] = "Add Bonus" end if (iAmBoss or iPlay) and not bs.aiLib and isInBattle and not bs.isSpectator then comboOptions[#comboOptions + 1] = "Force Spectator" end - if (iAmBoss or iPlay) and not (control.isSingleplayer or bs.aiLib or info.isBot) and isInBattle then comboOptions[#comboOptions + 1] = userName ~= boss and "Make Boss" or "Disable Boss" end if (iAmBoss or iPlay) and not itsme and not info.isBot and isInBattle and not bs.aiLib then comboOptions[#comboOptions + 1] = "Kickban" end if bs.aiLib and bs.owner == myUserName and isInBattle then comboOptions[#comboOptions + 1] = "Remove" end if not itsme and not info.isBot and not bs.aiLib then comboOptions[#comboOptions + 1] = "Report User" end comboOptions[#comboOptions + 1] = "Copy Name" + if (iAmBoss or iPlay) and not (control.isSingleplayer or bs.aiLib or info.isBot) and isInBattle then comboOptions[#comboOptions + 1] = "\255\120\120\120" .. "--------------" + comboOptions[#comboOptions + 1] = userName ~= boss and "Make Boss" or "Disable Boss" end if #comboOptions == 0 then comboOptions[1] = Label:New {