FuBar_QuestsFu

8 - questfu on ptr 0.2.0

Changet in questfu.lua Revision 413

line 320
-    for k,v in pairs(QuestDifficultyColor) do
+    for k,v in pairs(QuestDifficultyColors) do

line 556 -569
-function QuestsFu:GetColorFromLevel(level)
-    local color = GetDifficultyColor(level)
-    -- Color should be the output of GetDifficultyColor; a table.
-    if color == QuestDifficultyColor.trivial then
-        return unpack(self.db.profile.colors.trivial
-    elseif color == QuestDifficultyColor.standard then
-        return unpack(self.db.profile.colors.standard
-    elseif color == QuestDifficultyColor.difficult then
-        return unpack(self.db.profile.colors.difficult
-    elseif color == QuestDifficultyColor.verydifficult then
-        return unpack(self.db.profile.colors.verydifficult
-    elseif color == QuestDifficultyColor.impossible then
-        return unpack(self.db.profile.colors.impossible
-    end
+function QuestsFu:GetColorFromLevel(level)
+    local color = GetQuestDifficultyColor(level)
+    -- Color should be the output of GetDifficultyColor; a table.
+    if color == QuestDifficultyColors.trivial then
+        return unpack(self.db.profile.colors.trivial
+    elseif color == QuestDifficultyColors.standard then
+        return unpack(self.db.profile.colors.standard
+    elseif color == QuestDifficultyColors.difficult then
+        return unpack(self.db.profile.colors.difficult
+    elseif color == QuestDifficultyColors.verydifficult then
+        return unpack(self.db.profile.colors.verydifficult
+    elseif color == QuestDifficultyColors.impossible then
+        return unpack(self.db.profile.colors.impossible
+    end

line 612

-    local questImpossible = (GetDifficultyColor(level) == QuestDifficultyColor.impossible
+    local questImpossible = (GetQuestDifficultyColor(level) == QuestDifficultyColors.impossible

Details.lua
line 222
- local color = GetDifficultyColor(level)
+ local color = GetQuestDifficultyColor(level)

User When Change
AlyxVance Jul 01, 2009 at 08:04 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of D_Town D_Town Aug 05, 2009 at 19:08 UTC - 0 likes

    Here's the fix in laments terms. Don't forget about the Blizz.lua bug QUESTS_DISPLAYED which is no longer a valid const.

    1. QuestsFu.lua: Find/Replace - Replace "QuestDifficultyColor" with "QuestDifficultyColors"

    2. QuestsFu.lua: Find/Replace - Replace "GetDifficultyColor" with "GetQuestDifficultyColor"

    3. Blizz\Blizz.lua: Find/Replace - Replace "QUESTS_DISPLAYED" with "#QuestLogScrollFrame.buttons"

  • 1 comment

Facts

Last updated
Jul 01, 2009
Reported
Jul 01, 2009
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees