RanchGameTip:CreateFontString( "$parentTextRight1", nil, "GameTooltipText" ) |
); |
|
-- Create the ranch_perm table if it doesn't exist |
-- Create the ranch_perm table if it doesn't exist. |
if ranch_perm == nil then |
ranch_perm = {} |
end |
|
-- Create the ranch_options table if it doesn't exist. |
if ranch_options == nil then |
ranch_options = {} |
end |
|
-- Create the list of types, if it doesn't exist. |
if ranch_options["types"] == nil then |
ranch_options["types"] = {} |
end |
|
-- Create an empty table to hold any temporary items. |
ranch_temp = {} |
|
-- Create the Options Panel. |
RanchPanel = CreateFrame( "Frame", "RanchOptionsPanel", UIParent ); |
RanchPanel.name = "Ranch (LDB)" |
InterfaceOptions_AddCategory(RanchPanel) |
|
-- Add a Title to the Options Panel |
local RanchTitle = RanchPanel:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge") |
RanchTitle:SetPoint("TOP", 0, -16) |
RanchTitle:SetText("Ranch - A Farming Addon") |
|
-- Add a description to the Options Panel |
local RanchDesc = RanchPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlight") |
RanchDesc:SetHeight(48) |
RanchDesc:SetPoint("TOPLEFT", 16, -40) |
RanchDesc:SetPoint("RIGHT", -16, 0) |
RanchDesc:SetNonSpaceWrap(true) |
RanchDesc:SetJustifyH("LEFT") |
RanchDesc:SetJustifyV("TOP") |
RanchDesc:SetText("Ranch is an addon to assist you when farming for items in World of Warcraft. It will keep track of all the trade goods you have collected, along with all of the BoE items and any special, custom items you wish to select.") |
|
local RanchItemsHelp = RanchPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlight") |
RanchItemsHelp:SetHeight(192) |
RanchItemsHelp:SetPoint("TOPLEFT", RanchDesc, "BOTTOMLEFT", 0, -8) |
RanchItemsHelp:SetPoint("RIGHT", -16, 0) |
RanchItemsHelp:SetNonSpaceWrap(true) |
RanchItemsHelp:SetJustifyH("LEFT") |
RanchItemsHelp:SetJustifyV("TOP") |
local helptext = "The Items sub-category deals with how Ranch displays BoE items.\n\n" |
helptext = helptext.."The Types sub-category controls which types of trade items Ranch displays.\n\n" |
helptext = helptext.."The Track sub-category controls the item being tracked in the LDB display.\n\n" |
helptext = helptext.."The Temporary sub-category controls the items being displayed in the LDB tooltip for this session only.\n\n" |
helptext = helptext.."The Permanent sub-category controls the items being permanently displayed in the LDB tooltip." |
RanchItemsHelp:SetText(helptext) |
|
-- Register the BAG_UPDATE event. |
RanchFrame:RegisterEvent("BAG_UPDATE"); |
|