changeset 335:2ca6db4e2296 WoD

More WoD Fixes: Changed IsShown to IsVisible and replaced QuestLogFrame with QuestMapFrame.
author MMOSimca <MMOSimca@gmail.com>
date Fri, 05 Sep 2014 01:18:51 -0400
parents 5bc69e705add
children cba0e57a71b7
files Comments.lua
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/Comments.lua	Tue Aug 26 11:20:13 2014 -0500
+++ b/Comments.lua	Fri Sep 05 01:18:51 2014 -0400
@@ -198,21 +198,21 @@
 local function CreateQuestComment()
     local index = _G.GetQuestLogSelection()
 
-    if not index or not _G.QuestLogFrame:IsShown() then
-        WDP:Print("You must select a quest from the Quest frame.")
+    if not index or not _G.QuestMapFrame:IsVisible() then
+        WDP:Print("You must select a quest from the World Map's Quest frame.")
         return
     end
     local title, _, tag, _, is_header, _, _, _, idnum = _G.GetQuestLogTitle(index)
 
     if is_header then
-        WDP:Print("You must select a quest from the Quest frame.")
+        WDP:Print("You must select a quest from the World Map's Quest frame.")
         return
     end
     NewComment("QUEST", title, idnum)
 end
 
 local function CreateAchievementComment()
-    if not _G.AchievementFrame or not _G.AchievementFrame:IsShown() or not _G.AchievementFrameAchievements.selection then
+    if not _G.AchievementFrame or not _G.AchievementFrame:IsVisible() or not _G.AchievementFrameAchievements.selection then
         WDP:Print("You must select an achievement from the Achievement frame.")
         return
     end
@@ -319,7 +319,7 @@
             end
         end
 
-        if _G.AchievementFrame and _G.AchievementFrame:IsShown() and _G.AchievementFrameAchievements.selection then
+        if _G.AchievementFrame and _G.AchievementFrame:IsVisible() and _G.AchievementFrameAchievements.selection then
             for _, button in next, _G.AchievementFrameAchievementsContainer.buttons do
                 if button.selected then
                     line = display:AddLine(("Achievement: %s"):format(button.label:GetText()))
@@ -362,7 +362,7 @@
 
         local quest_index = _G.GetQuestLogSelection()
 
-        if quest_index and _G.QuestLogFrame:IsShown() then
+        if quest_index and _G.QuestMapFrame:IsVisible() and not _G.QuestScrollFrame:IsVisible() then
             local title, _, tag, _, is_header, _, _, _, idnum = _G.GetQuestLogTitle(quest_index)
 
             if not is_header then