diff --git a/CommunityDKP.toc b/CommunityDKP.toc index ff61a608..a1d663a7 100644 --- a/CommunityDKP.toc +++ b/CommunityDKP.toc @@ -1,4 +1,6 @@ -## Interface: 11305 +## Interface: 11307 +## Interface-Classic: 11307 +## Interface-BCC: 20501 ## Title: |cff9900ffCommunity|r |cff595959DKP|r ## Author: Vapok-BloodsailBuccaneers ## Notes: Feature-rich DKP Management Tool diff --git a/Core.lua b/Core.lua index cf3e7b5f..86dbdb33 100644 --- a/Core.lua +++ b/Core.lua @@ -169,7 +169,7 @@ core.EncounterList = { -- Event IDs must be in the exact same order as core core.CommDKPUI = {} -- global storing entire Configuration UI to hide/show UI core.MonVersion = "v3.2.8"; core.BuildNumber = 30208; -core.ReleaseNumber = 68 +core.ReleaseNumber = 69 core.defaultTable = "__default"; core.SemVer = core.MonVersion.."-r"..tostring(core.ReleaseNumber); core.UpgradeSchema = false; @@ -506,10 +506,12 @@ end function CommDKP:CreateContainer(parent, name, header) + local f; + if WOW_PROJECT_ID == WOW_PROJECT_CLASSIC then - local f = CreateFrame("Frame", "CommDKP"..name, parent); + f = CreateFrame("Frame", "CommDKP"..name, parent); elseif WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC then - local f = CreateFrame("Frame", "CommDKP"..name, parent, BackdropTemplateMixin and "BackdropTemplate" or nil); + f = CreateFrame("Frame", "CommDKP"..name, parent, BackdropTemplateMixin and "BackdropTemplate" or nil); end diff --git a/Localization/Localization.cn.lua b/Localization/Localization.cn.lua index 6b509f58..0869f954 100644 --- a/Localization/Localization.cn.lua +++ b/Localization/Localization.cn.lua @@ -900,7 +900,7 @@ if GetLocale() == "zhCN" then MIGRATIONCOMPLETED = "Migration complete.|n|nPlease disable MonolithDKP and /reload the UI.", --TODO TRANSLATE: --TODO TRANSLATE: - CHANGELOG1 = "CommunityDKP - v3.2.8-r68-bcc", + CHANGELOG1 = "CommunityDKP - v3.2.8-r69-bcc", CHANGELOG2 = " - fixed UI for classic era realms", CHANGELOG3 = "", CHANGELOG4 = "", diff --git a/Localization/Localization.de.lua b/Localization/Localization.de.lua index 81c677dc..d38c64e1 100644 --- a/Localization/Localization.de.lua +++ b/Localization/Localization.de.lua @@ -894,7 +894,7 @@ if GetLocale() == "deDE" then MIGRATIONCOMPLETED = "Migration abgeschlossen.|n|nBitte deaktivieren Sie MonolithDKP und laden Sie das UI neu. (/reload)", --TODO TRANSLATE: - CHANGELOG1 = "CommunityDKP - v3.2.8-r68-bcc", + CHANGELOG1 = "CommunityDKP - v3.2.8-r69-bcc", CHANGELOG2 = " - fixed UI for classic era realms", CHANGELOG3 = "", CHANGELOG4 = "", diff --git a/Localization/Localization.en.lua b/Localization/Localization.en.lua index 8e58fb8d..7720d42f 100644 --- a/Localization/Localization.en.lua +++ b/Localization/Localization.en.lua @@ -875,7 +875,7 @@ core.L = { MIGRATIONCANCELED = "Migration canceled.|n|nPlease disable MonolithDKP and /reload the UI if you want to continue with CommunityDKP without using your current tables and settings.", MIGRATIONCOMPLETED = "Migration complete.|n|nPlease disable MonolithDKP and /reload the UI.", - CHANGELOG1 = "CommunityDKP - v3.2.8-r68-bcc", + CHANGELOG1 = "CommunityDKP - v3.2.8-r69-bcc", CHANGELOG2 = " - fixed UI for classic era realms", CHANGELOG3 = "", CHANGELOG4 = "", diff --git a/Localization/Localization.es.lua b/Localization/Localization.es.lua index f823a653..91d401ad 100644 --- a/Localization/Localization.es.lua +++ b/Localization/Localization.es.lua @@ -898,7 +898,7 @@ if GetLocale() == "esES" or GetLocale() == "esMX" then MIGRATIONCOMPLETED = "Migration complete.|n|nPlease disable MonolithDKP and /reload the UI.", --TODO TRANSLATE: --TODO TRANSLATE: - CHANGELOG1 = "CommunityDKP - v3.2.8-r68-bcc", + CHANGELOG1 = "CommunityDKP - v3.2.8-r69-bcc", CHANGELOG2 = " - fixed UI for classic era realms", CHANGELOG3 = "", CHANGELOG4 = "", diff --git a/Localization/Localization.fr.lua b/Localization/Localization.fr.lua index 8d45ff38..33600d39 100644 --- a/Localization/Localization.fr.lua +++ b/Localization/Localization.fr.lua @@ -945,7 +945,7 @@ if GetLocale() == "frFR" then MIGRATIONCOMPLETED = "Migration réussie.|n|nVeuillez désactiver MonolithDKP et recharger votre interface (/reload).", --TODO TRANSLATE: --TODO TRANSLATE: - CHANGELOG1 = "CommunityDKP - v3.2.8-r68-bcc", + CHANGELOG1 = "CommunityDKP - v3.2.8-r69-bcc", CHANGELOG2 = " - fixed UI for classic era realms", CHANGELOG3 = "", CHANGELOG4 = "", diff --git a/Localization/Localization.kr.lua b/Localization/Localization.kr.lua index bdb2e895..c340000c 100644 --- a/Localization/Localization.kr.lua +++ b/Localization/Localization.kr.lua @@ -897,7 +897,7 @@ if GetLocale() == "koKR" then MIGRATIONCOMPLETED = "Migration complete.|n|nPlease disable MonolithDKP and /reload the UI.", --TODO TRANSLATE: --TODO TRANSLATE: - CHANGELOG1 = "CommunityDKP - v3.2.8-r68-bcc", + CHANGELOG1 = "CommunityDKP - v3.2.8-r69-bcc", CHANGELOG2 = " - fixed UI for classic era realms", CHANGELOG3 = "", CHANGELOG4 = "", diff --git a/Localization/Localization.ru.lua b/Localization/Localization.ru.lua index 2aacdef1..5dcc7a74 100644 --- a/Localization/Localization.ru.lua +++ b/Localization/Localization.ru.lua @@ -956,7 +956,7 @@ if GetLocale() == "ruRU" then MIGRATIONCOMPLETED = "Миграция завершена.|n|nПожалуйста отключите MonolithDKP и перезагрузите интерфейс.", --TODO TRANSLATE: - CHANGELOG1 = "CommunityDKP - v3.2.8-r68-bcc", + CHANGELOG1 = "CommunityDKP - v3.2.8-r69-bcc", CHANGELOG2 = " - fixed UI for classic era realms", CHANGELOG3 = "", CHANGELOG4 = "", diff --git a/Localization/Localization.se.lua b/Localization/Localization.se.lua index 4c13f6a7..6e5b774e 100644 --- a/Localization/Localization.se.lua +++ b/Localization/Localization.se.lua @@ -808,7 +808,7 @@ core.L = { MIGRATIONCOMPLETED = "Migration complete.|n|nPlease disable MonolithDKP and /reload the UI.", --TODO TRANSLATE: - CHANGELOG1 = "CommunityDKP - v3.2.8-r68-bcc", + CHANGELOG1 = "CommunityDKP - v3.2.8-r69-bcc", CHANGELOG2 = " - fixed class filters (shamans / paladins)", CHANGELOG3 = " - fixed class graph (9th class)", CHANGELOG4 = " - updated version in the header", diff --git a/Localization/Localization.tw.lua b/Localization/Localization.tw.lua index a8c60760..0a11d2ab 100644 --- a/Localization/Localization.tw.lua +++ b/Localization/Localization.tw.lua @@ -899,7 +899,7 @@ if GetLocale() == "zhTW" then MIGRATIONCOMPLETED = "Migration complete.|n|nPlease disable MonolithDKP and /reload the UI.", --TODO TRANSLATE: --TODO TRANSLATE: - CHANGELOG1 = "CommunityDKP - v3.2.8-r68-bcc", + CHANGELOG1 = "CommunityDKP - v3.2.8-r69-bcc", CHANGELOG2 = " - fixed UI for classic era realms", CHANGELOG3 = "", CHANGELOG4 = "", diff --git a/Modules/Award.lua b/Modules/Award.lua index 6388c087..05a7f2b6 100644 --- a/Modules/Award.lua +++ b/Modules/Award.lua @@ -275,10 +275,12 @@ end local function AwardConfirm_Create() + local f; + if WOW_PROJECT_ID == WOW_PROJECT_CLASSIC then - local f = CreateFrame("Frame", "CommDKP_AwardWindowConfirm", UIParent, "ShadowOverlaySmallTemplate"); + f = CreateFrame("Frame", "CommDKP_AwardWindowConfirm", UIParent, "ShadowOverlaySmallTemplate"); elseif WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC then - local f = CreateFrame("Frame", "CommDKP_AwardWindowConfirm", UIParent, BackdropTemplateMixin and "BackdropTemplate" or nil); + f = CreateFrame("Frame", "CommDKP_AwardWindowConfirm", UIParent, BackdropTemplateMixin and "BackdropTemplate" or nil); end f:SetPoint("TOP", UIParent, "TOP", 0, -200); diff --git a/Modules/BidInterface.lua b/Modules/BidInterface.lua index de4225df..653a06f0 100644 --- a/Modules/BidInterface.lua +++ b/Modules/BidInterface.lua @@ -325,10 +325,12 @@ end local function BidWindowCreateRow(parent, id) -- Create 3 buttons for each row in the list + local f; + if WOW_PROJECT_ID == WOW_PROJECT_CLASSIC then - local f = CreateFrame("Frame", "CommDKP_BidderWindow", UIParent, "ShadowOverlaySmallTemplate"); + f = CreateFrame("Frame", "CommDKP_BidderWindow", UIParent, "ShadowOverlaySmallTemplate"); elseif WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC then - local f = CreateFrame("Button", "$parentLine"..id, parent) + f = CreateFrame("Button", "$parentLine"..id, parent) end f.Strings = {} diff --git a/Modules/Bidding.lua b/Modules/Bidding.lua index 1d43cb8e..8b1488c0 100644 --- a/Modules/Bidding.lua +++ b/Modules/Bidding.lua @@ -1206,10 +1206,12 @@ end function CommDKP:CreateBidWindow() + local f; + if WOW_PROJECT_ID == WOW_PROJECT_CLASSIC then - local f = CreateFrame("Frame", "CommDKP_BiddingWindow", UIParent, "ShadowOverlaySmallTemplate"); + f = CreateFrame("Frame", "CommDKP_BiddingWindow", UIParent, "ShadowOverlaySmallTemplate"); elseif WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC then - local f = CreateFrame("Frame", "CommDKP_BiddingWindow", UIParent, BackdropTemplateMixin and "BackdropTemplate" or nil); + f = CreateFrame("Frame", "CommDKP_BiddingWindow", UIParent, BackdropTemplateMixin and "BackdropTemplate" or nil); end mode = core.DB.modes.mode; diff --git a/Modules/DKPModes.lua b/Modules/DKPModes.lua index 753bd927..68497226 100644 --- a/Modules/DKPModes.lua +++ b/Modules/DKPModes.lua @@ -23,10 +23,12 @@ end function CommDKP:DKPModesFrame_Create() + local f; + if WOW_PROJECT_ID == WOW_PROJECT_CLASSIC then - local f = CreateFrame("Frame", "CommDKP_DKPModesFrame", UIParent); + f = CreateFrame("Frame", "CommDKP_DKPModesFrame", UIParent); elseif WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC then - local f = CreateFrame("Frame", "CommDKP_DKPModesFrame", UIParent, BackdropTemplateMixin and "BackdropTemplate" or nil); + f = CreateFrame("Frame", "CommDKP_DKPModesFrame", UIParent, BackdropTemplateMixin and "BackdropTemplate" or nil); end local ActiveMode = core.DB.modes.mode; diff --git a/Modules/ZeroSumBank.lua b/Modules/ZeroSumBank.lua index b6aac6f5..0eeee8b7 100644 --- a/Modules/ZeroSumBank.lua +++ b/Modules/ZeroSumBank.lua @@ -87,10 +87,12 @@ end function CommDKP:ZeroSumBank_Create() + local f; + if WOW_PROJECT_ID == WOW_PROJECT_CLASSIC then - local f = CreateFrame("Frame", "CommDKP_DKPZeroSumBankFrame", UIParent, "ShadowOverlaySmallTemplate"); + f = CreateFrame("Frame", "CommDKP_DKPZeroSumBankFrame", UIParent, "ShadowOverlaySmallTemplate"); elseif WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC then - local f = CreateFrame("Frame", "CommDKP_DKPZeroSumBankFrame", UIParent, BackdropTemplateMixin and "BackdropTemplate" or nil); + f = CreateFrame("Frame", "CommDKP_DKPZeroSumBankFrame", UIParent, BackdropTemplateMixin and "BackdropTemplate" or nil); end if not core.DB.modes.ZeroSumBank then core.DB.modes.ZeroSumBank = 0 end