This commit is contained in:
Crum
2017-12-19 23:41:26 -06:00
parent 0f720adce6
commit 620dc04ec3
10 changed files with 432 additions and 552 deletions
@@ -79,7 +79,7 @@ function DT:SetupObjectLDB(name, obj)
if value == nil or (len(value) >= 3) or value == "n/a" or name == value then
curFrame.text:SetText(value ~= "n/a" and value or name)
else
curFrame.text:SetFormattedText("%s: %s%s|r", name, hex, value)
curFrame.text:SetText(format("%s: %s%s|r", name, hex, value))
end
end
@@ -44,14 +44,14 @@ end
local menuFrame = CreateFrame("Frame", "FriendDatatextRightClickMenu", E.UIParent, "L_UIDropDownMenuTemplate")
local menuList = {
{text = "OPTIONS_MENU", isTitle = true, notCheckable = true},
{text = "INVITE", hasArrow = true, notCheckable = true},
{text = "CHAT_MSG_WHISPER_INFORM", hasArrow = true, notCheckable= true},
{text = "PLAYER_STATUS", hasArrow = true, notCheckable = true,
{text = OPTIONS_MENU, isTitle = true, notCheckable = true},
{text = INVITE, hasArrow = true, notCheckable = true},
{text = CHAT_MSG_WHISPER_INFORM, hasArrow = true, notCheckable = true},
{text = PLAYER_STATUS, hasArrow = true, notCheckable = true,
menuList = {
{text = "|cff2BC226" .. "AVAILABLE" .. "|r", notCheckable = true, func = function() end},
{text = "|cffE7E716" .. "AFK" .. "|r", notCheckable = true, func = function() end},
{text = "|cffFF0000" .. "DND" .. "|r", notCheckable = true, func = function() end}
{text = "|cff2BC226" .. AVAILABLE .. "|r", notCheckable = true, func = function() end},
{text = "|cffE7E716" .. CHAT_MSG_AFK .. "|r", notCheckable = true, func = function() end},
{text = "|cffFF0000" .. CHAT_MSG_DND .. "|r", notCheckable = true, func = function() end}
}
}
}
@@ -95,9 +95,9 @@ local function BuildFriendTable(total)
for i = 1, total do
name, level, class, area, connected, status, note = GetFriendInfo(i)
if status == "<" .. "AFK" .. ">" then
if status == CHAT_FLAG_AFK then
status = "|cffFFFFFF[|r|cffFF0000" .. L["AFK"] .. "|r|cffFFFFFF]|r"
elseif status == "<" .. "DND" .. ">" then
elseif status == CHAT_FLAG_DND then
status = "|cffFFFFFF[|r|cffFF0000" .. L["DND"] .. "|r|cffFFFFFF]|r"
end
@@ -118,10 +118,10 @@ local function OnEvent(self, event, ...)
end
end
local menuFrame = CreateFrame("Frame", "GuildDatatTextRightClickMenu", E.UIParent, "UIDropDownMenuTemplate")
local menuFrame = CreateFrame("Frame", "GuildDatatTextRightClickMenu", E.UIParent, "L_UIDropDownMenuTemplate")
local menuList = {
{ text = OPTIONS_MENU, isTitle = true, notCheckable=true},
{ text = INVITE, hasArrow = true, notCheckable=true,},
{ text = OPTIONS_MENU, isTitle = true, notCheckable = true},
{ text = INVITE, hasArrow = true, notCheckable = true,},
{ text = CHAT_MSG_WHISPER_INFORM, hasArrow = true, notCheckable=true,}
}