Skip to content

Commit

Permalink
Merge pull request #33 from watsonian/classic-wotlk
Browse files Browse the repository at this point in the history
Update for WotLK
  • Loading branch information
solocommand authored Sep 14, 2022
2 parents ab4b95d + 7516cc6 commit 618404e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
4 changes: 2 additions & 2 deletions TitanSocial.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions TitanSocial.toc
Original file line number Diff line number Diff line change
@@ -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
20 changes: 14 additions & 6 deletions tooltip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 618404e

Please sign in to comment.