Skip to content

Commit

Permalink
Merge pull request #607 from TheSilverHornet/menushift
Browse files Browse the repository at this point in the history
QoL misclick prevention
  • Loading branch information
AntlerForce authored Mar 21, 2024
2 parents 0e81368 + 7765274 commit c862e8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LuaMenu/widgets/api_user_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c862e8c

Please sign in to comment.