From 09845aa96d9895aeda2c6c330d60934cf637dcd6 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Wed, 31 Aug 2022 12:17:58 -0300 Subject: [PATCH] BCC cleanups and /slash reporting retail build counter --- boot.lua | 6 ++--- functions/slash.lua | 10 ++----- startup.lua | 63 --------------------------------------------- 3 files changed, 4 insertions(+), 75 deletions(-) diff --git a/boot.lua b/boot.lua index 3e5321bd3..d29ef9588 100644 --- a/boot.lua +++ b/boot.lua @@ -6,10 +6,8 @@ local version, build, date, tocversion = GetBuildInfo() - _detalhes.build_counter = 10010 - _detalhes.alpha_build_counter = 10010 --if this is higher than the regular counter, use it instead - _detalhes.bcc_counter = 41 - _detalhes.wotlk_counter = 4 + _detalhes.build_counter = 10015 + _detalhes.alpha_build_counter = 10015 --if this is higher than the regular counter, use it instead _detalhes.dont_open_news = true _detalhes.game_version = version _detalhes.userversion = version .. _detalhes.build_counter diff --git a/functions/slash.lua b/functions/slash.lua index 707bbf91e..9dd4f35ee 100644 --- a/functions/slash.lua +++ b/functions/slash.lua @@ -1696,16 +1696,10 @@ function SlashCmdList.DETAILS (msg, editbox) print (" ") if (DetailsFramework.IsWotLKWow()) then - --wraft of the lich kind classic - local v = _detalhes.game_version .. "." .. (_detalhes.wotlk_counter) - print (Loc ["STRING_DETAILS1"] .. "|cFFFFFF00DETAILS! VERSION|r: |cFFFFAA00WOTLK" .. _detalhes.wotlk_counter) + --wraft of the lich kind classic, the retail version of details should work on lich king, so let's print here the retail build counter + print (Loc ["STRING_DETAILS1"] .. "|cFFFFFF00DETAILS! VERSION|r: |cFFFFAA00W" .. _detalhes.build_counter) print (Loc ["STRING_DETAILS1"] .. "|cFFFFFF00GAME VERSION|r: |cFFFFAA00" .. _detalhes.game_version) - elseif (DetailsFramework.IsTBCWow()) then - --the burning crusade classic - local v = _detalhes.game_version .. "." .. (_detalhes.bcc_counter) - print (Loc ["STRING_DETAILS1"] .. "|cFFFFFF00DETAILS! VERSION|r: |cFFFFAA00BCC" .. _detalhes.bcc_counter) - print (Loc ["STRING_DETAILS1"] .. "|cFFFFFF00GAME VERSION|r: |cFFFFAA00" .. _detalhes.game_version) else --retail local v = _detalhes.game_version .. "." .. (_detalhes.build_counter >= _detalhes.alpha_build_counter and _detalhes.build_counter or _detalhes.alpha_build_counter) diff --git a/startup.lua b/startup.lua index d4285a8e6..1ca21c541 100644 --- a/startup.lua +++ b/startup.lua @@ -557,69 +557,6 @@ function Details:StartMeUp() --I'll never stop! end) end - if (DetailsFramework.IsTBCWow()) then - --remover isso em versões mais atualizadas - if (_detalhes.bcc_counter == 18 or _detalhes.bcc_counter == 19) then - _detalhes.trash_auto_remove = false - end - - local originalPosition - local isOnOriginalPosition = true - - local taintWarning = CreateFrame ("frame", nil, UIParent, "BackdropTemplate") - taintWarning:SetSize (500, 35) - taintWarning:SetFrameStrata ("low") - - DetailsFramework:ApplyStandardBackdrop(taintWarning) - - local warningMessage = taintWarning:CreateFontString (nil, "overlay", "GameFontNormal") - warningMessage:SetText ("< right click and choose 'Enter Battle' if 'Enter Battle' button does not work") - - C_Timer.NewTicker(3, function() -- default = 1 - if (not Details.DontMoveMinimapIconOnBattlegroundError) then - if (StaticPopup1:IsShown() or StaticPopup2:IsShown()) then - if (StaticPopup1.which == "ADDON_ACTION_FORBIDDEN" or (StaticPopup2 and StaticPopup2:IsShown() and StaticPopup2.which == "ADDON_ACTION_FORBIDDEN")) then - - if (StaticPopup2:IsShown()) then - if (StaticPopup2.which == "ADDON_ACTION_FORBIDDEN") then - StaticPopup_Hide("ADDON_ACTION_FORBIDDEN") - end - end - - - if (MiniMapBattlefieldFrame:IsShown())then - taintWarning:Show() - taintWarning:SetPoint ("topleft", StaticPopup1, "bottomleft", 0, -10) - if (not originalPosition) then - local a = {} - for i = 1, MiniMapBattlefieldFrame:GetNumPoints() do - a[#a + 1] = {MiniMapBattlefieldFrame:GetPoint(i)} - end - originalPosition = a - end - - MiniMapBattlefieldFrame:ClearAllPoints() - MiniMapBattlefieldFrame:SetPoint("left", taintWarning, "left", 10, -2) - warningMessage:SetPoint ("left", MiniMapBattlefieldFrame, "right", 9, 0) - MiniMapBattlefieldFrame:SetFrameStrata("HIGH") - - isOnOriginalPosition = false - end - end - else - if (originalPosition and not isOnOriginalPosition) then - MiniMapBattlefieldFrame:ClearAllPoints() - for i = 1, #originalPosition do - MiniMapBattlefieldFrame:SetPoint(unpack (originalPosition[i])) - end - taintWarning:Hide() - isOnOriginalPosition = true - end - end - end - end) - end - hooksecurefunc(GameCooltip, "SetMyPoint", function() if (DetailsAllAttributesFrame) then DetailsAllAttributesFrame:Hide()