From 2927c55694e30076785b78ddf60bcf28af107fe2 Mon Sep 17 00:00:00 2001 From: terciob19 Date: Fri, 3 Jan 2014 12:44:55 -0200 Subject: [PATCH] - added new slash commando /details reinstall. - some minor fixes on new tutorials bubles. --- boot.lua | 4 +- core/windows.lua | 12 +- functions/savedata.lua | 264 +++++++++++++++++++++------------------ functions/slash.lua | 4 + locales/Details-enUS.lua | 6 +- locales/Details-ptBR.lua | 6 +- startup.lua | 22 ++-- 7 files changed, 179 insertions(+), 139 deletions(-) diff --git a/boot.lua b/boot.lua index d6d9c7b4..51e936d4 100644 --- a/boot.lua +++ b/boot.lua @@ -5,10 +5,10 @@ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --> global name declaration - + _ = nil _detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0") - _detalhes.userversion = "v1.8.3" + _detalhes.userversion = "v1.8.4" _detalhes.version = "Alpha 013" _detalhes.realversion = 13 diff --git a/core/windows.lua b/core/windows.lua index d68acfca..784257dc 100644 --- a/core/windows.lua +++ b/core/windows.lua @@ -639,9 +639,17 @@ _detalhes:ScheduleTimer ("delay_tutorial", 60) end + -- [1] criar nova instancia + -- [2] esticar janela + -- [3] resize e trava + -- [4] shortcut frame + -- [5] micro displays + -- [6] snap windows + function _detalhes:delay_tutorial() - --verificar algo? - _detalhes:run_tutorial() + if (_detalhes.character_data.logons < 2) then + _detalhes:run_tutorial() + end end function _detalhes:StartTutorial() diff --git a/functions/savedata.lua b/functions/savedata.lua index 0caf73e4..ff7e1603 100644 --- a/functions/savedata.lua +++ b/functions/savedata.lua @@ -13,6 +13,12 @@ end function _detalhes:SaveDataOnLogout() +if (_detalhes.wipe_full_config) then + _detalhes_global = nil + _detalhes_database = nil + return +end + --> cleanup tables _detalhes:PrepareTablesForSave() @@ -26,6 +32,8 @@ function _detalhes:SaveDataOnLogout() --> save instances (windows) _detalhes_database.tabela_instancias = _detalhes.tabela_instancias + --> character info + _detalhes_database.character_data = _detalhes.character_data --> options data --window size _detalhes_database.max_window_size = _detalhes.max_window_size @@ -153,132 +161,135 @@ end --]] if (_detalhes_database) then - --> nicktag cache - _detalhes.nick_tag_cache = _detalhes_database.nick_tag_cache or {} - _detalhes:NickTagSetCache (_detalhes.nick_tag_cache) - _detalhes.only_pvp_frags = _detalhes_database.only_pvp_frags + --> nicktag cache + _detalhes.nick_tag_cache = _detalhes_database.nick_tag_cache or {} + _detalhes:NickTagSetCache (_detalhes.nick_tag_cache) + _detalhes.only_pvp_frags = _detalhes_database.only_pvp_frags - --> build basic containers - _detalhes.tabela_historico = _detalhes_database.tabela_historico or _detalhes.historico:NovoHistorico() -- segments - _detalhes.tabela_overall = _detalhes.combate:NovaTabela() -- overall - _detalhes.tabela_pets = _detalhes_database.tabela_pets or _detalhes.container_pets:NovoContainer() -- pets + --> character info + _detalhes.character_data = _detalhes_database.character_data + + --> build basic containers + _detalhes.tabela_historico = _detalhes_database.tabela_historico or _detalhes.historico:NovoHistorico() -- segments + _detalhes.tabela_overall = _detalhes.combate:NovaTabela() -- overall + _detalhes.tabela_pets = _detalhes_database.tabela_pets or _detalhes.container_pets:NovoContainer() -- pets + + --> version + _detalhes.last_realversion = _detalhes_database.last_realversion or _detalhes.realversion --> core + _detalhes.last_version = _detalhes_database.last_version or "v1.0.0" --> version + + if (_detalhes.last_realversion < _detalhes.realversion) then + --> details was been hard upgraded + _detalhes.tabela_historico = _detalhes.historico:NovoHistorico() + _detalhes.tabela_pets = _detalhes.container_pets:NovoContainer() + _detalhes.tabela_overall = _detalhes.combate:NovaTabela() + _detalhes.tabela_vigente = _detalhes.combate:NovaTabela (_, _detalhes.tabela_overall) + end + + if (_detalhes.last_version ~= _detalhes.userversion) then + _detalhes.is_version_first_run = true + end + + --> re-build all indexes and metatables + _detalhes:RestauraMetaTables() + + --> instances (windows) + _detalhes.tabela_instancias = _detalhes_database.tabela_instancias or {} - --> version - _detalhes.last_realversion = _detalhes_database.last_realversion or _detalhes.realversion --> core - _detalhes.last_version = _detalhes_database.last_version or "v1.0.0" --> version - - if (_detalhes.last_realversion < _detalhes.realversion) then - --> details was been hard upgraded + --> get last combat table + local historico_UM = _detalhes.tabela_historico.tabelas[1] + + if (historico_UM) then + _detalhes.tabela_vigente = historico_UM --> significa que elas eram a mesma tabela, então aqui elas se tornam a mesma tabela + else + _detalhes.tabela_vigente = _detalhes.combate:NovaTabela (_, _detalhes.tabela_overall) + end + + _detalhes.combat_id = _detalhes_database.combat_id + + if (_detalhes_database.SoloTables) then + if (_detalhes_database.SoloTables.Mode) then + _detalhes.SoloTables.Mode = _detalhes_database.SoloTables.Mode + _detalhes.SoloTables.LastSelected = _detalhes_database.SoloTables.LastSelected + else + _detalhes.SoloTables.Mode = 1 + end + end + + if (_detalhes_database.RaidTables) then + if (_detalhes_database.RaidTables.Mode) then + _detalhes.RaidTables.Mode = _detalhes_database.RaidTables.Mode + _detalhes.RaidTables.LastSelected = _detalhes_database.RaidTables.LastSelected + else + _detalhes.RaidTables.Mode = 1 + end + end + + --> load options data + --window size + _detalhes.max_window_size = _detalhes_database.max_window_size + _detalhes.new_window_size = _detalhes_database.new_window_size + _detalhes.window_clamp = _detalhes_database.window_clamp + -- max segments + _detalhes.segments_amount = _detalhes_database.segments_amount + _detalhes.instances_amount = _detalhes_database.instances_amount + _detalhes.clear_ungrouped = _detalhes_database.clear_ungrouped + _detalhes.clear_graphic = _detalhes_database.clear_graphic + --> text sizes + _detalhes.font_sizes = _detalhes_database.font_sizes + -- row animation + _detalhes.use_row_animations = _detalhes_database.use_row_animations + _detalhes.animate_scroll = _detalhes_database.animate_scroll + _detalhes.use_scroll = _detalhes_database.use_scroll + -- death log + _detalhes.deadlog_limit = _detalhes_database.deadlog_limit + -- report + _detalhes.report_lines = _detalhes_database.report_lines + _detalhes.report_to_who = _detalhes_database.report_to_who + -- colors + _detalhes.class_colors = _detalhes_database.class_colors + _detalhes.default_bg_color = _detalhes_database.default_bg_color + _detalhes.default_bg_alpha = _detalhes_database.default_bg_alpha + -- fades + _detalhes.row_fade_in = _detalhes_database.row_fade_in + _detalhes.windows_fade_in = _detalhes_database.windows_fade_in + _detalhes.row_fade_out = _detalhes_database.row_fade_out + _detalhes.windows_fade_out = _detalhes_database.windows_fade_out + -- modes + _detalhes.solo = _detalhes_database.solo + _detalhes.raid = _detalhes_database.tank + -- switch + if (_detalhes_database.switch) then + _detalhes.switch.slots = _detalhes_database.switch.slots + _detalhes.switch.table = _detalhes_database.switch.table + end + + --> buffs + _detalhes.savedbuffs = _detalhes_database.savedbuffs + _detalhes.Buffs:BuildTables() + + --> customs + _detalhes.custom = _detalhes_database.custom + + --> need refresh for all containers + for _, container in ipairs (_detalhes.tabela_overall) do + container.need_refresh = true + end + for _, container in ipairs (_detalhes.tabela_vigente) do + container.need_refresh = true + end + + _detalhes_database.tabela_vigente = nil + _detalhes_database.tabela_historico = nil + _detalhes_database.tabela_pets = nil + + else + _detalhes.tabela_instancias = {} _detalhes.tabela_historico = _detalhes.historico:NovoHistorico() _detalhes.tabela_pets = _detalhes.container_pets:NovoContainer() _detalhes.tabela_overall = _detalhes.combate:NovaTabela() _detalhes.tabela_vigente = _detalhes.combate:NovaTabela (_, _detalhes.tabela_overall) - end - - if (_detalhes.last_version ~= _detalhes.userversion) then - _detalhes.is_version_first_run = true - end - - --> re-build all indexes and metatables - _detalhes:RestauraMetaTables() - - --> instances (windows) - _detalhes.tabela_instancias = _detalhes_database.tabela_instancias or {} - - --> get last combat table - local historico_UM = _detalhes.tabela_historico.tabelas[1] - - if (historico_UM) then - _detalhes.tabela_vigente = historico_UM --> significa que elas eram a mesma tabela, então aqui elas se tornam a mesma tabela - else - _detalhes.tabela_vigente = _detalhes.combate:NovaTabela (_, _detalhes.tabela_overall) - end - - _detalhes.combat_id = _detalhes_database.combat_id - - if (_detalhes_database.SoloTables) then - if (_detalhes_database.SoloTables.Mode) then - _detalhes.SoloTables.Mode = _detalhes_database.SoloTables.Mode - _detalhes.SoloTables.LastSelected = _detalhes_database.SoloTables.LastSelected - else - _detalhes.SoloTables.Mode = 1 - end - end - - if (_detalhes_database.RaidTables) then - if (_detalhes_database.RaidTables.Mode) then - _detalhes.RaidTables.Mode = _detalhes_database.RaidTables.Mode - _detalhes.RaidTables.LastSelected = _detalhes_database.RaidTables.LastSelected - else - _detalhes.RaidTables.Mode = 1 - end - end - - --> load options data - --window size - _detalhes.max_window_size = _detalhes_database.max_window_size - _detalhes.new_window_size = _detalhes_database.new_window_size - _detalhes.window_clamp = _detalhes_database.window_clamp - -- max segments - _detalhes.segments_amount = _detalhes_database.segments_amount - _detalhes.instances_amount = _detalhes_database.instances_amount - _detalhes.clear_ungrouped = _detalhes_database.clear_ungrouped - _detalhes.clear_graphic = _detalhes_database.clear_graphic - --> text sizes - _detalhes.font_sizes = _detalhes_database.font_sizes - -- row animation - _detalhes.use_row_animations = _detalhes_database.use_row_animations - _detalhes.animate_scroll = _detalhes_database.animate_scroll - _detalhes.use_scroll = _detalhes_database.use_scroll - -- death log - _detalhes.deadlog_limit = _detalhes_database.deadlog_limit - -- report - _detalhes.report_lines = _detalhes_database.report_lines - _detalhes.report_to_who = _detalhes_database.report_to_who - -- colors - _detalhes.class_colors = _detalhes_database.class_colors - _detalhes.default_bg_color = _detalhes_database.default_bg_color - _detalhes.default_bg_alpha = _detalhes_database.default_bg_alpha - -- fades - _detalhes.row_fade_in = _detalhes_database.row_fade_in - _detalhes.windows_fade_in = _detalhes_database.windows_fade_in - _detalhes.row_fade_out = _detalhes_database.row_fade_out - _detalhes.windows_fade_out = _detalhes_database.windows_fade_out - -- modes - _detalhes.solo = _detalhes_database.solo - _detalhes.raid = _detalhes_database.tank - -- switch - if (_detalhes_database.switch) then - _detalhes.switch.slots = _detalhes_database.switch.slots - _detalhes.switch.table = _detalhes_database.switch.table - end - - --> buffs - _detalhes.savedbuffs = _detalhes_database.savedbuffs - _detalhes.Buffs:BuildTables() - - --> customs - _detalhes.custom = _detalhes_database.custom - - --> need refresh for all containers - for _, container in ipairs (_detalhes.tabela_overall) do - container.need_refresh = true - end - for _, container in ipairs (_detalhes.tabela_vigente) do - container.need_refresh = true - end - - _detalhes_database.tabela_vigente = nil - _detalhes_database.tabela_historico = nil - _detalhes_database.tabela_pets = nil - - else - _detalhes.tabela_instancias = {} - _detalhes.tabela_historico = _detalhes.historico:NovoHistorico() - _detalhes.tabela_pets = _detalhes.container_pets:NovoContainer() - _detalhes.tabela_overall = _detalhes.combate:NovaTabela() - _detalhes.tabela_vigente = _detalhes.combate:NovaTabela (_, _detalhes.tabela_overall) - _detalhes_database = {} + _detalhes_database = {} end -- capture @@ -344,3 +355,16 @@ end --]] return true end + + +function _detalhes:WipeConfig() + + local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" ) + + local b = CreateFrame ("button", nil, UIParent, "OptionsButtonTemplate") + b:SetSize (250, 40) + b:SetText (Loc ["STRING_SLASH_WIPECONFIG_CONFIRM"]) + b:SetScript ("OnClick", function() _detalhes.wipe_full_config = true; ReloadUI(); end) + b:SetPoint ("center", UIParent, "center", 0, 0) + +end \ No newline at end of file diff --git a/functions/slash.lua b/functions/slash.lua index c56ae14b..7bf0eae5 100644 --- a/functions/slash.lua +++ b/functions/slash.lua @@ -20,6 +20,9 @@ function SlashCmdList.DETAILS (msg, editbox) _detalhes:CriarInstancia() + elseif (command == Loc ["STRING_SLASH_WIPECONFIG"]) then + _detalhes:WipeConfig() + elseif (command == Loc ["STRING_SLASH_SHOW"]) then if (_detalhes.opened_windows == 0) then @@ -529,6 +532,7 @@ function SlashCmdList.DETAILS (msg, editbox) print ("|cffffaeae/details " .. Loc ["STRING_SLASH_DISABLE"] .. "|r: " .. Loc ["STRING_SLASH_DISABLE_DESC"]) print ("|cffffaeae/details " .. Loc ["STRING_SLASH_OPTIONS"] .. "|r|cfffcffb0 |r: " .. Loc ["STRING_SLASH_OPTIONS_DESC"]) print ("|cffffaeae/details " .. Loc ["STRING_SLASH_CHANGES"] .. "|r: " .. Loc ["STRING_SLASH_CHANGES_DESC"]) + print ("|cffffaeae/details " .. Loc ["STRING_SLASH_WIPECONFIG"] .. "|r: " .. Loc ["STRING_SLASH_WIPECONFIG_DESC"]) print ("|cffffaeae/details " .. Loc ["STRING_SLASH_WORLDBOSS"] .. "|r: " .. Loc ["STRING_SLASH_WORLDBOSS_DESC"]) print (" ") diff --git a/locales/Details-enUS.lua b/locales/Details-enUS.lua index e56cfd99..358cb5f6 100644 --- a/locales/Details-enUS.lua +++ b/locales/Details-enUS.lua @@ -4,7 +4,7 @@ if not Loc then return end -------------------------------------------------------------------------------------------------------------------------------------------- -- \n\n|cFFFFFF00-|r - Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v1.8.3|r\n\n|cFFFFFF00-|r Added new skin: Simple Gray.\n\n|cFFFFFF00-|r Added minimap and interface addon panel buttons.\n\n|cFFFFFF00-|r Added new tutorials bubbles for basic aspects of Details! window.\n\n|cFFFFFF00-|r Fixed a issue with Panic Mode where sometimes his isnt triggered.\n\n|cFFFFFF00v1.8.0|r\n\n|cFFFFFF00-|r Added a new plugin: You Are Not Prepared.\n\n|cFFFFFF00-|r New options panel!\n\n|cFFFFFF00v1.7.0|r\n\n- Fixed some colors issues with enimies bars.\n\n|cFFFFFF00-|r Fixed some phrases which isn't still not translated to enUS.\n\n|cFFFFFF00-|r Major rewrite on CC-Breaks, now it's working properly.\n\n|cFFFFFF00-|r Added new sub attribute for damage: Voidzones & Debuffs.|cFFFFFF00v1.6.7|r\n\n- Added support to skins, you can change over options panel.\n\n|cFFFFFF00v1.6.5|r\n\n|cFFFFFF00-|r Added sub attribute 'Enemies' which shows, of course, only enemies.\n\n|cFFFFFF00-|r Fixed issue with successful spell cast.\n\n|cFFFFFF00v1.6.3|r\n\n|cFFFFFF00-|r data capture now runs 4% faster.\n\n|cFFFFFF00-|r Fixed issue with pets were wasn't uptading owner activity time.\n\n|cFFFFFF00-|r Fixed healing being counted even out of combat.\n\n|cFFFFFF00-|r Fixed some problems with multi-boss encountes like Twin Consorts.\n\n|cFFFFFF00-|r Added options for concatenate trash segments.\n\n|cFFFFFF00-|r Added options for auto remove trash segments. \n\n|cFFFFFF00-|r Added options for change bar height. \n\n|cFFFFFF00-|r Encounter Details now display how many interrupted and successful cast of a boss skill.\n\n|cFFFFFF00v1.6.1|r\n\n|cFFFFFF00-|r Fixed:\n- a issue with debuff uptime.\n- overall data dps and hps for overall data on micro display.\n- many bugs involving sword and book menus.\n- garbage collector erasing actors with interactions with your group members.\n\n|cFFFFFF00-|r overall data now always use the combat data for measure dps and hps.\n\n|cFFFFFF00v1.6.0|r\n\n|cFFFFFF00-|r Added debuff uptime at misc attribute.\n\n|cFFFFFF00-|r Disabled attributes now have a darkness effect over sword menu.\n\n|cFFFFFF00-|r Fixed a issue were sometimes you need to /reload before change a talent.\n\n|cFFFFFF00v1.5.3|r\n\n|cFFFFFF00-|r Fixed a issue with report data during combat lockdown.\n\n|cFFFFFF00-|r Improved pet owner recognition and added a ignore list if couldn't find his owner.\n\n|cFFFFFF00-|r Added an option to display only frags on enemy players.\n\n|cFFFFFF00-|r Added class colors for frags.\n\n|cFFFFFF00v1.5.2|r\n\n|cFFFFFF00-|r Fixed a issue were turning off buff uptime was disabling healing done too.\n\n|cFFFFFF00-|r Avoidance statistics will not be recorded for pets, ungrouped players and monsters.\n\n|cFFFFFF00-|r Fixed a issue were sometimes buff uptime was taking too long to save data on logout.\n\n|cFFFFFF00v1.5.1|r\n\n|cFFFFFF00-|r Fixed a issue with report data were sometimes wasn't working.\n\n|cFFFFFF00v1.5.0|r\n\n|cFFFFFF00-|r Buff Uptime was been implemented over Miscellaneous attribute.\n\n|cFFFFFF00-|r Death Logs now also display cooldowns and last cooldown used." + Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v1.8.4|r\n\n|cFFFFFF00-|r Added slash command 'details reinstall' which cleans Details! config in case of erros.\n\n|cFFFFFF00v1.8.3|r\n\n|cFFFFFF00-|r Added new skin: Simple Gray.\n\n|cFFFFFF00-|r Added minimap and interface addon panel buttons.\n\n|cFFFFFF00-|r Added new tutorials bubbles for basic aspects of Details! window.\n\n|cFFFFFF00-|r Fixed a issue with Panic Mode where sometimes his isnt triggered.\n\n|cFFFFFF00v1.8.0|r\n\n|cFFFFFF00-|r Added a new plugin: You Are Not Prepared.\n\n|cFFFFFF00-|r New options panel!\n\n|cFFFFFF00v1.7.0|r\n\n- Fixed some colors issues with enimies bars.\n\n|cFFFFFF00-|r Fixed some phrases which isn't still not translated to enUS.\n\n|cFFFFFF00-|r Major rewrite on CC-Breaks, now it's working properly.\n\n|cFFFFFF00-|r Added new sub attribute for damage: Voidzones & Debuffs.|cFFFFFF00v1.6.7|r\n\n- Added support to skins, you can change over options panel.\n\n|cFFFFFF00v1.6.5|r\n\n|cFFFFFF00-|r Added sub attribute 'Enemies' which shows, of course, only enemies.\n\n|cFFFFFF00-|r Fixed issue with successful spell cast.\n\n|cFFFFFF00v1.6.3|r\n\n|cFFFFFF00-|r data capture now runs 4% faster.\n\n|cFFFFFF00-|r Fixed issue with pets were wasn't uptading owner activity time.\n\n|cFFFFFF00-|r Fixed healing being counted even out of combat.\n\n|cFFFFFF00-|r Fixed some problems with multi-boss encountes like Twin Consorts.\n\n|cFFFFFF00-|r Added options for concatenate trash segments.\n\n|cFFFFFF00-|r Added options for auto remove trash segments. \n\n|cFFFFFF00-|r Added options for change bar height. \n\n|cFFFFFF00-|r Encounter Details now display how many interrupted and successful cast of a boss skill.\n\n|cFFFFFF00v1.6.1|r\n\n|cFFFFFF00-|r Fixed:\n- a issue with debuff uptime.\n- overall data dps and hps for overall data on micro display.\n- many bugs involving sword and book menus.\n- garbage collector erasing actors with interactions with your group members.\n\n|cFFFFFF00-|r overall data now always use the combat data for measure dps and hps.\n\n|cFFFFFF00v1.6.0|r\n\n|cFFFFFF00-|r Added debuff uptime at misc attribute.\n\n|cFFFFFF00-|r Disabled attributes now have a darkness effect over sword menu.\n\n|cFFFFFF00-|r Fixed a issue were sometimes you need to /reload before change a talent.\n\n|cFFFFFF00v1.5.3|r\n\n|cFFFFFF00-|r Fixed a issue with report data during combat lockdown.\n\n|cFFFFFF00-|r Improved pet owner recognition and added a ignore list if couldn't find his owner.\n\n|cFFFFFF00-|r Added an option to display only frags on enemy players.\n\n|cFFFFFF00-|r Added class colors for frags.\n\n|cFFFFFF00v1.5.2|r\n\n|cFFFFFF00-|r Fixed a issue were turning off buff uptime was disabling healing done too.\n\n|cFFFFFF00-|r Avoidance statistics will not be recorded for pets, ungrouped players and monsters.\n\n|cFFFFFF00-|r Fixed a issue were sometimes buff uptime was taking too long to save data on logout.\n\n|cFFFFFF00v1.5.1|r\n\n|cFFFFFF00-|r Fixed a issue with report data were sometimes wasn't working.\n\n|cFFFFFF00v1.5.0|r" Loc ["STRING_DETAILS1"] = "|cffffaeaeDetails:|r " --> color and details name @@ -83,6 +83,10 @@ if not Loc then return end Loc ["STRING_SLASH_WORLDBOSS_DESC"] = "run a macro showing which boss you killed this week." Loc ["STRING_KILLED"] = "Killed" Loc ["STRING_ALIVE"] = "Alive" + + Loc ["STRING_SLASH_WIPECONFIG"] = "reinstall" + Loc ["STRING_SLASH_WIPECONFIG_DESC"] = "set Details! configuration to defaults for this character, use this if Details! aren't working properlly." + Loc ["STRING_SLASH_WIPECONFIG_CONFIRM"] = "Click To Continue With The Reinstall" --> StatusBar Plugins Loc ["STRING_STATUSBAR_NOOPTIONS"] = "This widget doesn't have options." diff --git a/locales/Details-ptBR.lua b/locales/Details-ptBR.lua index 59ac64ad..9db58395 100644 --- a/locales/Details-ptBR.lua +++ b/locales/Details-ptBR.lua @@ -2,7 +2,7 @@ local Loc = LibStub("AceLocale-3.0"):NewLocale("Details", "ptBR") if not Loc then return end -------------------------------------------------------------------------------------------------------------------------------------------- - Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v1.8.3|r\n\n|cFFFFFF00-|r Adicionada nova skin: Simple Gray.\n\n|cFFFFFF00-|r Adicionado botoes para o Details! no minimapa e menu de addons no painel de intercace.\n\n|cFFFFFF00-|r Adicionados novas bolhas de tutoriais para aspectos basicos das janelas do Details!.\n\n|cFFFFFF00-|r Corrigido o Modo Panico aonde as vezes ele nao era disparado.\n\n|cFFFFFF00v1.8.0|r\n\n- Adicionado novo plugin: You Are Not Prepared.\n\n|cFFFFFF00-|r Novo painel de opcoes!\n\n|cFFFFFF00v1.7.0|r\n\n- Corrigido alguns problemas com as cores das barras de inimigos.\n\n|cFFFFFF00-|r CC Quebrado foi inteiramente reescrito e agora deve funcionar corretamente.\n\n|cFFFFFF00-|r Adicionado novo sub atributo ao dano: Voidzones & Debuffs.|cFFFFFF00v1.6.7|r\n\n- Adicionado suporte a skins, troque ela atraves do painel de opcoes.\n\n|cFFFFFF00v1.6.5|r\n\n|cFFFFFF00-|r Adicionado o sub atributo 'Inimigos' que mostra, eh claro, somente inimigos.\n\n|cFFFFFF00-|r Corrigido um problema na captura das magias conjuradas.|cFFFFFF00v1.6.3|r\n\n|cFFFFFF00-|r captura de dados agora roda 4% mais rapido.\n\n|cFFFFFF00-|r Corrigido problema onde os ajudantes nao atualizavam o tempo de atividade do dono.\n\n|cFFFFFF00-|r Corrigido problema onde o healing era contado mesmo fora do combate.\n\n|cFFFFFF00-|r Corrigido problema com chefes multiplos como Twin Consorts.\n\n|cFFFFFF00-|r Adicionada opcao para juntar os segmentos de trash mobs.\n\n|cFFFFFF00-|r Adicionada opcao para auto remover os segmentos de trash mobs. \n\n|cFFFFFF00-|r Adicionada opcao para alterar a altura das barras.\n\n|cFFFFFF00-|r Plugin Encounter Details agora mostra quantos cast bem sucedidos as magias interrompidas tiveram.\n\n|cFFFFFF00v1.6.1|r\n\n|cFFFFFF00-|r Corrigido:\n- problema com o tempo de debuffs.\n- dps dos dados gerais e o dps no micro display .\n- varios bugs envolvendo o menu da espada e do livro.\n- o coletor de lixo nao ira mais apagar jogadores com vinculo a membros do grupo.\n\n|cFFFFFF00-|r dados gerais agora sempre ira usar o tempo do combate para medir dps e hps.\n\n|cFFFFFF00v1.6.0|r\n\n|cFFFFFF00-|r Adicionado tempo de debuff no atributo miscelanea.\n\n|cFFFFFF00-|r Atributos desativados agora ficam escurecidos no menu da espada.\n\n|cFFFFFF00-|r Corrigido um problema aonde algumas vezes era necessario dar /reload para trocar um talento.\n\n|cFFFFFF00v1.5.3|r\n\n|cFFFFFF00-|r Corrigido problema ao reportar durante o combate.\n\n|cFFFFFF00-|r Melhorado a reconhecimento dos donos de ajudantes.\n\n|cFFFFFF00-|r Adicionada uma opcao para mostrar apenas frags em cima de jogadores inimigos.\n\n|cFFFFFF00-|r Adicionado cor e icone aos frags.\n\n|cFFFFFF00v1.5.2|r\n\n|cFFFFFF00-|r Corrigido problema onde desativando o tempo dos buffs estava desativando tambem a cura feita.\n\n|cFFFFFF00-|r Estatisticas de Avoidance nao seram mais capturadas para pessoas foram do grupo, monstros ou ajudantes.\n\n|cFFFFFF00-|r Corrigido problema onde as vezes estava demorando muito para salvar o tempo dos buffs ao sair do jogo.\n\n|cFFFFFF00v1.5.1|r\n\n|cFFFFFF00-|r Corrigido problema ao reportar o Dps onde as vezes nao mostrava nenhum jogador.\n\n|cFFFFFF00v1.5.0|r\n\n|cFFFFFF00-|r Buff Uptime foi implementado no atributo miscelanea.\n\n|cFFFFFF00-|r Cooldowns usados agora aparecem nos registros da morte." + Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v1.8.4|r\n\n|cFFFFFF00-|r Adicionado comando 'details reinstalar' no qual limpa a configuracao do Details! em caso de erros.\n\n|cFFFFFF00v1.8.3|r\n\n|cFFFFFF00-|r Adicionada nova skin: Simple Gray.\n\n|cFFFFFF00-|r Adicionado botoes para o Details! no minimapa e menu de addons no painel de intercace.\n\n|cFFFFFF00-|r Adicionados novas bolhas de tutoriais para aspectos basicos das janelas do Details!.\n\n|cFFFFFF00-|r Corrigido o Modo Panico aonde as vezes ele nao era disparado.\n\n|cFFFFFF00v1.8.0|r\n\n- Adicionado novo plugin: You Are Not Prepared.\n\n|cFFFFFF00-|r Novo painel de opcoes!\n\n|cFFFFFF00v1.7.0|r\n\n- Corrigido alguns problemas com as cores das barras de inimigos.\n\n|cFFFFFF00-|r CC Quebrado foi inteiramente reescrito e agora deve funcionar corretamente.\n\n|cFFFFFF00-|r Adicionado novo sub atributo ao dano: Voidzones & Debuffs.|cFFFFFF00v1.6.7|r\n\n- Adicionado suporte a skins, troque ela atraves do painel de opcoes.\n\n|cFFFFFF00v1.6.5|r\n\n|cFFFFFF00-|r Adicionado o sub atributo 'Inimigos' que mostra, eh claro, somente inimigos.\n\n|cFFFFFF00-|r Corrigido um problema na captura das magias conjuradas.|cFFFFFF00v1.6.3|r\n\n|cFFFFFF00-|r captura de dados agora roda 4% mais rapido.\n\n|cFFFFFF00-|r Corrigido problema onde os ajudantes nao atualizavam o tempo de atividade do dono.\n\n|cFFFFFF00-|r Corrigido problema onde o healing era contado mesmo fora do combate.\n\n|cFFFFFF00-|r Corrigido problema com chefes multiplos como Twin Consorts.\n\n|cFFFFFF00-|r Adicionada opcao para juntar os segmentos de trash mobs.\n\n|cFFFFFF00-|r Adicionada opcao para auto remover os segmentos de trash mobs. \n\n|cFFFFFF00-|r Adicionada opcao para alterar a altura das barras.\n\n|cFFFFFF00-|r Plugin Encounter Details agora mostra quantos cast bem sucedidos as magias interrompidas tiveram.\n\n|cFFFFFF00v1.6.1|r\n\n|cFFFFFF00-|r Corrigido:\n- problema com o tempo de debuffs.\n- dps dos dados gerais e o dps no micro display .\n- varios bugs envolvendo o menu da espada e do livro.\n- o coletor de lixo nao ira mais apagar jogadores com vinculo a membros do grupo.\n\n|cFFFFFF00-|r dados gerais agora sempre ira usar o tempo do combate para medir dps e hps.\n\n|cFFFFFF00v1.6.0|r\n\n|cFFFFFF00-|r Adicionado tempo de debuff no atributo miscelanea.\n\n|cFFFFFF00-|r Atributos desativados agora ficam escurecidos no menu da espada.\n\n|cFFFFFF00-|r Corrigido um problema aonde algumas vezes era necessario dar /reload para trocar um talento.\n\n|cFFFFFF00v1.5.3|r\n\n|cFFFFFF00-|r Corrigido problema ao reportar durante o combate.\n\n|cFFFFFF00-|r Melhorado a reconhecimento dos donos de ajudantes.\n\n|cFFFFFF00-|r Adicionada uma opcao para mostrar apenas frags em cima de jogadores inimigos.\n\n|cFFFFFF00-|r Adicionado cor e icone aos frags.\n\n|cFFFFFF00v1.5.2|r\n\n|cFFFFFF00-|r Corrigido problema onde desativando o tempo dos buffs estava desativando tambem a cura feita.\n\n|cFFFFFF00-|r Estatisticas de Avoidance nao seram mais capturadas para pessoas foram do grupo, monstros ou ajudantes.\n\n|cFFFFFF00-|r Corrigido problema onde as vezes estava demorando muito para salvar o tempo dos buffs ao sair do jogo.\n\n|cFFFFFF00v1.5.1|r\n\n|cFFFFFF00-|r Corrigido problema ao reportar o Dps onde as vezes nao mostrava nenhum jogador.\n\n|cFFFFFF00v1.5.0|r\n\n" Loc ["STRING_DETAILS1"] = "|cffffaeaeDetalhes:|r " --> color and details name @@ -82,6 +82,10 @@ if not Loc then return end Loc ["STRING_KILLED"] = "Morto" Loc ["STRING_ALIVE"] = "Vivo" + Loc ["STRING_SLASH_WIPECONFIG"] = "reinstalar" + Loc ["STRING_SLASH_WIPECONFIG_DESC"] = "faz a reinstalacao do addon limpando toda a configuracao, use caso o Details! nao esteja funcionando corretamente." + Loc ["STRING_SLASH_WIPECONFIG_CONFIRM"] = "Continuar com a reinstalacao?." + --> StatusBar Plugins Loc ["STRING_STATUSBAR_NOOPTIONS"] = "Nao ha opcoes para esta ferramenta." diff --git a/startup.lua b/startup.lua index 7be274d3..d284b1ac 100644 --- a/startup.lua +++ b/startup.lua @@ -114,23 +114,15 @@ function _G._detalhes:Start() self.tutorial.unlock_button = self.tutorial.unlock_button or 0 self.tutorial.version_announce = self.tutorial.version_announce or 0 self.tutorial.main_help_button = self.tutorial.main_help_button or 0 - - --[1] criar nova instancia - --[2] esticar janela - --[3] resize e trava - --[4] shortcut frame - --[5] micro displays - --[6] snap windows - self.tutorial.alert_frames = self.tutorial.alert_frames or {false, false, false, false, false, false} - --self.tutorial.alert_frames = {false, false, false, false, false, false} self.tutorial.logons = self.tutorial.logons + 1 - if (self.tutorial.logons < 5) then - --if (self.tutorial.logons < 55) then --debug - self:StartTutorial() - end + self.character_data = self.character_data or { + logons = 0, + } + self.character_data.logons = self.character_data.logons + 1 + --> class colors and tcoords if (not self.class_colors) then self.class_colors = {} @@ -355,6 +347,10 @@ function _G._detalhes:Start() _detalhes:OpenWelcomeWindow() end + if (self.tutorial.logons < 5) then + self:StartTutorial() + end + if (self.is_version_first_run) then local lower_instance = _detalhes:GetLowerInstanceNumber() if (lower_instance) then