Mercurial > wow > askmrrobot
changeset 143:55823e37403b v67
Updated pt-BR translation, bug fixes.
author | yellowfive |
---|---|
date | Thu, 08 Nov 2018 21:21:10 -0800 |
parents | f605ad8fc427 |
children | 69e759e03838 |
files | AskMrRobot-Serializer/AskMrRobot-Serializer.lua AskMrRobot.toc Core.lua Gear.lua localization/ptBR.lua |
diffstat | 5 files changed, 37 insertions(+), 32 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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
--- 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
--- 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
--- 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."