diff --git a/Interface/FilterMenus.lua b/Interface/FilterMenus.lua index 7ad2abf..e054c4b 100644 --- a/Interface/FilterMenus.lua +++ b/Interface/FilterMenus.lua @@ -734,6 +734,8 @@ function private.InitializeFilterPanel() local Valiance_Warsong_Text = isAlliance and BFAC["Valiance Expedition"] or BFAC["Warsong Offensive"] local Frostborn_Taunka_Text = isAlliance and BFAC["The Frostborn"] or BFAC["The Taunka"] local Explorer_Hand_Text = isAlliance and BFAC["Explorers' League"] or BFAC["The Hand of Vengeance"] + local Tol_Barad = isalliance and BFAC["Baradin's Wardens"] or BFAC["Hellscream's Reach"] + local Wildhammer_Dragonmaw = salliance and BFAC["Wildhammer Clan"] or BFAC["Dragonmaw Clan"] ------------------------------------------------------------------------------- -- Used for the tooltip of every reputation checkbox. @@ -955,10 +957,23 @@ function private.InitializeFilterPanel() end local expansion3_buttons = { - ["wrathcommon1"] = { tt = ReputationDesc(Vanguard_Expedition_Text), text = Vanguard_Expedition_Text, row = 2, col = 1 }, + ["catacommon1"] = { tt = ReputationDesc(Wildhammer_Dragonmaw), text = Wildhammer_Dragonmaw, row = 2, col = 1 }, + ["catacommon2"] = { tt = ReputationDesc(Tol_Barad), text = Tol_Barad, row = 3, col = 1 }, + ["guardiansofhyjal"] = { tt = ReputationDesc(BFAC["Guardians of Hyjal"]), text = DisabledText(Explorer_Hand_Text), row = 4, col = 1 }, + ["ramkahen"] = { tt = ReputationDesc(BFAC["Ramkahen"]), text = BFAC["Frenzyheart Tribe"], row = 5, col = 1 }, + ["earthenring"] = { tt = ReputationDesc(BFAC["The Earthen Ring"]), text = BFAC["The Kalu'ak"], row = 6, col = 1 }, + ["therazane"] = { tt = ReputationDesc(BFAC["Therazane"]), text = BFAC["Kirin Tor"], row = 7, col = 1 }, } GenerateCheckBoxes(expansion3_frame, expansion3_buttons) + -- Disable them as the data isn't in yet. + expansion2_frame.catacommon1:Disable() + expansion2_frame.catacommon2:Disable() + expansion2_frame.guardiansofhyjal:Disable() + expansion2_frame.ramkahen:Disable() + expansion2_frame.earthenring:Disable() + expansion2_frame.therazane:Disable() + local expansion3_toggle = GenericCreateButton(nil, expansion3_frame, 15, 120, "GameFontHighlight", _G.REPUTATION .. ":", "LEFT", L["REP_TEXT_DESC"], 0) expansion3_toggle:SetPoint("TOPLEFT", expansion3_frame, "TOPLEFT", -2, -4) @@ -1362,6 +1377,12 @@ function private.InitializeFilterPanel() ------------------------------------------------------------------------------------------------ -- Cataclysm Rep Options ------------------------------------------------------------------------------------------------ + ["catacommon1"] = { cb = expansion2.catacommon1, svroot = nil }, + ["catacommon2"] = { cb = expansion2.catacommon2, svroot = nil }, + ["guardiansofhyjal"] = { cb = expansion2.guardiansofhyjal, svroot = nil }, + ["ramkahen"] = { cb = expansion2.ramkahen, svroot = nil }, + ["earthenring"] = { cb = expansion2.earthenring, svroot = nil }, + ["therazane"] = { cb = expansion2.therazane, svroot = nil }, } private.InitializeFilterPanel = nil end \ No newline at end of file diff --git a/Interface/List.lua b/Interface/List.lua index 788fada..22d4097 100644 --- a/Interface/List.lua +++ b/Interface/List.lua @@ -541,6 +541,12 @@ function private.InitializeListFrame() local REP2 = private.rep_flags_word2 local REP_FILTERS_2 = { [REP2.ASHEN_VERDICT] = "ashenverdict", + [REP2.CATACOMMON1] = "catacommon1" + [REP2.CATACOMMON2] = "catacommon2" + [REP2.GUARDIANS] = "guardiansofhyjal" + [REP2.RAMKAHEN] = "ramkahen" + [REP2.EARTHEN_RING] = "earthenring" + [REP2.THERAZANE] = "therazane" } local CLASS1 = private.class_flags_word1 diff --git a/core.lua b/core.lua index 14c91d3..9e92d4d 100644 --- a/core.lua +++ b/core.lua @@ -453,6 +453,12 @@ function addon:OnInitialize() wrathcommon4 = true, wrathcommon5 = true, ashenverdict = true, + catacommon1 = true, + catacommon2 = true, + guardiansofhyjal = true, + ramkahen = true, + earthenring = true, + therazane = true, }, ------------------------------------------------------------------------------- -- Class Filters