/
## Title: Urban Achiever |
## Author: Syzgyn Modified by Tomate |
## Notes: Improved Achievement Frame |
## Version 0.9.9.wowi:revision |
## Version 0.10.0.wowi:revision |
## OptionalDeps: Blizzard_AchievementUI |
## SavedVariables: UASV |
## SavedVariablesPerCharacter: UASVPC |
------------------------------------------------------------- |
function self:InsertIntoChat(id) |
--Taken from Historian, thanks Ixchael! |
if (ChatFrameEditBox == nil) then |
if (ChatFrame1EditBox == nil) then |
return; |
end; |
if not ChatFrameEditBox:IsVisible() then |
ChatFrameEditBox:Show(); |
if not ChatFrame1EditBox:IsVisible() then |
ChatFrame1EditBox:Show(); |
end; |
ChatFrameEditBox:Insert(GetAchievementLink(id)); |
ChatFrame1EditBox:Insert(GetAchievementLink(id)); |
end |
function self:SortDisplayTable(sortStr) |
button:SetScript("OnClick", function() |
local id = button:GetID() |
if self.masterList[id] then |
if ChatFrameEditBox:IsVisible() and IsModifiedClick("CHATLINK") then |
if ChatFrame1EditBox:IsVisible() and IsModifiedClick("CHATLINK") then |
self:InsertIntoChat(id) |
elseif IsShiftKeyDown() then |
if IsTrackedAchievement(id) then |