WoWInterface SVN Ranch

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 20 to Rev 21
    Reverse comparison

Rev 20 → Rev 21

ranch.lua
68,6 → 68,11
ranch_options["questitems"] = true
end
 
--Create the LDB text option, if it doesn't exist
if ranch_options["ldbtext"] == nil then
ranch_options["ldbtext"] = true
end
 
-- Create an empty table to hold any temporary items.
ranch_temp = {}
 
100,7 → 105,13
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)
357,9 → 368,11
 
function Ranch_BAG_UPDATE(...)
if ranchtrack ~= nil then
dataobj.text = "|r|"..ranchtrack.." - "..GetItemCount(ranchtrack)
dataobj.text = "|r|"..ranchtrack.." - "..GetItemCount(ranchtrack);
elseif ranch_options["ldbtext"] then
dataobj.text = "Ranch";
else
dataobj.text = "Ranch"
dataobj.text = "";
end
end
 
ranch.toc
1,7 → 1,7
## Interface: 30200
## Interface: 30300
## Title : Ranch
## Notes: Keeps track of items you've farmed.
## Author: Sekrin@Argent Dawn-EU
## Author: Sekrin@The Sha'tar-EU
## Version: 1.0.wowi:revision
## SavedVariablesPerCharacter: ranch_perm, ranch_options