Mercurial > wow > wowdb-profiler
comparison Comments.lua @ 375:4a4ed54e4201 6.0.2-6
Fixed comment issue with quests (take two) and fixed broken debug statement (take two).
| author | MMOSimca <MMOSimca@gmail.com> |
|---|---|
| date | Sat, 22 Nov 2014 14:23:56 -0500 |
| parents | de1f7476805e |
| children | 95af8e72aa19 |
comparison
equal
deleted
inserted
replaced
| 374:73fd6e568211 | 375:4a4ed54e4201 |
|---|---|
| 200 | 200 |
| 201 if not index or not _G.QuestMapFrame:IsVisible() then | 201 if not index or not _G.QuestMapFrame:IsVisible() then |
| 202 WDP:Print("You must select a quest from the World Map's Quest frame.") | 202 WDP:Print("You must select a quest from the World Map's Quest frame.") |
| 203 return | 203 return |
| 204 end | 204 end |
| 205 local title, _, tag, _, is_header, _, _, _, idnum = _G.GetQuestLogTitle(index) | 205 local title, _, _, is_header, _, _, _, idnum = _G.GetQuestLogTitle(index) |
| 206 | 206 |
| 207 if is_header then | 207 if is_header then |
| 208 WDP:Print("You must select a quest from the World Map's Quest frame.") | 208 WDP:Print("You must select a quest from the World Map's Quest frame.") |
| 209 return | 209 return |
| 210 end | 210 end |
| 361 end | 361 end |
| 362 | 362 |
| 363 local quest_index = _G.GetQuestLogSelection() | 363 local quest_index = _G.GetQuestLogSelection() |
| 364 | 364 |
| 365 if quest_index and _G.QuestMapFrame:IsVisible() and not _G.QuestScrollFrame:IsVisible() then | 365 if quest_index and _G.QuestMapFrame:IsVisible() and not _G.QuestScrollFrame:IsVisible() then |
| 366 local title, _, suggested_group, is_header, _, _, _, idnum = _G.GetQuestLogTitle(quest_index) | 366 local title, _, _, is_header = _G.GetQuestLogTitle(quest_index) |
| 367 | 367 |
| 368 if not is_header then | 368 if not is_header then |
| 369 line = display:AddLine(("Quest: %s"):format(title)) | 369 line = display:AddLine(("Quest: %s"):format(title)) |
| 370 display:SetLineScript(line, "OnMouseUp", CreateComment, CreateQuestComment) | 370 display:SetLineScript(line, "OnMouseUp", CreateComment, CreateQuestComment) |
| 371 end | 371 end |
