From 6c3ec513697d80665a9fdeec51038e1d787d5dc4 Mon Sep 17 00:00:00 2001 From: ackis Date: Fri, 7 Aug 2009 16:54:57 +0000 Subject: [PATCH] We don't need libbabbleclass 3.0 any longer. --- .pkgmeta | 2 -- ARLFrame.lua | 30 +++++++++++++++++------------- AckisRecipeList.lua | 3 +-- RecipeDB/ARL-Jewelcraft.lua | 2 +- RecipeDB/ARL-Tailor.lua | 2 +- 5 files changed, 20 insertions(+), 19 deletions(-) diff --git a/.pkgmeta b/.pkgmeta index b8d1c1c..e38d492 100644 --- a/.pkgmeta +++ b/.pkgmeta @@ -60,8 +60,6 @@ externals: url: svn://svn.wowace.com/wow/libbabble-boss-3-0/mainline/trunk libs/LibBabble-Zone-3.0: url: svn://svn.wowace.com/wow/libbabble-zone-3-0/mainline/trunk - libs/LibBabble-Class-3.0: - url: svn://svn.wowace.com/wow/libbabble-class-3-0/mainline/trunk libs/LibAboutPanel: url: git://git.curseforge.net/wow/libaboutpanel/mainline.git libs/LibBetterBlizzOptions: diff --git a/ARLFrame.lua b/ARLFrame.lua index 3621439..622aabc 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -28,7 +28,6 @@ local MODNAME = "Ackis Recipe List" local addon = LibStub("AceAddon-3.0"):GetAddon(MODNAME) local BFAC = LibStub("LibBabble-Faction-3.0"):GetLookupTable() -local BC = LibStub("LibBabble-Class-3.0"):GetLookupTable() local L = LibStub("AceLocale-3.0"):GetLocale(MODNAME) local QTip = LibStub("LibQTip-1.0") @@ -3814,7 +3813,7 @@ function InitializeFrame() ARL_ClassButton:SetScript("OnClick", function(self,button) local filterdb = addon.db.profile.filters - if button == "LeftButton" then + if (button == "LeftButton") then -- Reset all classes to true filterdb.classes.deathknight = true filterdb.classes.druid = true @@ -3826,7 +3825,7 @@ function InitializeFrame() filterdb.classes.shaman = true filterdb.classes.warlock = true filterdb.classes.warrior = true - elseif button == "RightButton" then + elseif (button == "RightButton") then -- Reset all classes to false filterdb.classes.deathknight = false filterdb.classes.druid = false @@ -3858,45 +3857,50 @@ function InitializeFrame() -- Use new filters ReDisplay() end) + + -- Get the localized class names + local BCM = LOCALIZED_CLASS_NAMES_MALE + --local BCF = LOCALIZED_CLASS_NAMES_FEMALE + local ARL_DeathKnightCB = CreateFrame("CheckButton", "ARL_DeathKnightCB", addon.Fly_General, "UICheckButtonTemplate") addon:GenericMakeCB(ARL_DeathKnightCB, addon.Fly_General, L["CLASS_DESC"], 87, 7, 1, 0) - ARL_DeathKnightCBText:SetText(BC["Deathknight"]) + ARL_DeathKnightCBText:SetText(BCM["DEATHKNIGHT"]) local ARL_DruidCB = CreateFrame("CheckButton", "ARL_DruidCB", addon.Fly_General, "UICheckButtonTemplate") addon:GenericMakeCB(ARL_DruidCB, addon.Fly_General, L["CLASS_DESC"], 88, 8, 1, 0) - ARL_DruidCBText:SetText(BC["Druid"]) + ARL_DruidCBText:SetText(BCM["DRUID"]) local ARL_HunterCB = CreateFrame("CheckButton", "ARL_HunterCB", addon.Fly_General, "UICheckButtonTemplate") addon:GenericMakeCB(ARL_HunterCB, addon.Fly_General, L["CLASS_DESC"], 19, 9, 1, 0) - ARL_HunterCBText:SetText(BC["Hunter"]) + ARL_HunterCBText:SetText(BCM["HUNTER"]) local ARL_MageCB = CreateFrame("CheckButton", "ARL_MageCB", addon.Fly_General, "UICheckButtonTemplate") addon:GenericMakeCB(ARL_MageCB, addon.Fly_General, L["CLASS_DESC"], 20, 10, 1, 0) - ARL_MageCBText:SetText(BC["Mage"]) + ARL_MageCBText:SetText(BCM["MAGE"]) local ARL_PaladinCB = CreateFrame("CheckButton", "ARL_PaladinCB", addon.Fly_General, "UICheckButtonTemplate") addon:GenericMakeCB(ARL_PaladinCB, addon.Fly_General, L["CLASS_DESC"], 25, 11, 1, 0) - ARL_PaladinCBText:SetText(BC["Paladin"]) + ARL_PaladinCBText:SetText(BCM["PALADIN"]) local ARL_PriestCB = CreateFrame("CheckButton", "ARL_PriestCB", addon.Fly_General, "UICheckButtonTemplate") addon:GenericMakeCB(ARL_PriestCB, addon.Fly_General, L["CLASS_DESC"], 26, 12, 1, 0) - ARL_PriestCBText:SetText(BC["Priest"]) + ARL_PriestCBText:SetText(BCM["PRIEST"]) local ARL_RogueCB = CreateFrame("CheckButton", "ARL_RogueCB", addon.Fly_General, "UICheckButtonTemplate") addon:GenericMakeCB(ARL_RogueCB, addon.Fly_General, L["CLASS_DESC"], 81, 13, 1, 0) - ARL_RogueCBText:SetText(BC["Rogue"]) + ARL_RogueCBText:SetText(BCM["ROGUE"]) local ARL_ShamanCB = CreateFrame("CheckButton", "ARL_ShamanCB", addon.Fly_General, "UICheckButtonTemplate") addon:GenericMakeCB(ARL_ShamanCB, addon.Fly_General, L["CLASS_DESC"], 83, 14, 1, 0) - ARL_ShamanCBText:SetText(BC["Shaman"]) + ARL_ShamanCBText:SetText(BCM["SHAMAN"]) local ARL_WarlockCB = CreateFrame("CheckButton", "ARL_WarlockCB", addon.Fly_General, "UICheckButtonTemplate") addon:GenericMakeCB(ARL_WarlockCB, addon.Fly_General, L["CLASS_DESC"], 78, 15, 1, 0) - ARL_WarlockCBText:SetText(BC["Warlock"]) + ARL_WarlockCBText:SetText(BCM["WARLOCK"]) local ARL_WarriorCB = CreateFrame("CheckButton", "ARL_WarriorCB", addon.Fly_General, "UICheckButtonTemplate") addon:GenericMakeCB(ARL_WarriorCB, addon.Fly_General, L["CLASS_DESC"], 1, 16, 1, 0) - ARL_WarriorCBText:SetText(BC["Warrior"]) + ARL_WarriorCBText:SetText(BCM["WARRIOR"]) addon.Fly_Obtain = CreateFrame("Frame", "ARL_Fly_Obtain", addon.Flyaway) addon.Fly_Obtain:SetWidth(112) diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index 9ebacf4..ad500ec 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -53,7 +53,6 @@ do local REQUIRED_LIBS = { "AceLocale-3.0", "LibBabble-Boss-3.0", - "LibBabble-Class-3.0", "LibBabble-Faction-3.0", "LibBabble-Zone-3.0", } @@ -72,7 +71,7 @@ end -- do if MissingLibraries() then --@debug@ - addon:Print("You are using an SVN version of ARL. As per WowAce/Curseforge standards, SVN externals are not set up. You will have to install Ace3, Babble-Faction-3.0, Babble-Zone-3.0, Babble-Boss-3.0, LibBabble-Class-3.0, LibAboutPanel, LibSharedMedia-3.0, LibBetterBlizzoptions and Astrolabe in order for the addon to function correctly.") + addon:Print("You are using an SVN version of ARL. As per WowAce/Curseforge standards, SVN externals are not set up. You will have to install Ace3, Babble-Faction-3.0, Babble-Zone-3.0, Babble-Boss-3.0, LibAboutPanel, LibSharedMedia-3.0, and LibBetterBlizzoptions in order for the addon to function correctly.") --@end-debug@ AckisRecipeList = nil return diff --git a/RecipeDB/ARL-Jewelcraft.lua b/RecipeDB/ARL-Jewelcraft.lua index 8044420..c85efb8 100644 --- a/RecipeDB/ARL-Jewelcraft.lua +++ b/RecipeDB/ARL-Jewelcraft.lua @@ -32,7 +32,7 @@ This source code is released under All Rights Reserved. ]]-- -local MODNAME = "Ackis Recipe List" +local MODNAME = "Ackis Recipe List" local addon = LibStub("AceAddon-3.0"):GetAddon(MODNAME) local L = LibStub("AceLocale-3.0"):GetLocale(MODNAME) diff --git a/RecipeDB/ARL-Tailor.lua b/RecipeDB/ARL-Tailor.lua index 6102975..ce88bdb 100644 --- a/RecipeDB/ARL-Tailor.lua +++ b/RecipeDB/ARL-Tailor.lua @@ -32,7 +32,7 @@ This source code is released under All Rights Reserved. ]]-- -local MODNAME = "Ackis Recipe List" +local MODNAME = "Ackis Recipe List" local addon = LibStub("AceAddon-3.0"):GetAddon(MODNAME) local L = LibStub("AceLocale-3.0"):GetLocale(MODNAME) -- 1.7.9.5