I finally worked the bugs out of it and got it working. The biggest problem I had was getting rid of the previously saved defaults. When I added the new code, it threw errors because some arrays were now bigger than previously and conflicted with the previously saved variables.
I was able to get it working by making the following changes:
In Main.Lua file -
1. Under Lootomatic.Defaults section, add the line GreaterThan = false,
2. Replace the line
if (quality <= Lootomatic_Settings.AutoLoot - 2) then loot = true; else closeframe = 1; end;
with the line
if ((Lootomatic_Settings.GreaterThan) and (quality >= Lootomatic_Settings.AutoLoot - 2)) then loot = true;
else if (not(Lootomatic_Settings.GreaterThan) and (quality <= Lootomatic_Settings.AutoLoot - 2)) then loot = true;
else closeframe = 1;
end;
3. Find the entry that begins
menuitem = {};
menuitem.text = tostring(Lootomatic.Strings.NoBoss);....
and after the entry make the following entry
menuitem = {};
menuitem.text = tostring(Lootomatic.Strings.GreaterThan);
menuitem.func = function() Lootomatic_Settings.GreaterThan = not Lootomatic_Settings.GreaterThan; CloseDropDownMenus(1); ToggleDropDownMenu(Lootomatic_Dropdown); end;
if (Lootomatic_Settings.GreaterThan==false) then menuitem.checked = 1;
else menuitem.checked = nil; end;
UIDropDownMenu_AddButton(menuitem,UIDROPDOWNMENU_MENU_LEVEL);
4. Under the "Miscallaneous" section add the entry
local greater = ""; if (Lootomatic_Settings.GreaterThan == true) then greater = ", "..tostring(Lootomatic.Strings.GreaterThan); end;
In locales/EN.lua
1. Under the minimap menue section add the line Lootomatic.Strings.GreaterThan = "Greater"