Commit c7e24f5b authored by Azilroka's avatar Azilroka

Lets try this

parent 169f381e
......@@ -115,27 +115,13 @@ function RR:Show()
local totalRewards = numQuestRewards + numQuestChoices + numQuestCurrencies
local buttonHeight = rewardsFrame.RewardButtons[1]:GetHeight()
local lastFrame = rewardsFrame.ItemReceiveText
if ( QuestInfoFrame.mapView ) then
if rewardsFrame.XPFrame:IsShown() then
lastFrame = rewardsFrame.XPFrame
end
if rewardsFrame.MoneyFrame:IsShown() then
lastFrame = rewardsFrame.MoneyFrame
end
else
if rewardsFrame.XPFrame:IsShown() then
lastFrame = rewardsFrame.XPFrame
end
end
--if rewardsFrame.SkillPointFrame:IsShown() then
-- lastFrame = rewardsFrame.SkillPointFrame
--end
local baseIndex = totalRewards or 0
local buttonIndex = numQuestChoices == 1 and 1 or baseIndex
local buttonIndex = numQuestChoices == 1 and 1 or numQuestRewards > 0 and numQuestRewards or numQuestCurrencies > 0 and numQuestCurrencies or 0
wipe(RR.ReputationInfo)
......@@ -162,6 +148,37 @@ function RR:Show()
end
end
local lastFrame = rewardsFrame.ItemReceiveText
if ( QuestInfoFrame.mapView ) then
if rewardsFrame.XPFrame:IsShown() then
lastFrame = rewardsFrame.XPFrame
end
if rewardsFrame.MoneyFrame:IsShown() then
lastFrame = rewardsFrame.MoneyFrame
end
else
if rewardsFrame.XPFrame:IsShown() then
lastFrame = rewardsFrame.XPFrame
end
end
if buttonIndex == 0 then
if ( QuestInfoFrame.mapView ) then
if rewardsFrame.XPFrame:IsShown() then
lastFrame = rewardsFrame.XPFrame
end
if rewardsFrame.MoneyFrame:IsShown() then
lastFrame = rewardsFrame.MoneyFrame
end
else
if rewardsFrame.XPFrame:IsShown() then
lastFrame = rewardsFrame.XPFrame
end
end
buttonIndex = 1
end
local index
local i = 1
local Height = QuestInfoFrame.rewardsFrame:GetHeight()
......@@ -201,7 +218,7 @@ function RR:Show()
Height = Height + buttonHeight + REWARDS_SECTION_OFFSET
lastFrame = questItem
else
questItem:SetPoint('TOPLEFT', rewardButtons[index - 1], 'TOPRIGHT', 2, 0)
questItem:SetPoint('TOPLEFT', rewardButtons[index - 1] or lastFrame, 'TOPRIGHT', 2, 0)
end
else
questItem:SetPoint('TOPLEFT', lastFrame, 'BOTTOMLEFT', 0, -REWARDS_SECTION_OFFSET)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment