1
0
Bifurcation 0

Initial Pandaria commit.

Cette révision appartient à :
Nathanial.C.Jones 2012-09-25 02:00:15 +00:00
Parent 03f2ef0f66
révision d0b3c20aba
21 fichiers modifiés avec 190 ajouts et 193 suppressions

Voir le fichier

@ -1,4 +1,4 @@
## Interface: 40300 ## Interface: 50001
## Title: QuestHelper Data (Base) ## Title: QuestHelper Data (Base)
## Author: zorbathut, smariot, vipersniper, nesher, nconantj ## Author: zorbathut, smariot, vipersniper, nesher, nconantj
## Notes: Contains the data needed by QuestHelper ## Notes: Contains the data needed by QuestHelper

Voir le fichier

@ -1,4 +1,4 @@
## Interface: 40300 ## Interface: 50001
## Title: QuestHelper Data (deDE) ## Title: QuestHelper Data (deDE)
## Author: zorbathut, smariot, vipersniper, nesher, nconantj ## Author: zorbathut, smariot, vipersniper, nesher, nconantj
## Notes: Contains the data needed by QuestHelper ## Notes: Contains the data needed by QuestHelper

Voir le fichier

@ -1,4 +1,4 @@
## Interface: 40300 ## Interface: 50001
## Title: QuestHelper Data (enUS) ## Title: QuestHelper Data (enUS)
## Author: zorbathut, smariot, vipersniper, nesher, nconantj ## Author: zorbathut, smariot, vipersniper, nesher, nconantj
## Notes: Contains the data needed by QuestHelper ## Notes: Contains the data needed by QuestHelper

Voir le fichier

@ -1,4 +1,4 @@
## Interface: 40300 ## Interface: 50001
## Title: QuestHelper Data (esES) ## Title: QuestHelper Data (esES)
## Author: zorbathut, smariot, vipersniper, nesher, nconantj ## Author: zorbathut, smariot, vipersniper, nesher, nconantj
## Notes: Contains the data needed by QuestHelper ## Notes: Contains the data needed by QuestHelper

Voir le fichier

@ -1,4 +1,4 @@
## Interface: 40300 ## Interface: 50001
## Title: QuestHelper Data (esMX) ## Title: QuestHelper Data (esMX)
## Author: zorbathut, smariot, vipersniper, nesher, nconantj ## Author: zorbathut, smariot, vipersniper, nesher, nconantj
## Notes: Contains the data needed by QuestHelper ## Notes: Contains the data needed by QuestHelper

Voir le fichier

@ -1,4 +1,4 @@
## Interface: 40300 ## Interface: 50001
## Title: QuestHelper Data (frFR) ## Title: QuestHelper Data (frFR)
## Author: zorbathut, smariot, vipersniper, nesher, nconantj ## Author: zorbathut, smariot, vipersniper, nesher, nconantj
## Notes: Contains the data needed by QuestHelper ## Notes: Contains the data needed by QuestHelper

Voir le fichier

@ -1,4 +1,4 @@
## Interface: 40300 ## Interface: 50001
## Title: QuestHelper Data (koKR) ## Title: QuestHelper Data (koKR)
## Author: zorbathut, smariot, vipersniper, nesher, nconantj ## Author: zorbathut, smariot, vipersniper, nesher, nconantj
## Notes: Contains the data needed by QuestHelper ## Notes: Contains the data needed by QuestHelper

Voir le fichier

@ -1,4 +1,4 @@
## Interface: 40300 ## Interface: 50001
## Title: QuestHelper Data (ruRU) ## Title: QuestHelper Data (ruRU)
## Author: zorbathut, smariot, vipersniper, nesher, nconantj ## Author: zorbathut, smariot, vipersniper, nesher, nconantj
## Notes: Contains the data needed by QuestHelper ## Notes: Contains the data needed by QuestHelper

Voir le fichier

@ -1,4 +1,4 @@
## Interface: 40300 ## Interface: 50001
## Title: QuestHelper Data (zhCN) ## Title: QuestHelper Data (zhCN)
## Author: zorbathut, smariot, vipersniper, nesher, nconantj ## Author: zorbathut, smariot, vipersniper, nesher, nconantj
## Notes: Contains the data needed by QuestHelper ## Notes: Contains the data needed by QuestHelper

Voir le fichier

@ -1,4 +1,4 @@
## Interface: 40300 ## Interface: 50001
## Title: QuestHelper Data (zhTW) ## Title: QuestHelper Data (zhTW)
## Author: zorbathut, smariot, vipersniper, nesher, nconantj ## Author: zorbathut, smariot, vipersniper, nesher, nconantj
## Notes: Contains the data needed by QuestHelper ## Notes: Contains the data needed by QuestHelper

Voir le fichier

@ -1,4 +1,4 @@
## Interface: 40300 ## Interface: 50001
## Title: QuestHelper ## Title: QuestHelper
## Author: zorbathut, smariot, vipersniper, nesher, nconantj ## Author: zorbathut, smariot, vipersniper, nesher, nconantj
## Notes: Calculates an optimal route for you to follow while questing. ## Notes: Calculates an optimal route for you to follow while questing.
@ -69,8 +69,8 @@ bst_ctl.lua
libs\ChatThrottleLib\ChatThrottleLib.xml libs\ChatThrottleLib\ChatThrottleLib.xml
bst_range.lua bst_range.lua
libs\LibRangeCheck-2.0\CallbackHandler-1.0\CallbackHandler-1.0.xml #-libs\LibRangeCheck-2.0\CallbackHandler-1.0\CallbackHandler-1.0.xml
libs\LibRangeCheck-2.0\LibRangeCheck-2.0.lua #-libs\LibRangeCheck-2.0\LibRangeCheck-2.0.lua
bst_mapdata.lua bst_mapdata.lua
libs\LibMapData-1.0\Libs\CallbackHandler-1.0 libs\LibMapData-1.0\Libs\CallbackHandler-1.0
@ -114,7 +114,7 @@ recycle.lua
pattern.lua pattern.lua
# Database module. Depends on nothing, calls no external functions. # Database module. Depends on nothing, calls no external functions.
db_get.lua #-db_get.lua
# Timeslice module. Depends on nothing, calls no external functions besides a few basic system-API things. # Timeslice module. Depends on nothing, calls no external functions besides a few basic system-API things.
timeslice.lua timeslice.lua
@ -129,30 +129,30 @@ manager_achievement.lua
manager_completed.lua manager_completed.lua
# Graph module. Depends on nothing, calls no external functions. # Graph module. Depends on nothing, calls no external functions.
graph_core.lua #-graph_core.lua
graph_flightpath.lua #-graph_flightpath.lua
# Routing module. Depends on Timeslice and Filters, calls almost no external functions (handles its own get-player-position stuff via RetrieveRawLocation, but that's it.) # Routing module. Depends on Timeslice and Filters, calls almost no external functions (handles its own get-player-position stuff via RetrieveRawLocation, but that's it.)
routing_debug.lua #-routing_debug.lua
routing_loc.lua #-routing_loc.lua
routing_route.lua #-routing_route.lua
routing_core.lua #-routing_core.lua
routing_controller.lua #-routing_controller.lua
# this segment uses the menu system as well # this segment uses the menu system as well
routing_hidden.lua #-routing_hidden.lua
# Filters. Pays attention to QH_pref but not a lot more. # Filters. Pays attention to QH_pref but not a lot more.
filter_core.lua #-filter_core.lua
filter_base.lua #-filter_base.lua
# New tooltip system. Depends on nothing, calls nothing besides WoW UI. # New tooltip system. Depends on nothing, calls nothing besides WoW UI.
tooltip.lua tooltip.lua
# Directors # Directors
# Quest module. Depends on Database, Routing, Patterns, Tooltip, and Event Manager, interfaces with WoW UI. # Quest module. Depends on Database, Routing, Patterns, Tooltip, and Event Manager, interfaces with WoW UI.
director_quest.lua #-director_quest.lua
director_achievement.lua #-director_achievement.lua
director_find.lua #-director_find.lua
# Map and minimap dodads. Old code. Depends on nothing, interfaces with WoW UI. # Map and minimap dodads. Old code. Depends on nothing, interfaces with WoW UI.
dodads.lua dodads.lua
@ -167,21 +167,21 @@ core.lua
radar.lua radar.lua
upgrade.lua #-upgrade.lua
main.lua main.lua
objective.lua objective.lua
quest.lua quest.lua
teleport.lua teleport.lua
pathfinding.lua #-pathfinding.lua
routing.lua routing.lua
custom.lua custom.lua
menu.lua menu.lua
nag.lua nag.lua
comm.lua comm.lua
mapbutton.lua #-mapbutton.lua
flightpath.lua flightpath.lua
tracker.lua #-tracker.lua
objtips.lua objtips.lua
textviewer.lua textviewer.lua
help.lua help.lua

Voir le fichier

@ -34,11 +34,11 @@ local invloc_lookup_proto = {
INVTYPE_2HWEAPON = {"MainHandSlot"}, INVTYPE_2HWEAPON = {"MainHandSlot"},
INVTYPE_WEAPONMAINHAND = {"MainHandSlot"}, INVTYPE_WEAPONMAINHAND = {"MainHandSlot"},
INVTYPE_WEAPONOFFHAND = {"SecondaryHandSlot"}, INVTYPE_WEAPONOFFHAND = {"SecondaryHandSlot"},
INVTYPE_HOLDABLE = {"RangedSlot"}, --INVTYPE_HOLDABLE = {"RangedSlot"},
INVTYPE_RANGED = {"RangedSlot"}, --INVTYPE_RANGED = {"RangedSlot"},
INVTYPE_THROWN = {"RangedSlot"}, --INVTYPE_THROWN = {"RangedSlot"},
INVTYPE_RANGEDRIGHT = {"RangedSlot"}, --INVTYPE_RANGEDRIGHT = {"RangedSlot"},
INVTYPE_RELIC = {"RangedSlot"}, --INVTYPE_RELIC = {"RangedSlot"},
} }
local invloc_lookup = {} local invloc_lookup = {}

Voir le fichier

@ -36,7 +36,7 @@ local function MembersUpdate()
--QuestHelper:TextOut("MU start") --QuestHelper:TextOut("MU start")
members = {} -- we burn a table every time this updates, but whatever members = {} -- we burn a table every time this updates, but whatever
members_count = 0 members_count = 0
if GetNumRaidMembers() > 0 then if IsInRaid() then
-- we is in a raid -- we is in a raid
for i = 1, 40 do for i = 1, 40 do
local ite = string.format("raid%d", i) local ite = string.format("raid%d", i)
@ -47,7 +47,7 @@ local function MembersUpdate()
--QuestHelper:TextOut(string.format("raid member %s added", UnitName(ite))) --QuestHelper:TextOut(string.format("raid member %s added", UnitName(ite)))
end end
end end
elseif GetNumPartyMembers() > 0 then elseif GetNumGroupMembers() > 0 then
-- we is in a party -- we is in a party
for i = 1, 4 do for i = 1, 4 do
local ite = string.format("party%d", i) local ite = string.format("party%d", i)
@ -531,9 +531,7 @@ local function LootOpened()
for i = 1, GetNumLootItems() do for i = 1, GetNumLootItems() do
tex, name, quant, qual, locked = GetLootSlotInfo(i) tex, name, quant, qual, locked = GetLootSlotInfo(i)
link = GetLootSlotLink(i) link = GetLootSlotLink(i)
local curr = LootSlotIsCurrency(i) local slotType = GetLootSlotType(i)
local coin = LootSlotIsCoin(i)
local itm = LootSlotIsItem(i)
if quant == 0 then if quant == 0 then
-- moneys -- moneys
@ -544,7 +542,7 @@ local function LootOpened()
tot = (tonumber(gold) or 0) * 10000 + (tonumber(silver) or 0) * 100 + (tonumber(copper) or 0) * 1 tot = (tonumber(gold) or 0) * 10000 + (tonumber(silver) or 0) * 100 + (tonumber(copper) or 0) * 1
items[PseudoIDs["gold"]] = tot items[PseudoIDs["gold"]] = tot
else else
if curr then if slotType == LOOT_SLOT_CURRENCY then
if not QHC.PseudoIDs[name] then if not QHC.PseudoIDs[name] then
QHC.PseudoIDsMin = QHC.PseudoIDsMin - 1 QHC.PseudoIDsMin = QHC.PseudoIDsMin - 1
QHC.PseudoIDs[name] = QHC.PseudoIDsMin QHC.PseudoIDs[name] = QHC.PseudoIDsMin
@ -553,9 +551,9 @@ local function LootOpened()
else else
if not link and not name then if not link and not name then
local msg = "Texture is " .. tostring(tex) .. " with a quantity of " .. tostring(quant) .. ", a quality of " .. qual .. "." local msg = "Texture is " .. tostring(tex) .. " with a quantity of " .. tostring(quant) .. ", a quality of " .. qual .. "."
if coin then if slotType == LOOT_SLOT_MONEY then
QuestHelper:Assert(false, "Loot slot " .. tostring(i) .. " is coin. " .. msg) QuestHelper:Assert(false, "Loot slot " .. tostring(i) .. " is coin. " .. msg)
elseif itm then elseif slotType == LOOT_SLOT_ITEM then
QuestHelper:Assert(false, "Loot slot " .. tostring(i) .. " is item. " .. msg) QuestHelper:Assert(false, "Loot slot " .. tostring(i) .. " is item. " .. msg)
else else
QuestHelper_ErrorCatcher_ExplicitError(false, "Loot slot " .. tostring(i) .. " is ???. " .. msg) QuestHelper_ErrorCatcher_ExplicitError(false, "Loot slot " .. tostring(i) .. " is ???. " .. msg)

Voir le fichier

@ -16,7 +16,8 @@ local classlookup = {
["ROGUE"] = "R", ["ROGUE"] = "R",
["SHAMAN"] = "S", ["SHAMAN"] = "S",
["WARLOCK"] = "L", ["WARLOCK"] = "L",
["WARRIOR"] = "W" ["WARRIOR"] = "W",
["MONK"] = "O"
}; };
local racelookup = { local racelookup = {
@ -32,7 +33,8 @@ local racelookup = {
["Tauren"] = "N", ["Tauren"] = "N",
["Undead"] = "U", ["Undead"] = "U",
["BloodElf"] = "B", ["BloodElf"] = "B",
["Goblin"] = "L" ["Goblin"] = "L",
["Pandaren"] = "P"
-- lol i spelled nub -- lol i spelled nub
} }
@ -46,7 +48,7 @@ local function GetSpecBolus()
--local bso = Bitstream.Output(8) --local bso = Bitstream.Output(8)
local talents = {} local talents = {}
local points = (GetUnspentTalentPoints() or 0) --local points = (GetUnspentTalentPoints() or 0)
local talents_learned = false local talents_learned = false
for t = 1, GetNumTalentTabs() do -- come on. Is this ever not going to be 3? Seriously? Perhaps someday, but not as of Cat. for t = 1, GetNumTalentTabs() do -- come on. Is this ever not going to be 3? Seriously? Perhaps someday, but not as of Cat.
local _, tab, _, _, p, _, _, yn = GetTalentTabInfo(t) local _, tab, _, _, p, _, _, yn = GetTalentTabInfo(t)

Voir le fichier

@ -9,6 +9,6 @@ QuestHelper.Astrolabe = QH_Astrolabe_Ready and DongleStub("Astrolabe-0.4-QuestHe
local walker = QuestHelper:CreateWorldMapWalker() local walker = QuestHelper:CreateWorldMapWalker()
QuestHelper.minimap_marker = QuestHelper:CreateMipmapDodad() QuestHelper.minimap_marker = QuestHelper:CreateMipmapDodad()
QH_Route_RegisterNotification(function (route) walker:RouteChanged(route) end) --QH_Route_RegisterNotification(function (route) walker:RouteChanged(route) end)
QH_Route_RegisterNotification(function (route) QH_Tracker_UpdateRoute(route) end) --QH_Route_RegisterNotification(function (route) QH_Tracker_UpdateRoute(route) end)
QH_Route_RegisterNotification(function (route) QuestHelper.minimap_marker:SetObjective(route[2]) end) --QH_Route_RegisterNotification(function (route) QuestHelper.minimap_marker:SetObjective(route[2]) end)

Voir le fichier

@ -1,13 +1,13 @@
## Interface: 40000 ## Interface: 50001
## Title: Lib: RangeCheck-2.0 ## Title: Lib: RangeCheck-2.0
## Notes: A library to determine estimated range. ## Notes: A library to determine estimated range.
## Author: mitch0 ## Author: mitch0
## Version: 3.6.0 ## Version: v3.7.0
## LoadOnDemand: 1 ## LoadOnDemand: 1
## X-Category: Library ## X-Category: Library
## X-AceLibrary-LibRangeCheck-2.0: true ## X-AceLibrary-LibRangeCheck-2.0: true
## X-License: Public Domain ## X-License: Public Domain
## X-Curse-Packaged-Version: v3.6.0 ## X-Curse-Packaged-Version: v3.7.0
## X-Curse-Project-Name: LibRangeCheck-2.0 ## X-Curse-Project-Name: LibRangeCheck-2.0
## X-Curse-Project-ID: librangecheck-2-0 ## X-Curse-Project-ID: librangecheck-2-0
## X-Curse-Repository-ID: wow/librangecheck-2-0/mainline ## X-Curse-Repository-ID: wow/librangecheck-2-0/mainline

Voir le fichier

@ -1,6 +1,6 @@
--[[ --[[
Name: LibRangeCheck-2.0 Name: LibRangeCheck-2.0
Revision: $Revision: 113 $ Revision: $Revision: 124 $
Author(s): mitch0 Author(s): mitch0
Website: http://www.wowace.com/projects/librangecheck-2-0/ Website: http://www.wowace.com/projects/librangecheck-2-0/
Description: A range checking library based on interact distances and spell ranges Description: A range checking library based on interact distances and spell ranges
@ -41,7 +41,7 @@ License: Public Domain
-- @class file -- @class file
-- @name LibRangeCheck-2.0 -- @name LibRangeCheck-2.0
local MAJOR_VERSION = "LibRangeCheck-2.0" local MAJOR_VERSION = "LibRangeCheck-2.0"
local MINOR_VERSION = tonumber(("$Revision: 113 $"):match("%d+")) + 100000 local MINOR_VERSION = tonumber(("$Revision: 124 $"):match("%d+")) + 100000
local lib, oldminor = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION) local lib, oldminor = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION)
if not lib then if not lib then
@ -122,12 +122,11 @@ HarmSpells["MAGE"] = {
FriendSpells["PALADIN"] = { FriendSpells["PALADIN"] = {
635, -- ["Holy Light"], -- 40 635, -- ["Holy Light"], -- 40
20217, -- ["Blessing of Kings"], -- 30 20217, -- ["Blessing of Kings"], -- 30
20473, -- ["Holy Shock"], -- 20
} }
HarmSpells["PALADIN"] = { HarmSpells["PALADIN"] = {
62124, -- ["Hand of Reckoning"], -- 30 62124, -- ["Hand of Reckoning"], -- 30
20473, -- ["Holy Shock"], -- 20 -- 20473, -- ["Holy Shock"], -- 20
20271, -- ["Judgement"], -- 10 (Improved Judgement: +10, +20; Elnightened Judgements: +5, +10) 20271, -- ["Judgement"], -- 10 (Improved Judgement: +10, +20; Enlightened Judgements: +5, +10)
853, -- ["Hammer of Justice"], -- 10 (Glyph of Hammer of Justice: +5) 853, -- ["Hammer of Justice"], -- 10 (Glyph of Hammer of Justice: +5)
35395, -- ["Crusader Strike"], -- 5 35395, -- ["Crusader Strike"], -- 5
} }
@ -331,6 +330,8 @@ local tremove = tremove
local BOOKTYPE_SPELL = BOOKTYPE_SPELL local BOOKTYPE_SPELL = BOOKTYPE_SPELL
local GetSpellInfo = GetSpellInfo local GetSpellInfo = GetSpellInfo
local GetSpellBookItemName = GetSpellBookItemName local GetSpellBookItemName = GetSpellBookItemName
local GetNumSpellTabs = GetNumSpellTabs
local GetSpellTabInfo = GetSpellTabInfo
local GetItemInfo = GetItemInfo local GetItemInfo = GetItemInfo
local UnitCanAttack = UnitCanAttack local UnitCanAttack = UnitCanAttack
local UnitCanAssist = UnitCanAssist local UnitCanAssist = UnitCanAssist
@ -427,14 +428,16 @@ local function initItemRequests(cacheAll)
foundNewItems = nil foundNewItems = nil
end end
local function getNumSpells()
local _, _, offset, numSpells = GetSpellTabInfo(GetNumSpellTabs())
return offset + numSpells
end
-- return the spellIndex of the given spell by scanning the spellbook -- return the spellIndex of the given spell by scanning the spellbook
local function findSpellIdx(spellName) local function findSpellIdx(spellName)
local i = 1 for i = 1, getNumSpells() do
while true do
local spell, rank = GetSpellBookItemName(i, BOOKTYPE_SPELL) local spell, rank = GetSpellBookItemName(i, BOOKTYPE_SPELL)
if not spell then return nil end
if spell == spellName then return i end if spell == spellName then return i end
i = i + 1
end end
return nil return nil
end end

Voir le fichier

@ -1,13 +1,22 @@
-- $Id: LibStub.lua 76 2007-09-03 01:50:17Z mikk $
-- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
-- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke -- LibStub is hereby placed in the Public Domain
-- Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVISION! IT NEEDS TO BE USABLE IN ALL REPOS! local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVISION! IT NEEDS TO BE USABLE IN ALL REPOS!
local LibStub = _G[LIBSTUB_MAJOR] local LibStub = _G[LIBSTUB_MAJOR]
-- Check to see is this version of the stub is obsolete
if not LibStub or LibStub.minor < LIBSTUB_MINOR then if not LibStub or LibStub.minor < LIBSTUB_MINOR then
LibStub = LibStub or {libs = {}, minors = {} } LibStub = LibStub or {libs = {}, minors = {} }
_G[LIBSTUB_MAJOR] = LibStub _G[LIBSTUB_MAJOR] = LibStub
LibStub.minor = LIBSTUB_MINOR LibStub.minor = LIBSTUB_MINOR
-- LibStub:NewLibrary(major, minor)
-- major (string) - the major version of the library
-- minor (string or number ) - the minor version of the library
--
-- returns nil if a newer or same version of the lib is already present
-- returns empty library object or old library object if upgrade is needed
function LibStub:NewLibrary(major, minor) function LibStub:NewLibrary(major, minor)
assert(type(major) == "string", "Bad argument #2 to `NewLibrary' (string expected)") assert(type(major) == "string", "Bad argument #2 to `NewLibrary' (string expected)")
minor = assert(tonumber(strmatch(minor, "%d+")), "Minor version must either be a number or contain a number.") minor = assert(tonumber(strmatch(minor, "%d+")), "Minor version must either be a number or contain a number.")
@ -18,6 +27,12 @@ if not LibStub or LibStub.minor < LIBSTUB_MINOR then
return self.libs[major], oldminor return self.libs[major], oldminor
end end
-- LibStub:GetLibrary(major, [silent])
-- major (string) - the major version of the library
-- silent (boolean) - if true, library is optional, silently return nil if its not found
--
-- throws an error if the library can not be found (except silent is set)
-- returns the library object if found
function LibStub:GetLibrary(major, silent) function LibStub:GetLibrary(major, silent)
if not self.libs[major] and not silent then if not self.libs[major] and not silent then
error(("Cannot find a library instance of %q."):format(tostring(major)), 2) error(("Cannot find a library instance of %q."):format(tostring(major)), 2)
@ -25,6 +40,12 @@ if not LibStub or LibStub.minor < LIBSTUB_MINOR then
return self.libs[major], self.minors[major] return self.libs[major], self.minors[major]
end end
function LibStub:IterateLibraries() return pairs(self.libs) end -- LibStub:IterateLibraries()
--
-- Returns an iterator for the currently registered libraries
function LibStub:IterateLibraries()
return pairs(self.libs)
end
setmetatable(LibStub, { __call = LibStub.GetLibrary }) setmetatable(LibStub, { __call = LibStub.GetLibrary })
end end

Voir le fichier

@ -1,11 +1,11 @@
## Interface: 20400 ## Interface: 50001
## Title: Lib: LibStub ## Title: Lib: LibStub
## Notes: Universal Library Stub ## Notes: Universal Library Stub
## Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel ## Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel
## X-Website: http://jira.wowace.com/browse/LS ## X-Website: http://www.wowace.com/addons/libstub/
## X-Category: Library ## X-Category: Library
## X-License: Public Domain ## X-License: Public Domain
## X-Curse-Packaged-Version: 1.0 ## X-Curse-Packaged-Version: 1.0.3-50001
## X-Curse-Project-Name: LibStub ## X-Curse-Project-Name: LibStub
## X-Curse-Project-ID: libstub ## X-Curse-Project-ID: libstub
## X-Curse-Repository-ID: wow/libstub/mainline ## X-Curse-Repository-ID: wow/libstub/mainline

Voir le fichier

@ -189,13 +189,14 @@ QH_Event("ADDON_LOADED", function (addonid)
if addonid ~= "QuestHelper" then return end if addonid ~= "QuestHelper" then return end
-- ONLY FAST STUFF ALLOWED IN HERE -- ONLY FAST STUFF ALLOWED IN HERE
--[[
QH_Event("QUEST_QUERY_COMPLETE", function () QH_Event("QUEST_QUERY_COMPLETE", function ()
QHQuestsCompleted = GetQuestsCompleted() QHQuestsCompleted = GetQuestsCompleted()
end) end)
QueryQuestsCompleted() QueryQuestsCompleted()
--]]
-- Use DefaultPref as fallback for unset preference keys. -- Use DefaultPref as fallback for unset preference keys.
setmetatable(QuestHelper_Pref, {__index=QuestHelper_DefaultPref}) setmetatable(QuestHelper_Pref, {__index=QuestHelper_DefaultPref})
QuestHelper: Assert(QuestHelper_Pref.perfload_scale) -- if this fails, something is very botched QuestHelper: Assert(QuestHelper_Pref.perfload_scale) -- if this fails, something is very botched
@ -203,7 +204,7 @@ QH_Event("ADDON_LOADED", function (addonid)
if not QuestHelper_Pref.track or QuestHelper_Pref.hide then if not QuestHelper_Pref.track or QuestHelper_Pref.hide then
QuestHelper:HideTracker() QuestHelper:HideTracker()
else else
QuestHelper:ShowTracker() -- to respect the minimized setting --QuestHelper:ShowTracker() -- to respect the minimized setting
end end
local self = QuestHelper -- whee hack hack hack local self = QuestHelper -- whee hack hack hack
@ -224,7 +225,7 @@ QH_Event("ADDON_LOADED", function (addonid)
["manager_achievement.lua"] = true, ["manager_achievement.lua"] = true,
["manager_completed.lua"] = true, ["manager_completed.lua"] = true,
["upgrade.lua"] = true, -- ["upgrade.lua"] = true,
["main.lua"] = true, ["main.lua"] = true,
["recycle.lua"] = true, ["recycle.lua"] = true,
["objective.lua"] = true, ["objective.lua"] = true,
@ -233,17 +234,17 @@ QH_Event("ADDON_LOADED", function (addonid)
["dodads.lua"] = true, ["dodads.lua"] = true,
["dodads_triangles.lua"] = true, ["dodads_triangles.lua"] = true,
["teleport.lua"] = true, ["teleport.lua"] = true,
["pathfinding.lua"] = true, -- ["pathfinding.lua"] = true,
["routing.lua"] = true, ["routing.lua"] = true,
["custom.lua"] = true, ["custom.lua"] = true,
["menu.lua"] = true, ["menu.lua"] = true,
["nag.lua"] = true, ["nag.lua"] = true,
["comm.lua"] = true, ["comm.lua"] = true,
["mapbutton.lua"] = true, -- ["mapbutton.lua"] = true,
["help.lua"] = true, ["help.lua"] = true,
["pattern.lua"] = true, ["pattern.lua"] = true,
["flightpath.lua"] = true, ["flightpath.lua"] = true,
["tracker.lua"] = true, -- ["tracker.lua"] = true,
["objtips.lua"] = true, ["objtips.lua"] = true,
["tomtom.lua"] = true, ["tomtom.lua"] = true,
["textviewer.lua"] = true, ["textviewer.lua"] = true,
@ -256,35 +257,6 @@ QH_Event("ADDON_LOADED", function (addonid)
["radar.lua"] = true, ["radar.lua"] = true,
["config.lua"] = true, ["config.lua"] = true,
--[[
["static.lua"] = true,
["static_1.lua"] = true,
["static_2.lua"] = true,
["static_deDE.lua"] = true,
["static_deDE_1.lua"] = true,
["static_deDE_2.lua"] = true,
["static_enUS.lua"] = true,
["static_enUS_1.lua"] = true,
["static_enUS_2.lua"] = true,
["static_esES.lua"] = true,
["static_esES_1.lua"] = true,
["static_esES_2.lua"] = true,
["static_esMX.lua"] = true,
["static_esMX_1.lua"] = true,
["static_esMX_2.lua"] = true,
["static_frFR.lua"] = true,
["static_frFR_1.lua"] = true,
["static_frFR_2.lua"] = true,
["static_koKR.lua"] = true,
["static_koKR_1.lua"] = true,
["static_koKR_2.lua"] = true,
["static_ruRU.lua"] = true,
["static_ruRU_1.lua"] = true,
["static_ruRU_2.lua"] = true,
["static_zhTW.lua"] = true,
["static_zhTW_1.lua"] = true,
["static_zhTW_2.lua"] = true,
--]]
["collect.lua"] = true, ["collect.lua"] = true,
["collect_achievement.lua"] = true, ["collect_achievement.lua"] = true,
["collect_lzw.lua"] = true, ["collect_lzw.lua"] = true,
@ -309,24 +281,24 @@ QH_Event("ADDON_LOADED", function (addonid)
["collect_merchant.lua"] = true, ["collect_merchant.lua"] = true,
["collect_warp.lua"] = true, ["collect_warp.lua"] = true,
["filter_core.lua"] = true, -- ["filter_core.lua"] = true,
["filter_base.lua"] = true, -- ["filter_base.lua"] = true,
["routing_debug.lua"] = true, -- ["routing_debug.lua"] = true,
["routing_loc.lua"] = true, -- ["routing_loc.lua"] = true,
["routing_route.lua"] = true, -- ["routing_route.lua"] = true,
["routing_core.lua"] = true, -- ["routing_core.lua"] = true,
["routing_controller.lua"] = true, -- ["routing_controller.lua"] = true,
["routing_hidden.lua"] = true, -- ["routing_hidden.lua"] = true,
["director_quest.lua"] = true, -- ["director_quest.lua"] = true,
["director_achievement.lua"] = true, -- ["director_achievement.lua"] = true,
["director_find.lua"] = true, -- ["director_find.lua"] = true,
["db_get.lua"] = true, -- ["db_get.lua"] = true,
["graph_core.lua"] = true, -- ["graph_core.lua"] = true,
["graph_flightpath.lua"] = true, -- ["graph_flightpath.lua"] = true,
["AstrolabeQH/Astrolabe.lua"] = true, ["AstrolabeQH/Astrolabe.lua"] = true,
["AstrolabeQH/AstrolabeMapMonitor.lua"] = true, ["AstrolabeQH/AstrolabeMapMonitor.lua"] = true,
@ -425,15 +397,15 @@ QH_Event("ADDON_LOADED", function (addonid)
-- 4.0.3a Breakage related -- 4.0.3a Breakage related
local datime = time() + 30 -- We're gonna wait 30 seconds, just in case. local datime = time() + 30 -- We're gonna wait 30 seconds, just in case.
--while datime >= time() do --[[sleep (busy wait)]] end --while datime >= time() do --[[sleep (busy wait)]] end
QuestHelper_BuildZoneLookup() --QuestHelper_BuildZoneLookup()
QH_Graph_Init() --QH_Graph_Init()
load_graph_links() --load_graph_links()
if QuestHelper_Locale ~= GetLocale() then if QuestHelper_Locale ~= GetLocale() then
self:TextOut(QHText("LOCALE_ERROR")) self:TextOut(QHText("LOCALE_ERROR"))
return return
end end
--[[
if not self:ZoneSanity() then if not self:ZoneSanity() then
self:TextOut(QHFormat("ZONE_LAYOUT_ERROR", expected_version)) self:TextOut(QHFormat("ZONE_LAYOUT_ERROR", expected_version))
QH_fixedmessage(QHFormat("ZONE_LAYOUT_ERROR", expected_version)) QH_fixedmessage(QHFormat("ZONE_LAYOUT_ERROR", expected_version))
@ -448,7 +420,7 @@ QH_Event("ADDON_LOADED", function (addonid)
self:TextOut(QHFormat("NAG_POLLUTED")) self:TextOut(QHFormat("NAG_POLLUTED"))
self:Purge(nil, true, true) self:Purge(nil, true, true)
end end
--]]
local signature = expected_version .. " on " .. GetBuildInfo() local signature = expected_version .. " on " .. GetBuildInfo()
QuestHelper_Quests[signature] = QuestHelper_Quests[signature] or {} QuestHelper_Quests[signature] = QuestHelper_Quests[signature] or {}
QuestHelper_Objectives[signature] = QuestHelper_Objectives[signature] or {} QuestHelper_Objectives[signature] = QuestHelper_Objectives[signature] or {}
@ -465,7 +437,7 @@ QH_Event("ADDON_LOADED", function (addonid)
QuestHelper.loading_init3:SetPercentage(0.1) QuestHelper.loading_init3:SetPercentage(0.1)
QH_Collector_Init() QH_Collector_Init()
QuestHelper.loading_init3:SetPercentage(0.5) QuestHelper.loading_init3:SetPercentage(0.5)
DB_Init() --DB_Init()
QuestHelper.loading_init3:SetPercentage(0.9) QuestHelper.loading_init3:SetPercentage(0.9)
self.player_level = UnitLevel("player") self.player_level = UnitLevel("player")
@ -536,14 +508,14 @@ QH_Event("ADDON_LOADED", function (addonid)
end end
if QuestHelper_Pref.map_button then if QuestHelper_Pref.map_button then
QuestHelper:InitMapButton() -- QuestHelper:InitMapButton()
end end
if QuestHelper_Pref.tomtom_wp_new then if QuestHelper_Pref.tomtom_wp_new then
self:EnableTomTom() -- self:EnableTomTom()
end end
self.tracker:SetScale(QuestHelper_Pref.track_scale) -- self.tracker:SetScale(QuestHelper_Pref.track_scale)
local version = GetAddOnMetadata("QuestHelper", "Version") or "Unknown" local version = GetAddOnMetadata("QuestHelper", "Version") or "Unknown"
@ -600,11 +572,11 @@ QH_Event("ADDON_LOADED", function (addonid)
QH_Event("TAXIMAP_OPENED", function () QH_Event("TAXIMAP_OPENED", function ()
self:taxiMapOpened() self:taxiMapOpened()
end) end)
--[[
QH_Event({"ZONE_CHANGED", "ZONE_CHANGED_INDOORS", "ZONE_CHANGED_NEW_AREA"}, function() QH_Event({"ZONE_CHANGED", "ZONE_CHANGED_INDOORS", "ZONE_CHANGED_NEW_AREA"}, function()
QH_Route_Filter_Rescan(nil, true) QH_Route_Filter_Rescan(nil, true)
end) end)
]]
QH_Event("CHAT_MSG_CHANNEL_NOTICE", function() QH_Event("CHAT_MSG_CHANNEL_NOTICE", function()
if please_submit_enabled and not please_submit_initted then if please_submit_enabled and not please_submit_initted then
please_submit_enabled = QHNagInit() please_submit_enabled = QHNagInit()
@ -976,12 +948,12 @@ Thanks for testing!]], "QuestHelper " .. version_string, 500, 20, 10)
end end
end end
if nc and nz > 0 and QuestHelper_IndexLookup[nc] then -- QuestHelper_IndexLookup is only initialized after we've finished the preinit step if nc and nz > 0 then --and QuestHelper_IndexLookup[nc] then -- QuestHelper_IndexLookup is only initialized after we've finished the preinit step
self.c, self.z, self.x, self.y = nc, nz, nx, ny self.c, self.z, self.x, self.y = nc, nz, nx, ny
local upd_zone = false local upd_zone = false
if self.i ~= QuestHelper_IndexLookup[nc][nz] then upd_zone = true end --if self.i ~= QuestHelper_IndexLookup[nc][nz] then upd_zone = true end
self.i = QuestHelper_IndexLookup[nc][nz] --self.i = QuestHelper_IndexLookup[nc][nz]
if upd_zone then QH_Route_Filter_Rescan("filter_zone") end --if upd_zone then QH_Route_Filter_Rescan("filter_zone") end
end end
if nc and nz and nx and ny and tc and tx and ty then if nc and nz and nx and ny and tc and tx and ty then

Voir le fichier

@ -10,33 +10,34 @@ QuestHelper_Zones =
{ {
{[0]="Kalimdor", {[0]="Kalimdor",
[1]="Ahn'Qiraj: The Fallen Kingdom", [1]="Ahn'Qiraj: The Fallen Kingdom",
[2]="Ashenvale", [2]="Ammen Vale",
[3]="Azshara", [3]="Ashenvale",
[4]="Azuremyst Isle", [4]="Azshara",
[5]="Bloodmyst Isle", [5]="Azuremyst Isle",
[6]="Darkshore", [6]="Bloodmyst Isle",
[7]="Darnassus", [8]="Darkshore",
[8]="Desolace", [9]="Darnassus",
[9]="Durotar", [10]="Desolace",
[10]="Dustwallow Marsh", [11]="Durotar",
[11]="Felwood", [12]="Dustwallow Marsh",
[12]="Feralas", [14]="Felwood",
[13]="Moonglade", [15]="Feralas",
[14]="Mount Hyjal", [16]="Moonglade",
[15]="Mulgore", [17]="Mount Hyjal",
[16]="Northern Barrens", [18]="Mulgore",
[17]="Orgrimmar", [19]="Northern Barrens",
[18]="Silithus", [20]="Orgrimmar",
[19]="Southern Barrens", [22]="Silithus",
[20]="Stonetalon Mountains", [23]="Southern Barrens",
[21]="Tanaris", [24]="Stonetalon Mountains",
[22]="Teldrassil", [25]="Tanaris",
[23]="The Exodar", [26]="Teldrassil",
[24]="Thousand Needles", [27]="The Exodar",
[25]="Thunder Bluff", [28]="Thousand Needles",
[26]="Uldum", [29]="Thunder Bluff",
[27]="Un'Goro Crater", [30]="Uldum",
[28]="Winterspring" [31]="Un'Goro Crater",
[33]="Winterspring"
}, },
{[0]="Eastern Kingdoms", {[0]="Eastern Kingdoms",
[1]="Abyssal Depths", [1]="Abyssal Depths",
@ -44,40 +45,40 @@ QuestHelper_Zones =
[3]="Badlands", [3]="Badlands",
[4]="Blasted Lands", [4]="Blasted Lands",
[5]="Burning Steppes", [5]="Burning Steppes",
[6]="Deadwind Pass", [7]="Deadwind Pass",
[7]="Dun Morogh", [9]="Dun Morogh",
[8]="Duskwood", [10]="Duskwood",
[9]="Eastern Plaguelands", [11]="Eastern Plaguelands",
[10]="Elwynn Forest", [12]="Elwynn Forest",
[11]="Eversong Woods", [13]="Eversong Woods",
[12]="Ghostlands", [14]="Ghostlands",
[13]="Hillsbrad Foothills", [15]="Hillsbrad Foothills",
[14]="Ironforge", [16]="Ironforge",
[15]="Isle of Quel'Danas", [17]="Isle of Quel'Danas",
[16]="Kelp'thar Forest", [18]="Kelp'thar Forest",
[17]="Loch Modan", [19]="Loch Modan",
[18]="Northern Stranglethorn", [21]="Northern Stranglethorn",
[19]="Redridge Mountains", [23]="Redridge Mountains",
[20]="Ruins of Gilneas", [24]="Ruins of Gilneas",
[21]="Gilneas", -- Actually "Ruins of Gilneas City", but this fixes issues with some non-English clients that have the two zones named the same. [25]="Gilneas", -- Actually "Ruins of Gilneas City", but this fixes issues with some non-English clients that have the two zones named the same.
[22]="Searing Gorge", [26]="Searing Gorge",
[23]="Shimmering Expanse", [27]="Shimmering Expanse",
[24]="Silvermoon City", [28]="Silvermoon City",
[25]="Silverpine Forest", [29]="Silverpine Forest",
[26]="Stormwind City", [30]="Stormwind City",
[27]="Stranglethorn Vale", [31]="Stranglethorn Vale",
[28]="Swamp of Sorrows", [33]="Swamp of Sorrows",
[29]="The Cape of Stranglethorn", [34]="The Cape of Stranglethorn",
[30]="The Hinterlands", [35]="The Hinterlands",
[31]="Tirisfal Glades", [36]="Tirisfal Glades",
[32]="Tol Barad", [37]="Tol Barad",
[33]="Tol Barad Peninsula", [38]="Tol Barad Peninsula",
[34]="Twilight Highlands", [39]="Twilight Highlands",
[35]="Undercity", [40]="Undercity",
[36]="Vashj'ir", [41]="Vashj'ir",
[37]="Western Plaguelands", [42]="Western Plaguelands",
[38]="Westfall", [43]="Westfall",
[39]="Wetlands" [44]="Wetlands"
}, },
{[0]="Outland", {[0]="Outland",
[1]="Blade's Edge Mountains", [1]="Blade's Edge Mountains",