From 246bba74ee18c40bb07eef6dd014852b3a469977 Mon Sep 17 00:00:00 2001 From: Joel Watson Date: Mon, 12 Sep 2022 23:56:39 -0500 Subject: [PATCH 1/3] Update version numbers for WotLK --- TitanSocial.lua | 2 +- TitanSocial.toc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/TitanSocial.lua b/TitanSocial.lua index f96bc12..3edef86 100644 --- a/TitanSocial.lua +++ b/TitanSocial.lua @@ -78,7 +78,7 @@ local bDebugMode = false -- Required Titan variables local TITAN_SOCIAL_ID = "Social" -local TITAN_SOCIAL_VERSION = "1.13.3" +local TITAN_SOCIAL_VERSION = "3.4.0" local TITAN_SOCIAL_TOOLTIP_KEY = "TitanSocialTooltip" local MOBILE_HERE_ICON = "|TInterface\\ChatFrame\\UI-ChatIcon-ArmoryChat:0:0:0:0:16:16:0:16:0:16:73:177:73|t" diff --git a/TitanSocial.toc b/TitanSocial.toc index cd6db91..13b80fc 100644 --- a/TitanSocial.toc +++ b/TitanSocial.toc @@ -1,11 +1,11 @@ -## Interface: 20501 -## Title: Titan Panel Classic [|cffeda55fSocial|r] |cff00aa002.5.0|r +## Interface: 30400 +## Title: Titan Panel Classic [|cffeda55fSocial|r] |cff00aa003.4.0|r ## Notes: A Titan Panel plugin incorporating Friends, Guild, and Battle.net Friends ## Author: solocommand and eridius ## SavedVariables: ## SavedVariablesPerCharacter: TitanSocialVars ## Dependencies: TitanClassic -## Version: 2.5.0 +## Version: 3.4.0 ## LoadOnDemand: 0 ## DefaultState: enabled TitanSocial.xml From d4fcfa6eefe3443ce131cf9a4f5480d45b6eafa0 Mon Sep 17 00:00:00 2001 From: Joel Watson Date: Mon, 12 Sep 2022 23:57:07 -0500 Subject: [PATCH 2/3] Add Death Knight class --- TitanSocial.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TitanSocial.lua b/TitanSocial.lua index 3edef86..01046da 100644 --- a/TitanSocial.lua +++ b/TitanSocial.lua @@ -98,7 +98,7 @@ local INTERACTION_NEVER = "never" -- Class support local TitanSocial_ClassMap = {} -- Classic -local classes = { 'DRUID', 'HUNTER', 'MAGE', 'PALADIN', 'PRIEST', 'ROGUE', 'SHAMAN', 'WARLOCK', 'WARRIOR' } +local classes = { 'DEATHKNIGHT', 'DRUID', 'HUNTER', 'MAGE', 'PALADIN', 'PRIEST', 'ROGUE', 'SHAMAN', 'WARLOCK', 'WARRIOR' } for i, name in ipairs(classes) do TitanSocial_ClassMap[_G.LOCALIZED_CLASS_NAMES_MALE[name]] = name TitanSocial_ClassMap[_G.LOCALIZED_CLASS_NAMES_FEMALE[name]] = name From 7516cc6ba25b265fb1bae0f3e615e46fd40a9c2c Mon Sep 17 00:00:00 2001 From: Joel Watson Date: Mon, 12 Sep 2022 23:58:12 -0500 Subject: [PATCH 3/3] Tooltip fix Not sure where this came from, but it was in my TBC version and wasn't in the repo. Solves a bug that was keeping the tooltip from loading. --- tooltip.lua | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/tooltip.lua b/tooltip.lua index f22c105..0b066ff 100644 --- a/tooltip.lua +++ b/tooltip.lua @@ -3,6 +3,17 @@ local addonName, addonTable = ... local tooltip = {} addonTable.tooltip = tooltip + +local defaultBackdrop = { + bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", + edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", + tile = true, + tileSize = 16, + edgeSize = 16, + insets = {left = 4, right = 4, top = 4, bottom = 4,} +} + + local CreateFrame = _G.CreateFrame local UIParent = _G.UIParent local GameTooltip = _G.GameTooltip @@ -205,12 +216,9 @@ function tooltip:Clear(...) ResetTooltipSize() -- pull current GameTooltip values - local backdrop = GameTooltip:GetBackdrop() - tframe:SetBackdrop(backdrop) - if backdrop then - tframe:SetBackdropColor(GameTooltip:GetBackdropColor()) - tframe:SetBackdropBorderColor(GameTooltip:GetBackdropBorderColor()) - end + --local backdrop = GameTooltip:GetBackdrop() + tframe:SetBackdrop(defaultBackdrop) + tframe:SetBackdropColor(0,0,0,1) tframe:SetScale(GameTooltip:GetScale()) tframe.font = _G.GameTooltipText tframe.headerFont = _G.GameTooltipHeaderText