local checksound = questitems:GetScript("OnClick") |
questitems:SetScript("OnClick", function(self) checksound(self); ranch_options["questitems"] = not ranch_options["questitems"]; end) |
questitems:SetChecked(ranch_options["questitems"]) |
|
|
-- Add Display LDB text option |
local ldbtext = LibStub("tekKonfig-Checkbox").new(RanchItemOptions, nil, "Display LDB text when not tracking anything?", "TOPLEFT", questitems, "BOTTOMLEFT", -2, -8) |
local checksound = ldbtext:GetScript("OnClick") |
ldbtext:SetScript("OnClick", function(self) checksound(self); ranch_options["ldbtext"] = not ranch_options["ldbtext"]; Ranch_BAG_UPDATE(nil); end) |
ldbtext:SetChecked(ranch_options["ldbtext"]) |
|
RanchItemOptions:SetScript("OnShow", function(self) displayitems:SetChecked(ranch_options["displayitems"]); mergeitems:SetChecked(ranch_options["mergeitems"]); questitems:SetChecked(ranch_options["questitems"]) end) |
-- Add Items Options to the Interface Menu. |
InterfaceOptions_AddCategory(RanchItemOptions) |