# HG changeset patch # User MMOSimca # Date 1409894331 14400 # Node ID 2ca6db4e22964e5d4597255b53436efb3a971015 # Parent 5bc69e705add3e8c83d4b6b842a3eba2e73d89f6 More WoD Fixes: Changed IsShown to IsVisible and replaced QuestLogFrame with QuestMapFrame. diff -r 5bc69e705add -r 2ca6db4e2296 Comments.lua --- 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