Skip to content

Commit

Permalink
Fix for quest log
Browse files Browse the repository at this point in the history
  • Loading branch information
JasXSL committed Sep 29, 2018
1 parent de3d457 commit 8d7f09b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions classes/UI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ UI = {}
rewardsTitle:SetTextColor(1,1,1,1);
rewardsTitle:SetPoint("TOPLEFT", desc, "BOTTOMLEFT", 0, -10);
rewardsTitle:SetText("Rewards");
scrollchild.rewardsText = rewardsTitle;

scrollchild.rewardFrames = {};

Expand Down Expand Up @@ -631,7 +632,9 @@ UI = {}
--if true then return end
local quests = Quest.getActive();
if #quests > 0 then
UI.quests.selected = quests[1].id;
if not UI.quests.selected then
UI.quests.selected = quests[1].id;
end
UI.quests.empty:Hide();
UI.quests.left:Show();
UI.quests.right:Show();
Expand Down Expand Up @@ -659,7 +662,9 @@ UI = {}


local obFrames = f.objectives;
for _,of in pairs(obFrames) do of:Hide(); end
for _,of in pairs(obFrames) do
of:Hide();
end

local objectives = quest:getCurrentObjectives();

Expand Down Expand Up @@ -772,7 +777,12 @@ UI = {}
end

right.desc:SetText(journalOut);


if #quest.rewards > 0 then
right.rewardsText:Show();
else
right.rewardsText:Hide();
end
--rewards
for i=1,6 do
local f = right.rewardFrames[i];
Expand Down

0 comments on commit 8d7f09b

Please sign in to comment.