# HG changeset patch # User Tercio # Date 1435083988 10800 # Node ID 0de01324b4f248460a90d606e860be418efe9b03 first commit diff -r 000000000000 -r 0de01324b4f2 .pkgmeta --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.pkgmeta Tue Jun 23 15:26:28 2015 -0300 @@ -0,0 +1,4 @@ +move-folders: + Details_RaidInfo-ThroneOfThunder/Details_RaidInfo-BlackrockFoundry: Details_RaidInfo-BlackrockFoundry + Details_RaidInfo-ThroneOfThunder/Details_RaidInfo-Highmaul: Details_RaidInfo-Highmaul + Details_RaidInfo-ThroneOfThunder/Details_RaidInfo-SiegeOfOrgrimmar: Details_RaidInfo-SiegeOfOrgrimmar \ No newline at end of file diff -r 000000000000 -r 0de01324b4f2 Details_RaidInfo-BlackrockFoundry/Details_RaidInfo-BlackrockFoundry.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Details_RaidInfo-BlackrockFoundry/Details_RaidInfo-BlackrockFoundry.lua Tue Jun 23 15:26:28 2015 -0300 @@ -0,0 +1,277 @@ + +local _detalhes = _G._detalhes + +local blackrock_foundry = { + + id = 1205, --994 = map id extracted from encounter journal + ej_id = 477, --encounter journal id + + name = "Blackrock Foundry", + + icons = [[Interface\AddOns\Details_RaidInfo-BlackrockFoundry\boss_faces]], + icon = [[Interface\AddOns\Details_RaidInfo-BlackrockFoundry\icon256x128]], + + is_raid = true, + + backgroundFile = {file = [[Interface\Glues\LOADINGSCREENS\LoadingScreen_BlackrockFoundry]], coords = {0, 1, 132/512, 439/512}}, + backgroundEJ = [[Interface\EncounterJournal\UI-EJ-LOREBG-BlackrockFoundry]], + + boss_names = { + --[[ 1 ]] "Gruul", + --[[ 2 ]] "Oregorger", + --[[ 3 ]] "Beastlord Darmac", + --[[ 4 ]] "Flamebender Ka'graz", + --[[ 5 ]] "Hans'gar and Franzok", + --[[ 6 ]] "Operator Thogar", + --[[ 7 ]] "The Blast Furnace", + --[[ 8 ]] "Kromog", + --[[ 9 ]] "The Iron Maidens", + --[[ 10 ]] "Blackhand", + }, + + encounter_ids = { --encounter journal encounter id + --> Ids by Index + 1161, 1202, 1122, 1123, 1155, 1147, 1154, 1162, 1203, 959, + + --> Boss Index + [1161] = 1, + [1202] = 2, + [1122] = 3, + [1123] = 4, + [1155] = 5, + [1147] = 6, + [1154] = 7, + [1162] = 8, + [1203] = 9, + [959] = 10, + }, + + encounter_ids2 = { + --combatlog encounter id + [1691] = 1, --Gruul + [1696] = 2, --Oregorger + [1694] = 3, --Beastlord Darmac + [1689] = 4, --Flamebender Ka'graz + [1693] = 5, --Hans'gar & Franzok + [1692] = 6, --Operator Thogar + [1690] = 7, --The Blast Furnace + [1713] = 8, --Kromog, Legend of the Mountain + [1695] = 9, --The Iron Maidens + [1704] = 10, --Blackhand + }, + + boss_ids = { + --npc ids + [76877] = 1, --Gruul + [77182] = 2, --Oregorger + [76865] = 3, --Beastlord Darmac + [76814] = 4, --Flamebender Ka'graz + [76974] = 5, --Franzok + [76973] = 5, --Hans'gar + [76906] = 6, --Operator Thogar + [76806] = 7, --Heart of the Mountain + [77692] = 8, --Kromog, Legend of the Mountain + [77557] = 9, -- Admiral Gar'an + [77231] = 9, --Enforcer Sorka + [77477] = 9, --Marak the Blooded + [77325] = 10, --Blackhand + }, + + encounters = { + + [1] = { + boss = "Gruul", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Gruul]], + + --> spell list + continuo = { + 155080, + 155301, + 155530, + 162322, + 165983, + 173190, + 173192, + }, + }, + + [2] = { + boss = "Oregorger", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Oregorger]], + + --> spell list + continuo = { + 155897, + 155900, + 156203, + 156297, + 156324, + 156374, + 156388, + 156879, + 165983, + 173471, + }, + }, + + [3] = { + boss = "Beastlord Darmac", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Beastlord Darmac]], + + --> spell list + continuo = { + 154956, + 154960, + 154981, + 154989, + 155030, + 155061, + 155198, + 155222, + 155247, + 155499, + 155531, + 155611, + 155657, + 155718, + 156823, + 156824, + 162275, + 162283, + }, + }, + + [4] = { + boss = "Flamebender Ka'graz", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Flamebender Kagraz]], + + --> spell list + continuo = { + 154938, + 155049, + 155074, + 155314, + 155318, + 155484, + 155511, + 156018, + 156040, + 156713, + 163284, + 163633, + 163822, + }, + }, + + [5] = { + boss = "Hans'gar and Franzok", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Franzok]], + + --> spell list + continuo = { + 153470, + 155818, + 156938, + 157853, + 158140, + 161570, + }, + }, + + [6] = { + boss = "Operator Thogar", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Operator Thogar]], + + --> spell list + continuo = { + 163754, + 156554, + 155921, + 158084, + 163752, + 155701, + 160050, + 156270, + 156655, + }, + }, + + [7] = { + boss = "The Blast Furnace", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-The Blast Furnace]], + + --> spell list + continuo = { + 155187, + 155201, + 155209, + 155223, + 155242, + 155743, + 156932, + 156937, + 158246, + 159408, + }, + }, + + [8] = { + boss = "Kromog", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Kromog]], + + --> spell list + continuo = { + 156704, + 156844, + 157055, + 157059, + 157247, + 157659, + 161893, + 161923, + 162349, + 162392, + }, + }, + + [9] = { + boss = "The Iron Maidens", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Iron Maidens]], + + --> spell list + continuo = { + 155841, + 156637, + 156669, + 157884, + 158078, + 158080, + 158683, + 159335, + 160436, + 160733, + }, + }, + + [10] = { + boss = "Blackhand", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Warlord Blackhand]], + + --> spell list + continuo = { + 155992, + 156044, + 156107, + 156401, + 156479, + 156497, + 156731, + 156743, + }, + }, + + }, + +} + +_detalhes:InstallEncounter (blackrock_foundry) \ No newline at end of file diff -r 000000000000 -r 0de01324b4f2 Details_RaidInfo-BlackrockFoundry/Details_RaidInfo-BlackrockFoundry.toc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Details_RaidInfo-BlackrockFoundry/Details_RaidInfo-BlackrockFoundry.toc Tue Jun 23 15:26:28 2015 -0300 @@ -0,0 +1,6 @@ +## Interface: 60200 +## Title: Details: Blackrock Foundry +## Notes: Plugin for Details +## RequiredDeps: Details + +Details_RaidInfo-BlackrockFoundry.lua diff -r 000000000000 -r 0de01324b4f2 Details_RaidInfo-BlackrockFoundry/boss_faces.tga Binary file Details_RaidInfo-BlackrockFoundry/boss_faces.tga has changed diff -r 000000000000 -r 0de01324b4f2 Details_RaidInfo-BlackrockFoundry/icon256x128.tga Binary file Details_RaidInfo-BlackrockFoundry/icon256x128.tga has changed diff -r 000000000000 -r 0de01324b4f2 Details_RaidInfo-Highmaul/Details_RaidInfo-Highmaul.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Details_RaidInfo-Highmaul/Details_RaidInfo-Highmaul.lua Tue Jun 23 15:26:28 2015 -0300 @@ -0,0 +1,149 @@ + +local _detalhes = _G._detalhes + +local trash_mobs_ids = { + +} + +local highmaul = { + + id = 1228, --994 = map id extracted from encounter journal + ej_id = 477, --encounter journal id + + name = "Highmaul", + + icons = [[Interface\AddOns\Details_RaidInfo-Highmaul\boss_faces]], + icon = [[Interface\AddOns\Details_RaidInfo-Highmaul\icon256x128]], + + is_raid = true, + + backgroundFile = {file = [[Interface\Glues\LOADINGSCREENS\LoadingScreen_HighMaulRaid]], coords = {0, 1, 265/1024, 875/1024}}, + backgroundEJ = [[Interface\EncounterJournal\UI-EJ-LOREBG-Highmaul]], + + boss_names = { + --[[ 1 ]] "Kargath Bladefist", + --[[ 2 ]] "The Butcher", + --[[ 3 ]] "Tectus", + --[[ 4 ]] "Brackenspore", + --[[ 5 ]] "Twin Ogron", + --[[ 6 ]] "Ko'ragh", + --[[ 7 ]] "Imperator Mar'gok", + }, + + encounter_ids = { --encounter journal encounter id + --> Ids by Index + 1128, 971, 1195, 1196, 1148, 1153, 1197, + + --> Boss Index + [1128] = 1, + [971] = 2, + [1195] = 3, + [1196] = 4, + [1148] = 5, + [1153] = 6, + [1197] = 7, + }, + + encounter_ids2 = { + --combatlog encounter id + [1721] = 1, --kargath + [1706] = 2, --the butcher + [1722] = 3, --tectus + [1720] = 4, --brakenspore + [1719] = 5, --twin ogron + [1723] = 6, --Koragh + [1705] = 7, --Margok + }, + + boss_ids = { + --npc ids + [78714] = 1, --Kargath + [77404] = 2, --The Butcher + [78948] = 3, --Tectus + [78491] = 4, --Brakenspore + [78238] = 5, --Pol + [78237] = 5, --Phemos + [79015] = 6, --Koragh + [77428] = 7, --Margok + }, + + encounters = { + + [1] = { + boss = "Kargath Bladefist", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Kargath Bladefist]], + + --> spell list + continuo = {}, + }, + + [2] = { + boss = "The Butcher", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-The Butcher]], + + --> spell list + continuo = {}, + }, + + [3] = { + boss = "Tectus", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Tectus The Living Mountain]], + + --> spell list + continuo = {}, + + funcType = 0x2, + func = function (combat) + local removed = false + local list = combat:GetActorList (DETAILS_ATTRIBUTE_DAMAGE) + for i = #list, 1, -1 do + local id = _detalhes:GetNpcIdFromGuid (list[i].serial) + if (trash_mobs_ids [id]) then + tremove (list, i) + combat.totals [DETAILS_ATTRIBUTE_DAMAGE] = combat.totals [DETAILS_ATTRIBUTE_DAMAGE] - list[i].total + removed = true + end + end + if (removed) then + combat[DETAILS_ATTRIBUTE_DAMAGE]:Remap() + end + end, + }, + + [4] = { + boss = "Brackenspore", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Brackenspore]], + + --> spell list + continuo = {}, + }, + + [5] = { + boss = "Twin Ogron", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Twin Ogron]], + + --> spell list + continuo = {}, + }, + + [6] = { + boss = "Ko'ragh", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Fel Breaker]], + + --> spell list + continuo = {}, + }, + + [7] = { + boss = "Imperator Mar'gok", + portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Imperator Margok]], + + --> spell list + continuo = {}, + }, + + }, + +} + +_detalhes:InstallEncounter (highmaul) diff -r 000000000000 -r 0de01324b4f2 Details_RaidInfo-Highmaul/Details_RaidInfo-Highmaul.toc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Details_RaidInfo-Highmaul/Details_RaidInfo-Highmaul.toc Tue Jun 23 15:26:28 2015 -0300 @@ -0,0 +1,6 @@ +## Interface: 60200 +## Title: Details: Highmaul +## Notes: Plugin for Details +## RequiredDeps: Details + +Details_RaidInfo-Highmaul.lua diff -r 000000000000 -r 0de01324b4f2 Details_RaidInfo-Highmaul/boss_faces.tga Binary file Details_RaidInfo-Highmaul/boss_faces.tga has changed diff -r 000000000000 -r 0de01324b4f2 Details_RaidInfo-Highmaul/icon256x128.tga Binary file Details_RaidInfo-Highmaul/icon256x128.tga has changed diff -r 000000000000 -r 0de01324b4f2 Details_RaidInfo-SiegeOfOrgrimmar/Details_RaidInfo-SiegeOfOrgrimmar.toc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Details_RaidInfo-SiegeOfOrgrimmar/Details_RaidInfo-SiegeOfOrgrimmar.toc Tue Jun 23 15:26:28 2015 -0300 @@ -0,0 +1,9 @@ +## Interface: 60200 +## Title: Details: Siege of Orgrimmar +## Notes: Plugin for Details +## RequiredDeps: Details + +enUS.lua +ptBR.lua + +SiegeOfOrgrimmar.lua diff -r 000000000000 -r 0de01324b4f2 Details_RaidInfo-SiegeOfOrgrimmar/Libs/AceLocale-3.0/AceLocale-3.0.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Details_RaidInfo-SiegeOfOrgrimmar/Libs/AceLocale-3.0/AceLocale-3.0.lua Tue Jun 23 15:26:28 2015 -0300 @@ -0,0 +1,137 @@ +--- **AceLocale-3.0** manages localization in addons, allowing for multiple locale to be registered with fallback to the base locale for untranslated strings. +-- @class file +-- @name AceLocale-3.0 +-- @release $Id: AceLocale-3.0.lua 1035 2011-07-09 03:20:13Z kaelten $ +local MAJOR,MINOR = "AceLocale-3.0", 6 + +local AceLocale, oldminor = LibStub:NewLibrary(MAJOR, MINOR) + +if not AceLocale then return end -- no upgrade needed + +-- Lua APIs +local assert, tostring, error = assert, tostring, error +local getmetatable, setmetatable, rawset, rawget = getmetatable, setmetatable, rawset, rawget + +-- Global vars/functions that we don't upvalue since they might get hooked, or upgraded +-- List them here for Mikk's FindGlobals script +-- GLOBALS: GAME_LOCALE, geterrorhandler + +local gameLocale = GetLocale() +if gameLocale == "enGB" then + gameLocale = "enUS" +end + +AceLocale.apps = AceLocale.apps or {} -- array of ["AppName"]=localetableref +AceLocale.appnames = AceLocale.appnames or {} -- array of [localetableref]="AppName" + +-- This metatable is used on all tables returned from GetLocale +local readmeta = { + __index = function(self, key) -- requesting totally unknown entries: fire off a nonbreaking error and return key + rawset(self, key, key) -- only need to see the warning once, really + geterrorhandler()(MAJOR..": "..tostring(AceLocale.appnames[self])..": Missing entry for '"..tostring(key).."'") + return key + end +} + +-- This metatable is used on all tables returned from GetLocale if the silent flag is true, it does not issue a warning on unknown keys +local readmetasilent = { + __index = function(self, key) -- requesting totally unknown entries: return key + rawset(self, key, key) -- only need to invoke this function once + return key + end +} + +-- Remember the locale table being registered right now (it gets set by :NewLocale()) +-- NOTE: Do never try to register 2 locale tables at once and mix their definition. +local registering + +-- local assert false function +local assertfalse = function() assert(false) end + +-- This metatable proxy is used when registering nondefault locales +local writeproxy = setmetatable({}, { + __newindex = function(self, key, value) + rawset(registering, key, value == true and key or value) -- assigning values: replace 'true' with key string + end, + __index = assertfalse +}) + +-- This metatable proxy is used when registering the default locale. +-- It refuses to overwrite existing values +-- Reason 1: Allows loading locales in any order +-- Reason 2: If 2 modules have the same string, but only the first one to be +-- loaded has a translation for the current locale, the translation +-- doesn't get overwritten. +-- +local writedefaultproxy = setmetatable({}, { + __newindex = function(self, key, value) + if not rawget(registering, key) then + rawset(registering, key, value == true and key or value) + end + end, + __index = assertfalse +}) + +--- Register a new locale (or extend an existing one) for the specified application. +-- :NewLocale will return a table you can fill your locale into, or nil if the locale isn't needed for the players +-- game locale. +-- @paramsig application, locale[, isDefault[, silent]] +-- @param application Unique name of addon / module +-- @param locale Name of the locale to register, e.g. "enUS", "deDE", etc. +-- @param isDefault If this is the default locale being registered (your addon is written in this language, generally enUS) +-- @param silent If true, the locale will not issue warnings for missing keys. Must be set on the first locale registered. If set to "raw", nils will be returned for unknown keys (no metatable used). +-- @usage +-- -- enUS.lua +-- local L = LibStub("AceLocale-3.0"):NewLocale("TestLocale", "enUS", true) +-- L["string1"] = true +-- +-- -- deDE.lua +-- local L = LibStub("AceLocale-3.0"):NewLocale("TestLocale", "deDE") +-- if not L then return end +-- L["string1"] = "Zeichenkette1" +-- @return Locale Table to add localizations to, or nil if the current locale is not required. +function AceLocale:NewLocale(application, locale, isDefault, silent) + + -- GAME_LOCALE allows translators to test translations of addons without having that wow client installed + local gameLocale = GAME_LOCALE or gameLocale + + local app = AceLocale.apps[application] + + if silent and app and getmetatable(app) ~= readmetasilent then + geterrorhandler()("Usage: NewLocale(application, locale[, isDefault[, silent]]): 'silent' must be specified for the first locale registered") + end + + if not app then + if silent=="raw" then + app = {} + else + app = setmetatable({}, silent and readmetasilent or readmeta) + end + AceLocale.apps[application] = app + AceLocale.appnames[app] = application + end + + if locale ~= gameLocale and not isDefault then + return -- nop, we don't need these translations + end + + registering = app -- remember globally for writeproxy and writedefaultproxy + + if isDefault then + return writedefaultproxy + end + + return writeproxy +end + +--- Returns localizations for the current locale (or default locale if translations are missing). +-- Errors if nothing is registered (spank developer, not just a missing translation) +-- @param application Unique name of addon / module +-- @param silent If true, the locale is optional, silently return nil if it's not found (defaults to false, optional) +-- @return The locale table for the current language. +function AceLocale:GetLocale(application, silent) + if not silent and not AceLocale.apps[application] then + error("Usage: GetLocale(application[, silent]): 'application' - No locales registered for '"..tostring(application).."'", 2) + end + return AceLocale.apps[application] +end diff -r 000000000000 -r 0de01324b4f2 Details_RaidInfo-SiegeOfOrgrimmar/Libs/AceLocale-3.0/AceLocale-3.0.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Details_RaidInfo-SiegeOfOrgrimmar/Libs/AceLocale-3.0/AceLocale-3.0.xml Tue Jun 23 15:26:28 2015 -0300 @@ -0,0 +1,4 @@ + +