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
ElvUI Project
ElvUI
Commits
966a7016
Commit
966a7016
authored
Oct 13, 2020
by
Simpy
🐹
Browse files
Options
Browse Files
Download
Plain Diff
12.00
parents
3b6bfede
3ea99068
Changes
365
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
75 changed files
with
1800 additions
and
2056 deletions
+1800
-2056
ElvUI/Core/API.lua
ElvUI/Core/API.lua
+2
-33
ElvUI/Core/Animation.lua
ElvUI/Core/Animation.lua
+3
-3
ElvUI/Core/AprilFools.lua
ElvUI/Core/AprilFools.lua
+16
-16
ElvUI/Core/Commands.lua
ElvUI/Core/Commands.lua
+3
-3
ElvUI/Core/Config.lua
ElvUI/Core/Config.lua
+145
-147
ElvUI/Core/Cooldowns.lua
ElvUI/Core/Cooldowns.lua
+6
-5
ElvUI/Core/Core.lua
ElvUI/Core/Core.lua
+74
-351
ElvUI/Core/Distributor.lua
ElvUI/Core/Distributor.lua
+3
-3
ElvUI/Core/Dropdown.lua
ElvUI/Core/Dropdown.lua
+7
-7
ElvUI/Core/Fonts.lua
ElvUI/Core/Fonts.lua
+7
-8
ElvUI/Core/Install.lua
ElvUI/Core/Install.lua
+68
-68
ElvUI/Core/ItemLevel.lua
ElvUI/Core/ItemLevel.lua
+1
-1
ElvUI/Core/Math.lua
ElvUI/Core/Math.lua
+3
-3
ElvUI/Core/Movers.lua
ElvUI/Core/Movers.lua
+1
-7
ElvUI/Core/PluginInstaller.lua
ElvUI/Core/PluginInstaller.lua
+83
-83
ElvUI/Core/StaticPopups.lua
ElvUI/Core/StaticPopups.lua
+133
-162
ElvUI/Core/StatusReport.lua
ElvUI/Core/StatusReport.lua
+40
-39
ElvUI/Core/Tags.lua
ElvUI/Core/Tags.lua
+116
-92
ElvUI/Core/Toolkit.lua
ElvUI/Core/Toolkit.lua
+88
-172
ElvUI/Core/Tutorials.lua
ElvUI/Core/Tutorials.lua
+19
-19
ElvUI/Developer/Frame.lua
ElvUI/Developer/Frame.lua
+1
-1
ElvUI/ElvUI.toc
ElvUI/ElvUI.toc
+2
-2
ElvUI/Layout/Layout.lua
ElvUI/Layout/Layout.lua
+56
-56
ElvUI/Libraries/LibActionButton-1.0/LibActionButton-1.0.lua
ElvUI/Libraries/LibActionButton-1.0/LibActionButton-1.0.lua
+33
-36
ElvUI/Libraries/LibAnim/LibAnim.lua
ElvUI/Libraries/LibAnim/LibAnim.lua
+5
-33
ElvUI/Libraries/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua
ElvUI/Libraries/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua
+7
-4
ElvUI/Libraries/oUF/LICENSE
ElvUI/Libraries/oUF/LICENSE
+4
-4
ElvUI/Libraries/oUF/colors.lua
ElvUI/Libraries/oUF/colors.lua
+2
-1
ElvUI/Libraries/oUF/elements/additionalpower.lua
ElvUI/Libraries/oUF/elements/additionalpower.lua
+70
-187
ElvUI/Libraries/oUF/elements/alternativepower.lua
ElvUI/Libraries/oUF/elements/alternativepower.lua
+128
-25
ElvUI/Libraries/oUF/elements/auras.lua
ElvUI/Libraries/oUF/elements/auras.lua
+25
-31
ElvUI/Libraries/oUF/elements/castbar.lua
ElvUI/Libraries/oUF/elements/castbar.lua
+4
-4
ElvUI/Libraries/oUF/elements/classpower.lua
ElvUI/Libraries/oUF/elements/classpower.lua
+45
-8
ElvUI/Libraries/oUF/elements/combatindicator.lua
ElvUI/Libraries/oUF/elements/combatindicator.lua
+2
-2
ElvUI/Libraries/oUF/elements/health.lua
ElvUI/Libraries/oUF/elements/health.lua
+43
-36
ElvUI/Libraries/oUF/elements/healthprediction.lua
ElvUI/Libraries/oUF/elements/healthprediction.lua
+2
-2
ElvUI/Libraries/oUF/elements/phaseindicator.lua
ElvUI/Libraries/oUF/elements/phaseindicator.lua
+63
-8
ElvUI/Libraries/oUF/elements/power.lua
ElvUI/Libraries/oUF/elements/power.lua
+71
-45
ElvUI/Libraries/oUF/elements/powerprediction.lua
ElvUI/Libraries/oUF/elements/powerprediction.lua
+4
-2
ElvUI/Libraries/oUF/elements/pvpclassificationindicator.lua
ElvUI/Libraries/oUF/elements/pvpclassificationindicator.lua
+11
-11
ElvUI/Libraries/oUF/elements/runes.lua
ElvUI/Libraries/oUF/elements/runes.lua
+16
-3
ElvUI/Libraries/oUF/elements/stagger.lua
ElvUI/Libraries/oUF/elements/stagger.lua
+9
-3
ElvUI/Libraries/oUF/elements/tags.lua
ElvUI/Libraries/oUF/elements/tags.lua
+32
-30
ElvUI/Libraries/oUF/elements/totems.lua
ElvUI/Libraries/oUF/elements/totems.lua
+7
-1
ElvUI/Libraries/oUF/oUF.toc
ElvUI/Libraries/oUF/oUF.toc
+1
-1
ElvUI/Libraries/oUF_Plugins/oUF_AuraBars/oUF_AuraBars.lua
ElvUI/Libraries/oUF_Plugins/oUF_AuraBars/oUF_AuraBars.lua
+7
-5
ElvUI/Libraries/oUF_Plugins/oUF_Cutaway/oUF_Cutaway.lua
ElvUI/Libraries/oUF_Plugins/oUF_Cutaway/oUF_Cutaway.lua
+28
-19
ElvUI/Libraries/oUF_Plugins/oUF_Fader/oUF_Fader.lua
ElvUI/Libraries/oUF_Plugins/oUF_Fader/oUF_Fader.lua
+1
-2
ElvUI/Locales/deDE.lua
ElvUI/Locales/deDE.lua
+4
-7
ElvUI/Locales/enUS.lua
ElvUI/Locales/enUS.lua
+4
-7
ElvUI/Locales/esMX.lua
ElvUI/Locales/esMX.lua
+4
-7
ElvUI/Locales/frFR.lua
ElvUI/Locales/frFR.lua
+4
-7
ElvUI/Locales/itIT.lua
ElvUI/Locales/itIT.lua
+4
-7
ElvUI/Locales/koKR.lua
ElvUI/Locales/koKR.lua
+4
-7
ElvUI/Locales/ptBR.lua
ElvUI/Locales/ptBR.lua
+4
-7
ElvUI/Locales/ruRU.lua
ElvUI/Locales/ruRU.lua
+5
-8
ElvUI/Locales/zhCN.lua
ElvUI/Locales/zhCN.lua
+4
-7
ElvUI/Locales/zhTW.lua
ElvUI/Locales/zhTW.lua
+4
-7
ElvUI/Media/ChatLogos/ElvSimpy.tga
ElvUI/Media/ChatLogos/ElvSimpy.tga
+0
-0
ElvUI/Media/SharedMedia.lua
ElvUI/Media/SharedMedia.lua
+5
-1
ElvUI/Media/Textures/Arrow1.tga
ElvUI/Media/Textures/Arrow1.tga
+0
-0
ElvUI/Media/Textures/Arrow2.tga
ElvUI/Media/Textures/Arrow2.tga
+0
-0
ElvUI/Media/Textures/Help.tga
ElvUI/Media/Textures/Help.tga
+0
-0
ElvUI/Media/Textures/Leader.tga
ElvUI/Media/Textures/Leader.tga
+0
-0
ElvUI/Media/Textures/LeaderHQ.tga
ElvUI/Media/Textures/LeaderHQ.tga
+0
-0
ElvUI/Media/Textures/NZothBottomLeft.tga
ElvUI/Media/Textures/NZothBottomLeft.tga
+0
-0
ElvUI/Media/Textures/NZothBottomRight.tga
ElvUI/Media/Textures/NZothBottomRight.tga
+0
-0
ElvUI/Media/Textures/NZothTop.tga
ElvUI/Media/Textures/NZothTop.tga
+0
-0
ElvUI/Media/Textures/RolesHQ.tga
ElvUI/Media/Textures/RolesHQ.tga
+0
-0
ElvUI/Modules/ActionBars/ActionBars.lua
ElvUI/Modules/ActionBars/ActionBars.lua
+56
-67
ElvUI/Modules/ActionBars/Bind.lua
ElvUI/Modules/ActionBars/Bind.lua
+37
-38
ElvUI/Modules/ActionBars/ExtraAB.lua
ElvUI/Modules/ActionBars/ExtraAB.lua
+132
-60
ElvUI/Modules/ActionBars/MicroBar.lua
ElvUI/Modules/ActionBars/MicroBar.lua
+13
-21
ElvUI/Modules/ActionBars/PetBar.lua
ElvUI/Modules/ActionBars/PetBar.lua
+8
-8
ElvUI/Modules/ActionBars/StanceBar.lua
ElvUI/Modules/ActionBars/StanceBar.lua
+11
-6
No files found.
ElvUI/Core/API.lua
View file @
966a7016
...
...
@@ -30,7 +30,6 @@ local UnitIsMercenary = UnitIsMercenary
local
UnitStat
=
UnitStat
local
C_PetBattles_IsInBattle
=
C_PetBattles
.
IsInBattle
local
C_PvP_IsRatedBattleground
=
C_PvP
.
IsRatedBattleground
local
C_UIWidgetManager_GetStatusBarWidgetVisualizationInfo
=
C_UIWidgetManager
.
GetStatusBarWidgetVisualizationInfo
local
FACTION_HORDE
=
FACTION_HORDE
local
FACTION_ALLIANCE
=
FACTION_ALLIANCE
local
ERR_NOT_IN_COMBAT
=
ERR_NOT_IN_COMBAT
...
...
@@ -48,7 +47,7 @@ function E:ClassColor(class, usePriestColor)
color
.
colorStr
=
'ff'
..
color
.
colorStr
end
if
(
usePriestColor
and
class
==
'PRIEST'
)
and
tonumber
(
color
.
colorStr
,
16
)
>
tonumber
(
E
.
PriestColors
.
colorStr
,
16
)
then
if
usePriestColor
and
class
==
'PRIEST'
and
tonumber
(
color
.
colorStr
,
16
)
>
tonumber
(
E
.
PriestColors
.
colorStr
,
16
)
then
return
E
.
PriestColors
else
return
color
...
...
@@ -206,36 +205,6 @@ do
end
end
do
function
E
:
GetWidgetInfoID
(
guid
)
return
E
.
global
.
nameplate
.
widgetMap
[
guid
]
end
function
E
:
SetWidgetInfoID
(
guid
,
widgetID
)
if
widgetID
then
E
.
global
.
nameplate
.
widgetMap
[
guid
]
=
widgetID
end
end
E
.
MaxWidgetInfoRank
=
30
function
E
:
GetWidgetInfoBase
(
widgetID
)
local
widget
=
widgetID
and
C_UIWidgetManager_GetStatusBarWidgetVisualizationInfo
(
widgetID
)
if
not
widget
then
return
end
local
cur
=
widget
.
barValue
-
widget
.
barMin
local
toNext
=
widget
.
barMax
-
widget
.
barMin
local
total
=
widget
.
barValue
local
rank
,
maxRank
if
widget
.
overrideBarText
then
rank
=
tonumber
(
strmatch
(
widget
.
overrideBarText
,
'%d+'
))
maxRank
=
rank
==
E
.
MaxWidgetInfoRank
end
return
cur
,
toNext
,
total
,
rank
,
maxRank
end
end
do
local
Masque
=
E
.
Libs
.
Masque
local
MasqueGroupState
=
{}
...
...
@@ -320,7 +289,7 @@ do
if
module
==
'all'
then
for
moduName
,
modu
in
pairs
(
self
.
modules
)
do
for
funcName
,
func
in
pairs
(
modu
)
do
if
(
funcName
~=
'GetModule'
)
and
(
type
(
func
)
==
'function'
)
then
if
funcName
~=
'GetModule'
and
type
(
func
)
==
'function'
then
CPU_USAGE
[
moduName
..
':'
..
funcName
]
=
GetFunctionCPUUsage
(
func
,
true
)
end
end
...
...
ElvUI/Core/Animation.lua
View file @
966a7016
...
...
@@ -21,14 +21,14 @@ end
--TEST
--[[local t = UIParent:CreateFontString(nil, 'OVERLAY', 'GameTooltipText')
t:SetText(0)
t:
Set
Point('CENTER')
t:Point('CENTER')
t:FontTemplate(nil, 20)
E:SetUpAnimGroup(t, 'Number', 10, 5)
local b = CreateFrame('BUTTON', nil, UIParent)
b:
Set
Point('CENTER', 0, -100)
b:Point('CENTER', 0, -100)
b:SetTemplate()
b:
Set
Size(40,30)
b:Size(40,30)
b:EnableMouse(true)
b:SetScript('OnClick', function()
if t:GetText() == 10 then
...
...
ElvUI/Core/AprilFools.lua
View file @
966a7016
...
...
@@ -124,19 +124,19 @@ do
end
local
function
OnUpdate
(
self
,
elapsed
)
if
(
self
.
elapsed
and
self
.
elapsed
>
0
.
1
)
then
if
self
.
elapsed
and
self
.
elapsed
>
0
.
1
then
self
.
tex
:
SetTexCoord
((
self
.
curFrame
-
1
)
*
0
.
1
,
0
,
(
self
.
curFrame
-
1
)
*
0
.
1
,
1
,
self
.
curFrame
*
0
.
1
,
0
,
self
.
curFrame
*
0
.
1
,
1
)
if
(
self
.
countUp
)
then
if
self
.
countUp
then
self
.
curFrame
=
self
.
curFrame
+
1
else
self
.
curFrame
=
self
.
curFrame
-
1
end
if
(
self
.
curFrame
>
10
)
then
if
self
.
curFrame
>
10
then
self
.
countUp
=
false
self
.
curFrame
=
9
elseif
(
self
.
curFrame
<
1
)
then
elseif
self
.
curFrame
<
1
then
self
.
countUp
=
true
self
.
curFrame
=
2
end
...
...
@@ -154,7 +154,7 @@ do
--Store old settings
local
t
=
self
.
db
.
tempSettings
local
c
=
self
.
db
.
general
.
backdropcolor
if
(
self
:
HelloKittyFixCheck
()
)
then
if
self
:
HelloKittyFixCheck
()
then
E
:
HelloKittyFix
()
else
self
.
oldEnableAllSound
=
GetCVar
(
'Sound_EnableAllSound'
)
...
...
@@ -216,13 +216,13 @@ do
function
E
:
RestoreHelloKitty
()
--Store old settings
self
.
db
.
general
.
kittys
=
false
if
(
_G
.
HelloKittyLeft
)
then
if
_G
.
HelloKittyLeft
then
_G
.
HelloKittyLeft
:
Hide
()
_G
.
HelloKittyRight
:
Hide
()
end
if
not
(
self
.
db
.
tempSettings
)
then
return
end
if
(
self
:
HelloKittyFixCheck
()
)
then
if
self
:
HelloKittyFixCheck
()
then
self
:
HelloKittyFix
()
self
.
db
.
tempSettings
=
nil
return
...
...
@@ -260,17 +260,17 @@ do
end
function
E
:
CreateKittys
()
if
(
_G
.
HelloKittyLeft
)
then
if
_G
.
HelloKittyLeft
then
_G
.
HelloKittyLeft
:
Show
()
_G
.
HelloKittyRight
:
Show
()
return
end
local
helloKittyLeft
=
CreateFrame
(
'Frame'
,
'HelloKittyLeft'
,
_G
.
UIParent
)
helloKittyLeft
:
Set
Size
(
120
,
128
)
helloKittyLeft
:
Size
(
120
,
128
)
helloKittyLeft
:
SetMovable
(
true
)
helloKittyLeft
:
EnableMouse
(
true
)
helloKittyLeft
:
RegisterForDrag
(
'LeftButton'
)
helloKittyLeft
:
Set
Point
(
'BOTTOMLEFT'
,
_G
.
LeftChatPanel
,
'BOTTOMRIGHT'
,
2
,
-
4
)
helloKittyLeft
:
Point
(
'BOTTOMLEFT'
,
_G
.
LeftChatPanel
,
'BOTTOMRIGHT'
,
2
,
-
4
)
helloKittyLeft
.
tex
=
helloKittyLeft
:
CreateTexture
(
nil
,
'OVERLAY'
)
helloKittyLeft
.
tex
:
SetAllPoints
()
helloKittyLeft
.
tex
:
SetTexture
(
E
.
Media
.
Textures
.
HelloKitty
)
...
...
@@ -283,11 +283,11 @@ do
helloKittyLeft
:
SetScript
(
'OnUpdate'
,
OnUpdate
)
local
helloKittyRight
=
CreateFrame
(
'Frame'
,
'HelloKittyRight'
,
_G
.
UIParent
)
helloKittyRight
:
Set
Size
(
120
,
128
)
helloKittyRight
:
Size
(
120
,
128
)
helloKittyRight
:
SetMovable
(
true
)
helloKittyRight
:
EnableMouse
(
true
)
helloKittyRight
:
RegisterForDrag
(
'LeftButton'
)
helloKittyRight
:
Set
Point
(
'BOTTOMRIGHT'
,
_G
.
RightChatPanel
,
'BOTTOMLEFT'
,
-
2
,
-
4
)
helloKittyRight
:
Point
(
'BOTTOMRIGHT'
,
_G
.
RightChatPanel
,
'BOTTOMLEFT'
,
-
2
,
-
4
)
helloKittyRight
.
tex
=
helloKittyRight
:
CreateTexture
(
nil
,
'OVERLAY'
)
helloKittyRight
.
tex
:
SetAllPoints
()
helloKittyRight
.
tex
:
SetTexture
(
E
.
Media
.
Textures
.
HelloKitty
)
...
...
@@ -303,8 +303,8 @@ do
--When it bugged out for a user the command '/hellokittyfix' attempted to restore the changed settings to default
function
E
:
HelloKittyFixCheck
(
secondCheck
)
local
t
=
self
.
db
.
tempSettings
if
(
not
t
and
not
secondCheck
)
then
t
=
self
.
db
.
general
end
if
(
t
and
t
.
backdropcolor
)
then
if
not
t
and
not
secondCheck
then
t
=
self
.
db
.
general
end
if
t
and
t
.
backdropcolor
then
return
self
:
Round
(
t
.
backdropcolor
.
r
,
2
)
==
0
.
87
and
self
:
Round
(
t
.
backdropcolor
.
g
,
2
)
==
0
.
3
and
self
:
Round
(
t
.
backdropcolor
.
b
,
2
)
==
0
.
74
end
end
...
...
@@ -336,7 +336,7 @@ do
self
.
db
.
unitframe
.
colors
.
auraBarBuff
=
{
r
=
c
.
r
,
g
=
c
.
g
,
b
=
c
.
b
}
self
.
db
.
unitframe
.
colors
.
transparentAurabars
=
false
if
(
_G
.
HelloKittyLeft
)
then
if
_G
.
HelloKittyLeft
then
_G
.
HelloKittyLeft
:
Hide
()
_G
.
HelloKittyRight
:
Hide
()
self
.
db
.
general
.
kittys
=
nil
...
...
@@ -348,7 +348,7 @@ do
end
function
E
:
HelloKittyToggle
()
if
(
_G
.
HelloKittyLeft
and
_G
.
HelloKittyLeft
:
IsShown
()
)
then
if
_G
.
HelloKittyLeft
and
_G
.
HelloKittyLeft
:
IsShown
()
then
self
:
RestoreHelloKitty
()
else
self
:
StaticPopup_Show
(
'HELLO_KITTY'
)
...
...
ElvUI/Core/Commands.lua
View file @
966a7016
...
...
@@ -19,9 +19,9 @@ local GetNumGuildMembers = GetNumGuildMembers
local
GuildControlGetNumRanks
=
GuildControlGetNumRanks
local
GuildControlGetRankName
=
GuildControlGetRankName
local
GuildUninvite
=
GuildUninvite
local
ReloadUI
=
ReloadUI
local
ResetCPUUsage
=
ResetCPUUsage
local
SendChatMessage
=
SendChatMessage
local
ReloadUI
=
ReloadUI
local
SetCVar
=
SetCVar
local
UpdateAddOnCPUUsage
=
UpdateAddOnCPUUsage
-- GLOBALS: ElvUIGrid, ElvDB
...
...
@@ -43,7 +43,7 @@ function E:LuaError(msg)
if
switch
==
'on'
or
switch
==
'1'
then
for
i
=
1
,
GetNumAddOns
()
do
local
name
=
GetAddOnInfo
(
i
)
if
(
name
~=
'ElvUI'
and
name
~=
'ElvUI_OptionsUI'
)
and
E
:
IsAddOnEnabled
(
name
)
then
if
name
~=
'ElvUI'
and
name
~=
'ElvUI_OptionsUI'
and
E
:
IsAddOnEnabled
(
name
)
then
DisableAddOn
(
name
,
E
.
myname
)
ElvDB
.
LuaErrorDisabledAddOns
[
name
]
=
i
end
...
...
@@ -77,7 +77,7 @@ end
function
E
:
DelayScriptCall
(
msg
)
local
secs
,
command
=
msg
:
match
(
'^(%S+)%s+(.*)$'
)
secs
=
tonumber
(
secs
)
if
(
not
secs
)
or
(
#
command
==
0
)
then
if
not
secs
or
(
#
command
==
0
)
then
self
:
Print
(
'usage: /in <seconds> <command>'
)
self
:
Print
(
'example: /in 1.5 /say hi'
)
else
...
...
ElvUI/Core/Config.lua
View file @
966a7016
This diff is collapsed.
Click to expand it.
ElvUI/Core/Cooldowns.lua
View file @
966a7016
local
E
,
L
,
V
,
P
,
G
=
unpack
(
select
(
2
,
...
));
--Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local
AB
=
E
:
GetModule
(
'ActionBars'
)
local
LSM
=
E
.
Libs
.
LSM
local
next
,
ipairs
,
pairs
=
next
,
ipairs
,
pairs
local
floor
,
tinsert
=
floor
,
tinsert
...
...
@@ -150,7 +151,7 @@ function E:Cooldown_Options(timer, db, parent)
end
if
fonts
and
fonts
.
enable
then
timer
.
customFont
=
E
.
Libs
.
LSM
:
Fetch
(
'font'
,
fonts
.
font
)
timer
.
customFont
=
LSM
:
Fetch
(
'font'
,
fonts
.
font
)
timer
.
customFontSize
=
fonts
.
fontSize
timer
.
customFontOutline
=
fonts
.
fontOutline
else
...
...
@@ -169,7 +170,7 @@ function E:CreateCooldownTimer(parent)
parent
.
timer
=
timer
local
text
=
timer
:
CreateFontString
(
nil
,
'OVERLAY'
)
text
:
Set
Point
(
'CENTER'
,
1
,
1
)
text
:
Point
(
'CENTER'
,
1
,
1
)
text
:
SetJustifyH
(
'CENTER'
)
timer
.
text
=
text
...
...
@@ -205,7 +206,7 @@ end
E
.
RegisteredCooldowns
=
{}
function
E
:
OnSetCooldown
(
start
,
duration
)
if
(
not
self
.
forceDisabled
)
and
(
start
and
duration
)
and
(
duration
>
MIN_DURATION
)
then
if
not
self
.
forceDisabled
and
(
start
and
duration
)
and
(
duration
>
MIN_DURATION
)
then
local
timer
=
self
.
timer
or
E
:
CreateCooldownTimer
(
self
)
timer
.
start
=
start
timer
.
duration
=
duration
...
...
@@ -265,7 +266,7 @@ end
function
E
:
UpdateCooldownOverride
(
module
)
local
cooldowns
=
(
module
and
E
.
RegisteredCooldowns
[
module
])
if
(
not
cooldowns
)
or
not
next
(
cooldowns
)
then
return
end
if
not
cooldowns
or
not
next
(
cooldowns
)
then
return
end
local
blizzText
for
_
,
parent
in
ipairs
(
cooldowns
)
do
...
...
@@ -290,7 +291,7 @@ function E:UpdateCooldownOverride(module)
cd
.
text
:
FontTemplate
(
cd
.
customFont
,
cd
.
customFontSize
,
cd
.
customFontOutline
)
elseif
parent
.
CooldownOverride
==
'auras'
then
-- parent.auraType defined in `A:UpdateHeader` and `A:CreateIcon`
local
font
=
E
.
Libs
.
LSM
:
Fetch
(
'font'
,
db
.
font
)
local
font
=
LSM
:
Fetch
(
'font'
,
db
.
font
)
if
font
and
parent
.
auraType
then
local
fontSize
=
db
[
parent
.
auraType
]
and
db
[
parent
.
auraType
].
durationFontSize
if
fontSize
then
...
...
ElvUI/Core/Core.lua
View file @
966a7016
This diff is collapsed.
Click to expand it.
ElvUI/Core/Distributor.lua
View file @
966a7016
...
...
@@ -5,7 +5,7 @@ local LibCompress = E.Libs.Compress
local
LibBase64
=
E
.
Libs
.
Base64
local
_G
=
_G
local
tonumber
,
type
,
gsub
,
pcall
,
loadstring
=
tonumber
,
type
,
gsub
,
pcall
,
loadstring
local
tonumber
,
type
,
gsub
,
pairs
,
pcall
,
loadstring
=
tonumber
,
type
,
gsub
,
pairs
,
pcall
,
loadstring
local
len
,
format
,
split
,
find
=
strlen
,
format
,
strsplit
,
strfind
local
CreateFrame
=
CreateFrame
...
...
@@ -34,10 +34,10 @@ function D:Initialize()
self
.
statusBar
:
CreateBackdrop
()
self
.
statusBar
:
SetStatusBarTexture
(
E
.
media
.
normTex
)
self
.
statusBar
:
SetStatusBarColor
(
0
.
95
,
0
.
15
,
0
.
15
)
self
.
statusBar
:
Set
Size
(
250
,
18
)
self
.
statusBar
:
Size
(
250
,
18
)
self
.
statusBar
.
text
=
self
.
statusBar
:
CreateFontString
(
nil
,
'OVERLAY'
)
self
.
statusBar
.
text
:
FontTemplate
()
self
.
statusBar
.
text
:
Set
Point
(
'CENTER'
)
self
.
statusBar
.
text
:
Point
(
'CENTER'
)
self
.
statusBar
:
Hide
()
E
:
RegisterStatusBar
(
self
.
statusBar
)
end
...
...
ElvUI/Core/Dropdown.lua
View file @
966a7016
...
...
@@ -59,28 +59,28 @@ function E:DropDown(list, frame, xOffset, yOffset)
end
frame
.
buttons
[
i
]:
Show
()
frame
.
buttons
[
i
]:
Set
Height
(
BUTTON_HEIGHT
)
frame
.
buttons
[
i
]:
Set
Width
(
BUTTON_WIDTH
)
frame
.
buttons
[
i
]:
Height
(
BUTTON_HEIGHT
)
frame
.
buttons
[
i
]:
Width
(
BUTTON_WIDTH
)
frame
.
buttons
[
i
].
text
:
SetText
(
list
[
i
].
text
)
frame
.
buttons
[
i
].
func
=
list
[
i
].
func
frame
.
buttons
[
i
]:
SetScript
(
'OnClick'
,
OnClick
)
if
i
==
1
then
frame
.
buttons
[
i
]:
Set
Point
(
'TOPLEFT'
,
frame
,
'TOPLEFT'
,
PADDING
,
-
PADDING
)
frame
.
buttons
[
i
]:
Point
(
'TOPLEFT'
,
frame
,
'TOPLEFT'
,
PADDING
,
-
PADDING
)
else
frame
.
buttons
[
i
]:
Set
Point
(
'TOPLEFT'
,
frame
.
buttons
[
i
-
1
],
'BOTTOMLEFT'
)
frame
.
buttons
[
i
]:
Point
(
'TOPLEFT'
,
frame
.
buttons
[
i
-
1
],
'BOTTOMLEFT'
)
end
end
frame
:
Set
Height
((
#
list
*
BUTTON_HEIGHT
)
+
PADDING
*
2
)
frame
:
Set
Width
(
BUTTON_WIDTH
+
PADDING
*
2
)
frame
:
Height
((
#
list
*
BUTTON_HEIGHT
)
+
PADDING
*
2
)
frame
:
Width
(
BUTTON_WIDTH
+
PADDING
*
2
)
local
UIScale
=
_G
.
UIParent
:
GetScale
()
local
x
,
y
=
GetCursorPosition
()
x
=
x
/
UIScale
y
=
y
/
UIScale
frame
:
ClearAllPoints
()
frame
:
Set
Point
(
'TOPLEFT'
,
_G
.
UIParent
,
'BOTTOMLEFT'
,
x
+
xOffset
,
y
+
yOffset
)
frame
:
Point
(
'TOPLEFT'
,
_G
.
UIParent
,
'BOTTOMLEFT'
,
x
+
xOffset
,
y
+
yOffset
)
ToggleFrame
(
frame
)
end
ElvUI/Core/Fonts.lua
View file @
966a7016
...
...
@@ -5,6 +5,7 @@ local _G = _G
local
strmatch
=
strmatch
local
function
SetFont
(
obj
,
font
,
size
,
style
,
sr
,
sg
,
sb
,
sa
,
sox
,
soy
,
r
,
g
,
b
)
if
not
obj
then
return
end
obj
:
SetFont
(
font
,
size
,
style
)
if
sr
and
sg
and
sb
then
obj
:
SetShadowColor
(
sr
,
sg
,
sb
,
sa
)
end
if
sox
and
soy
then
obj
:
SetShadowOffset
(
sox
,
soy
)
end
...
...
@@ -27,11 +28,9 @@ function E:UpdateBlizzardFonts()
if
E
.
private
.
general
.
replaceNameFont
then
_G
.
UNIT_NAME_FONT
=
NAMEFONT
end
if
E
.
private
.
general
.
replaceCombatFont
then
_G
.
DAMAGE_TEXT_FONT
=
COMBAT
end
if
E
.
private
.
general
.
replaceBlizzFonts
then
--_G.NAMEPLATE_FONT = NAMEFONT
_G
.
STANDARD_TEXT_FONT
=
NORMAL
--_G.NAMEPLATE_FONT = NAMEFONT
--SetFont(_G.NumberFontNormal, LSM:Fetch('font', 'Homespun'), 10, 'MONOCHROMEOUTLINE', 1, 1, 1, 0, 0, 0)
--SetFont(_G.GameFontNormalSmall, NORMAL, 12, nil, nil, nil, nil, nil, nil, nil, unpack(E.media.rgbvaluecolor))
SetFont
(
_G
.
AchievementFont_Small
,
NORMAL
,
E
.
db
.
general
.
fontSize
)
-- Achiev dates
SetFont
(
_G
.
BossEmoteNormalHuge
,
NORMAL
,
24
)
-- Talent Title
SetFont
(
_G
.
ChatBubbleFont
,
BUBBLE
,
E
.
private
.
general
.
chatBubbleFontSize
,
E
.
private
.
general
.
chatBubbleFontOutline
)
...
...
@@ -51,8 +50,9 @@ function E:UpdateBlizzardFonts()
SetFont
(
_G
.
Game15Font_o1
,
NORMAL
,
15
)
-- CharacterStatsPane (ItemLevelFrame)
SetFont
(
_G
.
Game16Font
,
NORMAL
,
16
)
-- Added in 7.3.5 used for ?
SetFont
(
_G
.
Game18Font
,
NORMAL
,
18
)
-- MissionUI Bonus Chance
SetFont
(
_G
.
Game24Font
,
NORMAL
,
24
)
-- Garrison Mission level (in detail frame)
SetFont
(
_G
.
Game24Font
,
NORMAL
,
24
)
-- Garrison Mission level (in detail frame)
SetFont
(
_G
.
Game30Font
,
NORMAL
,
30
)
-- Mission Level
SetFont
(
_G
.
Game40Font
,
NORMAL
,
40
)
SetFont
(
_G
.
Game42Font
,
NORMAL
,
42
)
-- PVP Stuff
SetFont
(
_G
.
Game46Font
,
NORMAL
,
46
)
-- Added in 7.3.5 used for ?
SetFont
(
_G
.
Game48Font
,
NORMAL
,
48
)
...
...
@@ -64,6 +64,7 @@ function E:UpdateBlizzardFonts()
SetFont
(
_G
.
GameFontHighlightMedium
,
NORMAL
,
15
)
-- Fix QuestLog Title mouseover
SetFont
(
_G
.
GameFontHighlightSmall2
,
NORMAL
,
E
.
db
.
general
.
fontSize
)
-- Skill or Recipe description on TradeSkill frame
SetFont
(
_G
.
GameFontNormalHuge2
,
NORMAL
,
24
)
-- Mythic weekly best dungeon name
SetFont
(
_G
.
GameFontNormalLarge
,
NORMAL
,
16
)
SetFont
(
_G
.
GameFontNormalLarge2
,
NORMAL
,
15
)
-- Garrison Follower Names
SetFont
(
_G
.
GameFontNormalMed1
,
NORMAL
,
14
)
-- WoW Token Info
SetFont
(
_G
.
GameFontNormalMed2
,
NORMAL
,
E
.
db
.
general
.
fontSize
*
1
.
1
)
-- Quest tracker
...
...
@@ -97,7 +98,7 @@ function E:UpdateBlizzardFonts()
SetFont
(
_G
.
SubZoneTextFont
,
NORMAL
,
24
,
MONOCHROME
..
'OUTLINE'
)
-- World Map(SubZone)
SetFont
(
_G
.
SubZoneTextString
,
NORMAL
,
25
,
MONOCHROME
..
'OUTLINE'
)
SetFont
(
_G
.
SystemFont_Huge1
,
NORMAL
,
20
)
-- Garrison Mission XP
SetFont
(
_G
.
SystemFont_Huge1_Outline
,
NORMAL
,
18
,
MONOCHROME
..
'OUTLINE'
)
-- Garrison Mission Chance
SetFont
(
_G
.
SystemFont_Huge1_Outline
,
NORMAL
,
18
,
MONOCHROME
..
'OUTLINE'
)
-- Garrison Mission Chance
SetFont
(
_G
.
SystemFont_Large
,
NORMAL
,
15
)
SetFont
(
_G
.
SystemFont_Med1
,
NORMAL
,
E
.
db
.
general
.
fontSize
)
SetFont
(
_G
.
SystemFont_Med3
,
NORMAL
,
E
.
db
.
general
.
fontSize
*
1
.
1
)
...
...
@@ -114,7 +115,6 @@ function E:UpdateBlizzardFonts()
SetFont
(
_G
.
SystemFont_Shadow_Med2
,
NORMAL
,
13
*
1
.
1
)
-- Shows Order resourses on OrderHallTalentFrame
SetFont
(
_G
.
SystemFont_Shadow_Med3
,
NORMAL
,
13
*
1
.
1
)
SetFont
(
_G
.
SystemFont_Shadow_Med3
,
NORMAL
,
E
.
db
.
general
.
fontSize
*
1
.
1
)
SetFont
(
_G
.
SystemFont_Shadow_Outline_Huge2
,
NORMAL
,
20
,
MONOCHROME
..
'OUTLINE'
)
SetFont
(
_G
.
SystemFont_Shadow_Small
,
NORMAL
,
E
.
db
.
general
.
fontSize
*
0
.
9
)
SetFont
(
_G
.
SystemFont_Small
,
NORMAL
,
E
.
db
.
general
.
fontSize
)
SetFont
(
_G
.
SystemFont_Tiny
,
NORMAL
,
E
.
db
.
general
.
fontSize
)
...
...
@@ -123,7 +123,6 @@ function E:UpdateBlizzardFonts()
SetFont
(
_G
.
ZoneTextString
,
NORMAL
,
32
,
MONOCHROME
..
'OUTLINE'
)
SetFont
(
_G
.
Game10Font_o1
,
NORMAL
,
10
,
'OUTLINE'
)
SetFont
(
_G
.
SystemFont_Shadow_Huge4
,
NORMAL
,
27
,
nil
,
nil
,
nil
,
nil
,
nil
,
1
,
-
1
)
SetFont
(
_G
.
SystemFont_Shadow_Outline_Huge4
,
NORMAL
,
27
,
'OUTLINE'
,
nil
,
nil
,
nil
,
nil
,
1
,
-
1
)
SetFont
(
_G
.
Number11Font
,
NUMBER
,
11
)
SetFont
(
_G
.
Number12Font_o1
,
NUMBER
,
12
,
'OUTLINE'
)
SetFont
(
_G
.
Number13Font
,
NUMBER
,
13
)
...
...
@@ -136,6 +135,6 @@ function E:UpdateBlizzardFonts()
SetFont
(
_G
.
Number18FontWhite
,
NUMBER
,
18
)
SetFont
(
_G
.
FriendsFont_11
,
NORMAL
,
11
)
SetFont
(
_G
.
SpellFont_Small
,
NORMAL
,
10
)
SetFont
(
_G
.
SubSpellFont
,
NORMAL
,
10
)
-- Spellbook Sub Names
SetFont
(
_G
.
SubSpellFont
,
NORMAL
,
10
)
-- Spellbook Sub Names
end
end
ElvUI/Core/Install.lua
View file @
966a7016
...
...
@@ -67,10 +67,10 @@ function E:SetupChat(noDisplayMsg)
-- move general bottom left
if
id
==
1
then
frame
:
ClearAllPoints
()
frame
:
Set
Point
(
'BOTTOMLEFT'
,
_G
.
LeftChatToggleButton
,
'TOPLEFT'
,
1
,
3
)
frame
:
Point
(
'BOTTOMLEFT'
,
_G
.
LeftChatToggleButton
,
'TOPLEFT'
,
1
,
3
)
elseif
id
==
3
then
frame
:
ClearAllPoints
()
frame
:
Set
Point
(
'BOTTOMLEFT'
,
_G
.
RightChatDataPanel
,
'TOPLEFT'
,
1
,
3
)
frame
:
Point
(
'BOTTOMLEFT'
,
_G
.
RightChatDataPanel
,
'TOPLEFT'
,
1
,
3
)
end
FCF_SavePositionAndDimensions
(
frame
)
...
...
@@ -277,7 +277,7 @@ function E:SetupLayout(layout, noDataReset, noDisplayMsg)
E
.
db
.
chat
.
panelWidth
=
472
E
.
db
.
chat
.
tabFontSize
=
10
--DataTexts
E
.
db
.
datatexts
.
panels
.
LeftChatDataPanel
[
3
]
=
'Quick
Join'
E
.
db
.
datatexts
.
panels
.
LeftChatDataPanel
[
3
]
=
'QuickJoin'
--General
E
.
db
.
general
.
bonusObjectivePosition
=
'AUTO'
E
.
db
.
general
.
minimap
.
size
=
220
...
...
@@ -499,7 +499,7 @@ local function ResetAll()
ElvUIInstallFrame
.
Desc1
:
SetText
(
''
)
ElvUIInstallFrame
.
Desc2
:
SetText
(
''
)
ElvUIInstallFrame
.
Desc3
:
SetText
(
''
)
ElvUIInstallFrame
:
Set
Size
(
550
,
400
)
ElvUIInstallFrame
:
Size
(
550
,
400
)
end
function
E
:
SetPage
(
PageNum
)
...
...
@@ -656,7 +656,7 @@ function E:SetPage(PageNum)
InstallOption2Button
:
Show
()
InstallOption2Button
:
SetScript
(
'OnClick'
,
InstallComplete
)
InstallOption2Button
:
SetText
(
L
[
"Finished"
])
ElvUIInstallFrame
:
Set
Size
(
550
,
350
)
ElvUIInstallFrame
:
Size
(
550
,
350
)
end
end
...
...
@@ -678,8 +678,8 @@ end
function
E
:
Install
()
if
not
_G
.
InstallStepComplete
then
local
imsg
=
CreateFrame
(
'Frame'
,
'InstallStepComplete'
,
E
.
UIParent
)
imsg
:
Set
Size
(
418
,
72
)
imsg
:
Set
Point
(
'TOP'
,
0
,
-
190
)
imsg
:
Size
(
418
,
72
)
imsg
:
Point
(
'TOP'
,
0
,
-
190
)
imsg
:
Hide
()
imsg
:
SetScript
(
'OnShow'
,
function
(
f
)
if
f
.
message
then
...
...
@@ -697,38 +697,38 @@ function E:Install()
imsg
.
bg
=
imsg
:
CreateTexture
(
nil
,
'BACKGROUND'
)
imsg
.
bg
:
SetTexture
(
[[Interface\LevelUp\LevelUpTex]]
)
imsg
.
bg
:
Set
Point
(
'BOTTOM'
)
imsg
.
bg
:
Set
Size
(
326
,
103
)
imsg
.
bg
:
Point
(
'BOTTOM'
)
imsg
.
bg
:
Size
(
326
,
103
)
imsg
.
bg
:
SetTexCoord
(
0
.
00195313
,
0
.
63867188
,
0
.
03710938
,
0
.
23828125
)
imsg
.
bg
:
SetVertexColor
(
1
,
1
,
1
,
0
.
6
)
imsg
.
lineTop
=
imsg
:
CreateTexture
(
nil
,
'BACKGROUND'
)
imsg
.
lineTop
:
SetDrawLayer
(
'BACKGROUND'
,
2
)
imsg
.
lineTop
:
SetTexture
(
[[Interface\LevelUp\LevelUpTex]]
)
imsg
.
lineTop
:
Set
Point
(
'TOP'
)
imsg
.
lineTop
:
Set
Size
(
418
,
7
)
imsg
.
lineTop
:
Point
(
'TOP'
)
imsg
.
lineTop
:
Size
(
418
,
7
)
imsg
.
lineTop
:
SetTexCoord
(
0
.
00195313
,
0
.
81835938
,
0
.
01953125
,
0
.
03320313
)
imsg
.
lineBottom
=
imsg
:
CreateTexture
(
nil
,
'BACKGROUND'
)
imsg
.
lineBottom
:
SetDrawLayer
(
'BACKGROUND'
,
2
)
imsg
.
lineBottom
:
SetTexture
(
[[Interface\LevelUp\LevelUpTex]]
)
imsg
.
lineBottom
:
Set
Point
(
'BOTTOM'
)
imsg
.
lineBottom
:
Set
Size
(
418
,
7
)
imsg
.
lineBottom
:
Point
(
'BOTTOM'
)
imsg
.
lineBottom
:
Size
(
418
,
7
)
imsg
.
lineBottom
:
SetTexCoord
(
0
.
00195313
,
0
.
81835938
,
0
.
01953125
,
0
.
03320313
)
imsg
.
text
=
imsg
:
CreateFontString
(
nil
,
'ARTWORK'
,
'GameFont_Gigantic'
)
imsg
.
text
:
Set
Point
(
'BOTTOM'
,
0
,
12
)
imsg
.
text
:
Point
(
'BOTTOM'
,
0
,
12
)
imsg
.
text
:
SetTextColor
(
1
,
0
.
82
,
0
)
imsg
.
text
:
SetJustifyH
(
'CENTER'
)
end
--Create Frame
if
not
ElvUIInstallFrame
then
local
f
=
CreateFrame
(
'Button'
,
'ElvUIInstallFrame'
,
E
.
UIParent
)
local
f
=
CreateFrame
(
'Button'
,
'ElvUIInstallFrame'
,
E
.
UIParent
,
'BackdropTemplate'
)
f
.
SetPage
=
E
.
SetPage
f
:
Set
Size
(
550
,
400
)
f
:
Size
(
550
,
400
)
f
:
SetTemplate
(
'Transparent'
)
f
:
Set
Point
(
'CENTER'
)
f
:
Point
(
'CENTER'
)
f
:
SetFrameStrata
(
'TOOLTIP'
)
f
:
SetMovable
(
true
)
...
...
@@ -739,20 +739,20 @@ function E:Install()
f
.
Title
=
f
:
CreateFontString
(
nil
,
'OVERLAY'
)
f
.
Title
:
FontTemplate
(
nil
,
17
,
nil
)
f
.
Title
:
Set
Point
(
'TOP'
,
0
,
-
5
)
f
.
Title
:
Point
(
'TOP'
,
0
,
-
5
)
f
.
Title
:
SetText
(
L
[
"ElvUI Installation"
])
f
.
Next
=
CreateFrame
(
'Button'
,
'InstallNextButton'
,
f
,
'UIPanelButtonTemplate'
)
f
.
Next
:
Set
Size
(
110
,
25
)
f
.
Next
:
Set
Point
(
'BOTTOMRIGHT'
,
-
5
,
5
)
f
.
Next
=
CreateFrame
(
'Button'
,
'InstallNextButton'
,
f
,
'UIPanelButtonTemplate
, BackdropTemplate
'
)
f
.
Next
:
Size
(
110
,
25
)
f
.
Next
:
Point
(
'BOTTOMRIGHT'
,
-
5
,
5
)
f
.
Next
:
SetText
(
CONTINUE
)
f
.
Next
:
Disable
()
f
.
Next
:
SetScript
(
'OnClick'
,
E
.
NextPage
)
S
:
HandleButton
(
f
.
Next
,
true
)
f
.
Prev
=
CreateFrame
(
'Button'
,
'InstallPrevButton'
,
f
,
'UIPanelButtonTemplate'
)
f
.
Prev
:
Set
Size
(
110
,
25
)
f
.
Prev
:
Set
Point
(
'BOTTOMLEFT'
,
5
,
5
)
f
.
Prev
=
CreateFrame
(
'Button'
,
'InstallPrevButton'
,
f
,
'UIPanelButtonTemplate
, BackdropTemplate
'
)
f
.
Prev
:
Size
(
110
,
25
)
f
.
Prev
:
Point
(
'BOTTOMLEFT'
,
5
,
5
)
f
.
Prev
:
SetText
(
PREVIOUS
)
f
.
Prev
:
Disable
()
f
.
Prev
:
SetScript
(
'OnClick'
,
E
.
PreviousPage
)
...
...
@@ -765,8 +765,8 @@ function E:Install()
E
:
RegisterStatusBar
(
f
.
Status
)
f
.
Status
:
SetStatusBarColor
(
1
,
0
,
0
)
f
.
Status
:
SetMinMaxValues
(
0
,
MAX_PAGE
)
f
.
Status
:
Set
Point
(
'TOPLEFT'
,
f
.
Prev
,
'TOPRIGHT'
,
6
,
-
2
)
f
.
Status
:
Set
Point
(
'BOTTOMRIGHT'
,
f
.
Next
,
'BOTTOMLEFT'
,
-
6
,
2
)
f
.
Status
:
Point
(
'TOPLEFT'
,
f
.
Prev
,
'TOPRIGHT'
,
6
,
-
2
)
f
.
Status
:
Point
(
'BOTTOMRIGHT'
,
f
.
Next
,
'BOTTOMLEFT'
,
-
6
,
2
)
-- Setup StatusBar Animation
f
.
Status
.
anim
=
_G
.
CreateAnimationGroup
(
f
.
Status
)
...
...
@@ -776,101 +776,101 @@ function E:Install()
f
.
Status
.
text
=
f
.
Status
:
CreateFontString
(
nil
,
'OVERLAY'
)
f
.
Status
.
text
:
FontTemplate
(
nil
,
14
,
'OUTLINE'
)
f
.
Status
.
text
:
Set
Point
(
'CENTER'
)
f
.
Status
.
text
:
Point
(
'CENTER'
)
f
.
Status
.
text
:
SetText
(
CURRENT_PAGE
..
' / '
..
MAX_PAGE
)
f
.
Slider
=
CreateFrame
(
'Slider'
,
'InstallSlider'
,
f
)
f
.
Slider
=
CreateFrame
(
'Slider'
,
'InstallSlider'
,
f
,
'BackdropTemplate'
)
f
.
Slider
:
SetOrientation
(
'HORIZONTAL'
)
f
.
Slider
:
Set
Height
(
15
)
f
.
Slider
:
Set
Width
(
400
)
f
.
Slider
:
Height
(
15
)
f
.
Slider
:
Width
(
400
)
f
.
Slider
:
SetHitRectInsets
(
0
,
0
,
-
10
,
0
)
f
.
Slider
:
Set
Point
(
'CENTER'
,
0
,
45
)
f
.
Slider
:
Point
(
'CENTER'
,
0
,
45
)
S
:
HandleSliderFrame
(
f
.
Slider
)
f
.
Slider
:
Hide
()
f
.
Slider
.
Min
=
f
.
Slider
:
CreateFontString
(
nil
,
'ARTWORK'
,
'GameFontHighlightSmall'
)
f
.
Slider
.
Min
:
Set
Point
(
'RIGHT'
,
f
.
Slider
,
'LEFT'
,
-
3
,
0
)
f
.
Slider
.
Min
:
Point
(
'RIGHT'
,
f
.
Slider
,
'LEFT'
,
-
3
,
0
)
f
.
Slider
.
Max
=
f
.
Slider
:
CreateFontString
(
nil
,
'ARTWORK'
,
'GameFontHighlightSmall'
)
f
.
Slider
.
Max
:
Set
Point
(
'LEFT'
,
f
.
Slider
,
'RIGHT'
,
3
,
0
)
f
.
Slider
.
Max
:
Point
(
'LEFT'
,
f
.
Slider
,
'RIGHT'
,
3
,
0
)
f
.
Slider
.
Cur
=
f
.
Slider
:
CreateFontString
(
nil
,
'ARTWORK'
,
'GameFontHighlightSmall'
)
f
.
Slider
.
Cur
:
Set
Point
(
'BOTTOM'
,
f
.
Slider
,
'TOP'
,
0
,
10
)
f
.
Slider
.
Cur
:
Point
(
'BOTTOM'
,
f
.
Slider
,
'TOP'
,
0
,
10
)
f
.
Slider
.
Cur
:
FontTemplate
(
nil
,
30
,
nil
)