# HG changeset patch # User yellowfive # Date 1541740870 28800 # Node ID 55823e37403b227d4db02b6e06384363a1e61bdf # Parent f605ad8fc42778590ccf2e3411ee08123b708389 Updated pt-BR translation, bug fixes. diff -r f605ad8fc427 -r 55823e37403b AskMrRobot-Serializer/AskMrRobot-Serializer.lua --- a/AskMrRobot-Serializer/AskMrRobot-Serializer.lua Tue Nov 06 15:39:26 2018 -0800 +++ b/AskMrRobot-Serializer/AskMrRobot-Serializer.lua Thu Nov 08 21:21:10 2018 -0800 @@ -1,6 +1,6 @@ -- AskMrRobot-Serializer will serialize and communicate character data between users. -local MAJOR, MINOR = "AskMrRobot-Serializer", 66 +local MAJOR, MINOR = "AskMrRobot-Serializer", 67 local Amr, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not Amr then return end -- already loaded by something else diff -r f605ad8fc427 -r 55823e37403b AskMrRobot.toc --- a/AskMrRobot.toc Tue Nov 06 15:39:26 2018 -0800 +++ b/AskMrRobot.toc Thu Nov 08 21:21:10 2018 -0800 @@ -1,7 +1,7 @@ ## Interface: 80000 ## Title: Ask Mr. Robot ## Author: Team Robot, Inc. -## Version: 66 +## Version: 67 ## Notes: Gear import/export, combat logging, and more. ## URL: www.askmrrobot.com ## SavedVariables: AskMrRobotDb4 diff -r f605ad8fc427 -r 55823e37403b Core.lua --- a/Core.lua Tue Nov 06 15:39:26 2018 -0800 +++ b/Core.lua Thu Nov 08 21:21:10 2018 -0800 @@ -161,16 +161,19 @@ local currentVersion = tonumber(GetAddOnMetadata(Amr.ADDON_NAME, "Version")) if Amr.db.char.LastVersion < 65 then - for i = 1,GetNumSpecializations() do - local _, specName = GetSpecializationInfo(i) - if specName then - print("AMR " .. specName) - local setid = C_EquipmentSet.GetEquipmentSetID("AMR " .. specName) - if setid then - C_EquipmentSet.DeleteEquipmentSet(setid) + + if not Amr.db.profile.options.disableEm then + for i = 1,GetNumSpecializations() do + local _, specName = GetSpecializationInfo(i) + if specName then + local setid = C_EquipmentSet.GetEquipmentSetID("AMR " .. specName) + if setid then + C_EquipmentSet.DeleteEquipmentSet(setid) + end end end end + end Amr.db.char.LastVersion = currentVersion diff -r f605ad8fc427 -r 55823e37403b Gear.lua --- a/Gear.lua Tue Nov 06 15:39:26 2018 -0800 +++ b/Gear.lua Thu Nov 08 21:21:10 2018 -0800 @@ -671,24 +671,12 @@ return bestItem, bestDiff, bestLink end --- on completion, create an equipment manager set if desired -local function onEquipGearSetComplete() - if Amr.db.profile.options.disableEm then return end - - -- create an equipment manager set +local function createAmrEquipmentSet() - -- note: ignore slots and/or saveset need to be called twice - -- for some reason, the slot is treated as blank if you try to ignore once on the first load of the equipment manager - - -- clear any currently ignored slots - --C_EquipmentSet.ClearIgnoredSlotsForSave() - --C_EquipmentSet.ClearIgnoredSlotsForSave() - - -- ignore shirt and tabard + -- clear any currently ignored slots, ignore shirt and tabard + C_EquipmentSet.ClearIgnoredSlotsForSave() C_EquipmentSet.IgnoreSlotForSave(INVSLOT_BODY) -- shirt C_EquipmentSet.IgnoreSlotForSave(INVSLOT_TABARD) - C_EquipmentSet.IgnoreSlotForSave(INVSLOT_BODY) -- shirt - C_EquipmentSet.IgnoreSlotForSave(INVSLOT_TABARD) -- for now use icon of the spec local _, specName, _, setIcon = GetSpecializationInfo(GetSpecialization()) @@ -716,6 +704,19 @@ end end +-- on completion, create an equipment manager set if desired +local function onEquipGearSetComplete() + if Amr.db.profile.options.disableEm then return end + + -- create an equipment manager set + createAmrEquipmentSet() + + -- need to call it twice because on first load the WoW equipment manager just doesn't work + Amr.Wait(1, function() + createAmrEquipmentSet() + end) +end + -- stop any currently in-progress gear swapping operation and clean up local function disposeGearOp() _pendingGearOps = nil diff -r f605ad8fc427 -r 55823e37403b localization/ptBR.lua --- a/localization/ptBR.lua Tue Nov 06 15:39:26 2018 -0800 +++ b/localization/ptBR.lua Thu Nov 08 21:21:10 2018 -0800 @@ -58,16 +58,16 @@ ["Versatility"] = "Vers", ["BonusArmor"] = "Armad", ["Spirit"] = "Espír", - ["Dodge"] = "Esquiv", + ["Dodge"] = "Esquiva", ["Parry"] = "Aparar", ["MovementSpeed"] = "Veloc", ["Avoidance"] = "Evasão", ["Stamina"] = "Estam", ["Armor"] = "Armad", - ["AttackPower"] = "PodAtaq", - ["SpellPower"] = "PodMág", - ["PvpResilience"] = "PvPResil", - ["PvpPower"] = "PodPvP", + ["AttackPower"] = "Pod Ataq", + ["SpellPower"] = "Pod Mág", + ["PvpResilience"] = "Resil PvP", + ["PvpPower"] = "Pod PvP", } L.InstanceNames = { @@ -75,7 +75,7 @@ } L.DifficultyNames = { - [17] = "LdM", + [17] = "LDR", [14] = "Normal", [15] = "Heróico", [16] = "Mítico" @@ -185,7 +185,7 @@ L.GearTipCommands = [[/amr equip [1-4] -no arg = cycle]] +sem arg = rotaciona]] -- note to translators: the slash commands are literal and should stay as english @@ -223,7 +223,7 @@ --[[---------------------------------------------------------------------- Combat Log Tab ------------------------------------------------------------------------]] -L.LogChatStart = "Agora você está logando os combates." -- , and Mr. Robot is logging character data for your raid +L.LogChatStart = "Agora você está logando os combates." -- , e o Mr. Robot está logando dados dos personagens para sua raid L.LogChatStop = "O log de combate foi interrompido." L.LogChatWipe = function(wipeTime) @@ -284,7 +284,7 @@ L.OptionsShopAhDesc = "Sempre que você abrir a casa de leilões, automaticamente será mostrada a janela da lista de compras. Você pode clicar nos itens da lista de compras para procurar rapidamente por eles na casa de leilões." L.OptionsDisableEmName = "Desligar criação de listas do Gerenciador de Equipamentos" -L.OptionsDisableEmDesc = "Uma lista no Gerenciador de Equipamentos da Blizzard é criada sempre que você equipa uma lista de equipamentos do AMR. Isso é útil para marcar itens nas suas listas otimizadas. Masque para desligar este padrão, se desejar." +L.OptionsDisableEmDesc = "Uma lista no Gerenciador de Equipamentos da Blizzard é criada sempre que você equipa uma lista de equipamentos do AMR. Isso é útil para marcar itens nas suas listas otimizadas. Marque para desligar este padrão, se desejar." L.OptionsUiScaleName = "Escala de tamanho da UI do Ask Mr. Robot" L.OptionsUiScaleDesc = "Digite um valor entre 0.5 e 1.5 para trocar a escala de tamanho da interface de usuário do Ask Mr. Robot, pressione Enter, então feche/abra a janela para fazer efeito. Se o posicionamento ficar bagunçado, use o comando /amr reset."