Skip to content

Commit

Permalink
Update TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
solocommand committed Mar 25, 2016
1 parent 3801241 commit 1dd7cb8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
26 changes: 13 additions & 13 deletions TitanSocial.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ local bDebugMode = false

-- Required Titan variables
local TITAN_SOCIAL_ID = "Social"
local TITAN_SOCIAL_VERSION = "5.4r30"
local TITAN_SOCIAL_VERSION = "6.2.4"
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 Down Expand Up @@ -169,16 +169,16 @@ end
function _G.TitanPanelRightClickMenu_PrepareSocialMenu(frame, level, menuList)
if level == 1 then
TitanPanelRightClickMenu_AddTitle(TitanUtils_GetPlugin(TITAN_SOCIAL_ID).menuText, level)

-- RealID Menu
addSubmenu(L.MENU_REALID, "RealID", level)

-- Friends Menu
addSubmenu(L.MENU_FRIENDS, "Friends", level)

-- Guild Menu
addSubmenu(L.MENU_GUILD, "Guild", level)

TitanPanelRightClickMenu_AddSpacer(level)
TitanPanelRightClickMenu_AddToggleVar(L.MENU_SHOW_GROUP_MEMBERS, TITAN_SOCIAL_ID, "ShowGroupMembers", nil, level)

Expand All @@ -187,7 +187,7 @@ function _G.TitanPanelRightClickMenu_PrepareSocialMenu(frame, level, menuList)

-- Interaction menu
addSubmenu(L.MENU_INTERACTION, "Interaction", level)

TitanPanelRightClickMenu_AddSpacer(level)
TitanPanelRightClickMenu_AddToggleIcon(TITAN_SOCIAL_ID, level)
TitanPanelRightClickMenu_AddToggleVar(L.MENU_LABEL, TITAN_SOCIAL_ID, "ShowLabel", nil, level)
Expand All @@ -203,14 +203,14 @@ function _G.TitanPanelRightClickMenu_PrepareSocialMenu(frame, level, menuList)
TitanPanelRightClickMenu_AddToggleVar(L.MENU_REALID_NOTE, TITAN_SOCIAL_ID, "ShowRealIDNotes", nil, level)
TitanPanelRightClickMenu_AddToggleVar(L.MENU_REALID_APP, TITAN_SOCIAL_ID, "ShowRealIDApp", nil, level)
end

-- Friends Menu
if menuList == "Friends" then
TitanPanelRightClickMenu_AddTitle(L.MENU_FRIENDS, level)
TitanPanelRightClickMenu_AddToggleVar(L.MENU_FRIENDS_SHOW, TITAN_SOCIAL_ID, "ShowFriends", nil, level)
TitanPanelRightClickMenu_AddToggleVar(L.MENU_FRIENDS_NOTE, TITAN_SOCIAL_ID, "ShowFriendsNote", nil, level)
end

-- Guild Menu
if menuList == "Guild" then
TitanPanelRightClickMenu_AddTitle(L.MENU_GUILD, level)
Expand All @@ -219,7 +219,7 @@ function _G.TitanPanelRightClickMenu_PrepareSocialMenu(frame, level, menuList)
TitanPanelRightClickMenu_AddToggleVar(L.MENU_GUILD_NOTE, TITAN_SOCIAL_ID, "ShowGuildNote", nil, level)
TitanPanelRightClickMenu_AddToggleVar(L.MENU_GUILD_ONOTE, TITAN_SOCIAL_ID, "ShowGuildONote", nil, level)
TitanPanelRightClickMenu_AddToggleVar(L.MENU_GUILD_REMOTE_CHAT, TITAN_SOCIAL_ID, "ShowSplitRemoteChat", nil, level)

TitanPanelRightClickMenu_AddSpacer(level)
addSubmenu(L.MENU_GUILD_SORT, "GuildSort", level)
end
Expand All @@ -237,7 +237,7 @@ function _G.TitanPanelRightClickMenu_PrepareSocialMenu(frame, level, menuList)
addRadioRefresh(L.MENU_INTERACTION_OOC, "TooltipInteraction", INTERACTION_OOC, level)
addRadioRefresh(L.MENU_INTERACTION_NEVER, "TooltipInteraction", INTERACTION_NEVER, level)
end

if menuList == "Options" then
TitanPanelRightClickMenu_AddTitle(L.MENU_OPTIONS, level)
end
Expand Down Expand Up @@ -937,7 +937,7 @@ local function addFriends(tooltip, collapseVar)
if area ~= nil then
right = "|cffFFFFFF"..area.."|r"
end

local y = tooltip:AddLine(check, level, left, right)
tooltip:SetLineScript(y, "OnMouseDown", clickPlayer, { origname, false, false, false })
end
Expand Down Expand Up @@ -1081,12 +1081,12 @@ local function buildTooltip(tooltip)
addRealID(tooltip, bnet, true, "CollapseRealIDApp")
end
end

if TitanGetVar(TITAN_SOCIAL_ID, "ShowFriends") then
tooltip:AddLine()
addFriends(tooltip, "CollapseFriends")
end

if TitanGetVar(TITAN_SOCIAL_ID, "ShowGuild") then
tooltip:AddLine()
addGuild(tooltip, "CollapseGuild", "CollapseRemoteChat")
Expand Down
6 changes: 3 additions & 3 deletions TitanSocial.toc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## Interface: 60100
## Interface: 60200
## X-Min-Interface: 60000
## Title: Titan Panel [|cffeda55fSocial|r] |cff00aa006.1r32|r
## Title: Titan Panel [|cffeda55fSocial|r] |cff00aa006.2.4|r
## Notes: A Titan Panel plugin incorporating Friends, Guild, and RealID Friends
## Author: solocommand and eridius
## SavedVariables:
## SavedVariablesPerCharacter: TitanSocialVars
## Dependencies: Titan
## Version: 6.1r32
## Version: 6.2.4
## LoadOnDemand: 0
## DefaultState: enabled
TitanSocial.xml

0 comments on commit 1dd7cb8

Please sign in to comment.