Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Deimos
ProjectAzilroka
Commits
c7e24f5b
Commit
c7e24f5b
authored
Dec 24, 2018
by
Azilroka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lets try this
parent
169f381e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
16 deletions
+33
-16
Modules/ReputationReward.lua
Modules/ReputationReward.lua
+33
-16
No files found.
Modules/ReputationReward.lua
View file @
c7e24f5b
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment