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
7169f4c0
Commit
7169f4c0
authored
Dec 26, 2018
by
Azilroka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MovableFrames & ReputationRewards
parent
3e603e48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
17 deletions
+7
-17
Modules/MovableFrames.lua
Modules/MovableFrames.lua
+4
-0
Modules/ReputationReward.lua
Modules/ReputationReward.lua
+3
-17
No files found.
Modules/MovableFrames.lua
View file @
7169f4c0
...
...
@@ -315,6 +315,10 @@ function MF:Initialize()
MF
:
GetOptions
()
if
PA
:
IsAddOnEnabled
(
'WorldQuestTracker'
)
then
Frames
[
"WorldMapFrame"
]
=
nil
end
for
Frame
,
_
in
pairs
(
Frames
)
do
MF
:
MakeMovable
(
Frame
)
end
...
...
Modules/ReputationReward.lua
View file @
7169f4c0
...
...
@@ -7,9 +7,7 @@ local _G = _G
local
floor
=
floor
local
pairs
=
pairs
local
select
=
select
local
tinsert
=
tinsert
local
wipe
=
wipe
local
format
=
format
local
GetFactionInfo
=
_G
.
GetFactionInfo
local
GetFactionInfoByID
=
_G
.
GetFactionInfoByID
...
...
@@ -22,7 +20,6 @@ local REWARDS_SECTION_OFFSET = 5
RR
.
Title
=
'|cFF16C3F2Reputation|r|cFFFFFFFFRewards|r'
RR
.
Description
=
'Adds Reputation into Quest Log & Quest Frame.'
RR
.
Authors
=
'Azilroka'
RR
.
Credits
=
'jayd'
function
RR
:
BuildFactionHeaders
()
RR
.
FactionHeaders
=
{}
...
...
@@ -199,8 +196,8 @@ function RR:Show()
questItem
.
Count
:
SetTextColor
(
1
,
1
,
1
)
end
if
(
buttonIndex
>
1
)
then
if
(
mod
(
buttonIndex
,
2
)
==
1
)
then
if
(
buttonIndex
>
1
)
then
if
(
buttonIndex
%
2
==
1
)
then
questItem
:
SetPoint
(
'TOPLEFT'
,
rewardButtons
[
index
-
2
],
'BOTTOMLEFT'
,
0
,
-
REWARDS_SECTION_OFFSET
)
Height
=
Height
+
buttonHeight
+
REWARDS_SECTION_OFFSET
lastFrame
=
questItem
...
...
@@ -219,7 +216,7 @@ function RR:Show()
if
(
numQuestChoices
==
1
)
then
local
a
,
b
,
c
,
d
,
e
=
QuestInfoFrame
.
rewardsFrame
.
ItemReceiveText
:
GetPoint
()
QuestInfoFrame
.
rewardsFrame
.
ItemReceiveText
:
SetPoint
(
a
,
b
,
c
,
d
,
e
-
((
i
%
2
)
and
(
floor
(
i
/
2
)
*
buttonHeight
)
or
0
))
QuestInfoFrame
.
rewardsFrame
.
ItemReceiveText
:
SetPoint
(
a
,
b
,
c
,
d
,
e
-
((
(
i
%
2
)
==
1
and
((
i
/
2
)
*
buttonHeight
)
)
or
0
))
end
QuestInfoFrame
.
rewardsFrame
:
Show
()
...
...
@@ -250,17 +247,6 @@ function RR:GetOptions()
name
=
RR
.
Authors
,
fontSize
=
'large'
,
},
CreditsHeader
=
{
order
=
4
,
type
=
'header'
,
name
=
PA
.
ACL
[
'Credits:'
],
},
Credits
=
{
order
=
5
,
type
=
'description'
,
name
=
RR
.
Credits
,
fontSize
=
'large'
,
},
},
}
...
...
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