questfu on ptr 0.2.0 #8


  • New
  • Defect
Open
Assigned to kemayo
  • _ForgeUser2803319 created this issue Jul 1, 2009

    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)

  • _ForgeUser2803319 added the tags New Defect Jul 1, 2009
  • _ForgeUser72445 posted a comment Aug 5, 2009

    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"


To post a comment, please login or register a new account.