Commit 28bfeaeb authored by Merathilis's avatar Merathilis

Merge branch 'development'

parents d3fa0b69 10d5f849
This diff is collapsed.
**v3.06[/color], 29.08.2017**
* Implement OzCooldowns - Credits Infinitron
* Add a new Logo. Thx RZ_Digital
* Some layout adjustments.
* Add Namplateaura Filter - Credits Infinitron.
* Fix a error in AFK screen.
* Works with Patch 7.2.5 & 7.3.
** v3.05, 17.08.2017**
* Remove the texture from the ObjectiveTracker Skin.
* Fix an error in WeakAura Skin.
......
## Interface: 70200
## Interface: 70300
## Author: Merathilis
## Credits: Benik, Darth Predator, Blazeflack, Azilroka, Infinitron, fgprodigal, Elv & all AddOn Authors who inspired me
## Version: 3.05
## Version: 3.06
## Title: |cff1784d1ElvUI|r |cffff7d0aMerathilisUI|r
## Notes: A decorative edit for ElvUI + additional features.
## Notes-deDE: Eine dekorative Erweiterung für ElvUI + einige zusätzliche Funktionen.
......@@ -12,10 +12,12 @@
## SavedVariables: MERData
## SavedVariablesPerCharacter: MERDataPerChar
## OptionalDeps: SharedMedia, XIV_Databar, BigWigs
## X-ElvVersion: 10.59
## X-Curse-Packaged-Version: 3.04
## X-ElvVersion: 10.60
## X-Curse-Packaged-Version: 3.06
## X-Curse-Project-Name: MerathilisUI
## X-Curse-Project-ID: merathilis-ui
## X-Tukui-ProjectID: 1
## X-Tukui-ProjectFolders: ElvUI_MerathilisUI
libs\load_libs.xml
locales\load_locales.xml
......
This diff is collapsed.
......@@ -8,20 +8,20 @@ local tinsert = table.insert
local pairs, tostring = pairs, tostring
-- WoW API / Variables
local CreateFrame = CreateFrame
local SOUNDKIT = SOUNDKIT
-- Global variables that we don't cache, list them here for the mikk's Find Globals script
-- GLOBALS: MERData, PlaySound, UISpecialFrames
-- GLOBALS: MERData, UISpecialFrames
local ChangeLogData = {
"Changes:",
"• Remove the texture from the ObjectiveTracker Skin.",
"• Fix an error in WeakAura Skin.",
"• Implement OzCooldowns - Credits Infinitron.",
"• Add a new Logo. Thx RZ_Digital.",
"• Some layout adjustments.",
"• Add a style for the ActionBars Buttons (Like Masque).",
"• Credits Infinitron for the code permission.",
"• Add compatibily with or without ParchementRemover from AddOnSkins.",
"• Add a QuestCounter on the WorldMap.",
"• Add Namplateaura Filter - Credits Infinitron.",
"• Fix a error in AFK screen.",
"• Works with Patch 7.2.5 & 7.3.",
-- "• ",
" ",
"Notes:",
......@@ -128,7 +128,11 @@ function MER:ToggleChangeLog()
if not MerathilisUIChangeLog then
self:CreateChangelog()
end
PlaySound("igMainMenuOptionCheckBoxOff")
if E.wowbuild < 24896 then --7.2.5
PlaySound("igMainMenuOptionCheckBoxOff")
else --7.3
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF)
end
local fadeInfo = {}
fadeInfo.mode = "IN"
......
......@@ -30,7 +30,7 @@ local function AddOptions()
type = "description",
name = L["MerathilisUI is an external ElvUI mod. Mostly it changes the look to be more transparency.\n\n|cff00c0faNew Function are marked with:|r"]..MER.NewSign,
fontSize = "medium",
image = function() return "Interface\\AddOns\\ElvUI_MerathilisUI\\media\\textures\\mUI1.tga", 100, 100 end,
image = function() return "Interface\\AddOns\\ElvUI_MerathilisUI\\media\\textures\\mUI1.tga", 125, 125 end,
imageCoords = { 0, 0.99, 0.01, 0.99 },
},
install = {
......@@ -122,13 +122,13 @@ local function AddOptions()
order = 1,
type = "execute",
name = L["TukUI.org"],
func = function() E:StaticPopup_Show("MERATHILISUI_CREDITS", nil, nil, "http://www.tukui.org/addons/index.php?act=view&id=286") end,
func = function() E:StaticPopup_Show("MERATHILISUI_CREDITS", nil, nil, "https://www.tukui.org/addons.php?id=1") end,
},
git = {
order = 2,
type = "execute",
name = L["Git Ticket tracker"],
func = function() E:StaticPopup_Show("MERATHILISUI_CREDITS", nil, nil, "http://git.tukui.org/Merathilis/UI-Settings/issues") end,
func = function() E:StaticPopup_Show("MERATHILISUI_CREDITS", nil, nil, "https://git.tukui.org/Merathilis/ElvUI_MerathilisUI/issues") end,
},
curse = {
order = 3,
......
......@@ -16,6 +16,7 @@ local CreateFrame = CreateFrame
local GetAddOnMetadata = GetAddOnMetadata
local IsAddOnLoaded = IsAddOnLoaded
local C_TimerAfter = C_Timer.After
local SetCVar = SetCVar
-- Global variables that we don"t cache, list them here for the mikk"s Find Globals script
-- GLOBALS: LibStub, ElvDB, MUISplashScreen, ElvUI_SLE, hooksecurefunc
......@@ -168,6 +169,7 @@ end
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_LOGIN")
f:SetScript("OnEvent", function()
SetCVar("blockTrades", 0) -- Lets set this on every login
MER:Initialize()
end)
......
......@@ -54,6 +54,13 @@ function MER:unpackColor(color)
return color.r, color.g, color.b, color.a
end
function MER:InvertTable(t)
local u = { }
for k, v in pairs(t) do u[v] = k end
return u
end
function MER:GetIconFromID(type, id)
local path
if type == "item" then
......
......@@ -57,6 +57,7 @@ local function SetupCVars()
SetCVar("chatMouseScroll", 1)
SetCVar("chatStyle", "classic")
SetCVar("violenceLevel", 5)
SetCVar("blockTrades", 0)
if MER:IsDeveloper() and MER:IsDeveloperRealm() then
SetCVar("scriptErrors", 1)
......@@ -270,20 +271,33 @@ function MER:SetupLayout(layout)
--[[----------------------------------
-- ProfileDB - NamePlate
--]]----------------------------------
E.db["nameplates"]["statusbar"] = "MerathilisBlank"
E.db["nameplates"]["font"] = "Merathilis Roboto-Black"
E.db["nameplates"]["threat"]["goodScale"] = 1
E.db["nameplates"]["threat"]["useThreatColor"] = false
E.db["nameplates"]["threat"]["badScale"] = 1
E.db["nameplates"]["statusbar"] = "MerathilisFlat"
E.db["nameplates"]["fontSize"] = 10
E.db["nameplates"]["fontOutline"] = "OUTLINE"
E.db["nameplates"]["targetScale"] = 1.05
E.db["nameplates"]["displayStyle"] = "BLIZZARD"
E.db["nameplates"]["units"]["PLAYER"]["enable"] = false
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["healthbar"]["text"]["enable"] = true
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["healthbar"]["text"]["format"] = "PERCENT"
E.db["nameplates"]["customColor"] = false
E.db["nameplates"]["font"] = "Expressway"
E.db["nameplates"]["units"]["PLAYER"]["powerbar"]["text"]["enable"] = true
E.db["nameplates"]["units"]["PLAYER"]["showName"] = true
E.db["nameplates"]["units"]["PLAYER"]["visibility"]["showInCombat"] = false
E.db["nameplates"]["units"]["PLAYER"]["showLevel"] = true
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["healthbar"]["enable"] = true
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["buffs"]["filters"]["priority"] = "Boss,TurtleBuffs,Personal"
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["eliteIcon"]["enable"] = true
E.db["nameplates"]["units"]["ENEMY_NPC"]["debuffs"]["baseHeight"] = 16
E.db["nameplates"]["units"]["ENEMY_NPC"]["debuffs"]["numAuras"] = 5
E.db["nameplates"]["units"]["ENEMY_NPC"]["debuffs"]["filters"]["maxDuration"] = 0
E.db["nameplates"]["units"]["ENEMY_NPC"]["debuffs"]["filters"]["priority"] = "Blacklist,Whitelist,Boss,Personal,CCDebuffs"
E.db["nameplates"]["units"]["ENEMY_NPC"]["healthbar"]["text"]["enable"] = true
E.db["nameplates"]["units"]["ENEMY_NPC"]["healthbar"]["text"]["format"] = "PERCENT"
E.db["nameplates"]["units"]["ENEMY_NPC"]["eliteIcon"]["enable"] = true
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["eliteIcon"]["enable"] = true
E.db["nameplates"]["units"]["HEALER"]["healthbar"]["enable"] = false
E.db["nameplates"]["units"]["HEALER"]["showLevel"] = true
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["debuffs"]["filters"]["priority"] = "blockNoDuration,Personal,Boss,CCDebuffs,Blacklist"
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["healthbar"]["text"]["enable"] = true
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["healthbar"]["text"]["format"] = "PERCENT"
E.db["nameplates"]["fontOutline"] = "OUTLINE"
--[[----------------------------------
-- ProfileDB - Tooltip
......@@ -689,7 +703,7 @@ function MER:SetupActionbars(layout)
MER:SetMoverPosition("ElvAB_4", "BOTTOMRIGHT", E.UIParent, "BOTTOMRIGHT", 0, 367)
MER:SetMoverPosition("ElvAB_5", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 403, 1)
MER:SetMoverPosition("ElvAB_6", "BOTTOM", E.UIParent, "BOTTOM", 0, 22)
MER:SetMoverPosition("ShiftAB", "BOTTOM", E.UIParent, "BOTTOM", 0, 320)
MER:SetMoverPosition("ShiftAB", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 634, 0)
MER:SetMoverPosition("PetAB", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 475, 11)
MER:SetMoverPosition("BossButton", "BOTTOM", E.UIParent, "BOTTOM", -300, 26)
MER:SetMoverPosition("MicrobarMover", "TOPLEFT", E.UIParent, "TOPLEFT", 4, -4)
......@@ -1377,7 +1391,7 @@ function MER:SetupUnitframes(layout)
-- UnitFrames - General - Big
--]]----------------------------------
E.db["unitframe"]["font"] = "Expressway"
E.db["unitframe"]["fontSize"] = 11
E.db["unitframe"]["fontSize"] = 10
E.db["unitframe"]["fontOutline"] = "OUTLINE"
E.db["unitframe"]["smoothbars"] = true
E.db["unitframe"]["statusbar"] = "Skullflower"
......@@ -1443,7 +1457,7 @@ function MER:SetupUnitframes(layout)
["text_format"] = "[health:percent:hidefull:hidezero]",
["attachTextTo"] = "Health",
["xOffset"] = 0,
["yOffset"] = -1,
["yOffset"] = 0,
}
E.db["unitframe"]["units"]["player"]["customTexts"]["Life"] = {
["font"] = "Expressway",
......@@ -1502,6 +1516,7 @@ function MER:SetupUnitframes(layout)
E.db["unitframe"]["units"]["target"]["debuffs"]["anchorPoint"] = "TOPRIGHT"
E.db["unitframe"]["units"]["target"]["debuffs"]["perrow"] = 4
E.db["unitframe"]["units"]["target"]["debuffs"]["attachTo"] = "BUFFS"
E.db["unitframe"]["units"]["target"]["debuffs"]["priority"] = "Personal,Boss,Whitelist,Blacklist,RaidDebuffs,blockNoDuration"
E.db["unitframe"]["units"]["target"]["smartAuraPosition"] = "DISABLED"
E.db["unitframe"]["units"]["target"]["aurabar"]["enable"] = false
E.db["unitframe"]["units"]["target"]["aurabar"]["attachTo"] = "BUFFS"
......@@ -1542,7 +1557,7 @@ function MER:SetupUnitframes(layout)
["font"] = "Expressway",
["size"] = 18,
["fontOutline"] = "OUTLINE",
["justifyH"] = "RIGHT",
["justifyH"] = "LEFT",
["text_format"] = "[health:percent:hidefull:hidezero]",
["attachTextTo"] = "Health",
["yOffset"] = 0,
......@@ -1552,10 +1567,10 @@ function MER:SetupUnitframes(layout)
["font"] = "Expressway",
["size"] = 18,
["fontOutline"] = "OUTLINE",
["justifyH"] = "LEFT",
["justifyH"] = "RIGHT",
["text_format"] = "[health:current]",
["attachTextTo"] = "Health",
["yOffset"] = -1,
["yOffset"] = 0,
["xOffset"] = 0,
}
E.db["unitframe"]["units"]["target"]["health"]["xOffset"] = 0
......
......@@ -4,6 +4,7 @@
<Script file="fonts.lua"/>
<Script file="changelog.lua"/>
<Script file="dropdown.lua"/>
<Script file="bars.lua"/>
<Script file="install.lua"/>
<Script file="staticpopup.lua"/>
<Script file="config.lua"/>
......
......@@ -354,6 +354,33 @@ L["Thu"] = "Do"
L["Fri"] = "Fr"
L["Sat"] = "Sa"
-- Nameplates
L["NameplateAuras"] = "Namensplaketten Auren"
L["Visibility"] = "Sichtbarkeit"
L["Set when this aura is visble."] = "Benutze wenn diese Aura sichtbar ist"
L["Clear Spell List"] = "Leere die Zauberliste"
L["Empties the list of specific spells and their configurations."] = "Leert die Liste von speziellen Zaubern und deren Einstellungen."
L["Restore Spell List"] = "Zauberliste wiederherstellen"
L["Restores the default list of specific spells and their configurations."] = "Stellt die Standardliste von speziellen Zaubern und Einstellungen wiederher."
L["Spell Name/ID"] = "Zauber Name/ID"
L["Input a spell name or spell ID."] = "Gib einen Zauber Name oder Zauber ID ein."
L["Spell List"] = "Zauberliste"
L["Remove Spell"] = "Zauber entfernen"
L["Other Auras"] = "Andere Auren"
L["These are the settings for all spells not explicitly specified."] = "Dies sind die Einstellungen für alle Zauber, die nicht explizit angegeben sind."
L["Icon Width"] = "Symbol Breite"
L["Set the width of this spells icon."] = "Setzt die Breite von einem Zaubersymbol."
L["Icon Height"] = "Symbol Höhe"
L["Set the height of this spells icon."] = "Setzt die Höhe von einem Zaubersymbol."
L["Lock Aspect Ratio"] = "Seitenverhältnis sperren"
L["Set if height and width are locked to the same value."] = "Behält das Seitenverhältnis bei."
L["Text Size"] = "Text Größe"
L["Size of the stack text."] = "Größe des Stack Texts."
L["Specific Auras"] = "Spezifische Auren"
L["Always"] = "Immer"
L["Never"] = "Niemals"
L["Only Mine"] = "Nur eigene"
-- Install
L["Welcome"] = "Willkommen"
L["|cffff7d0aMerathilisUI|r Installation"] = true
......
......@@ -353,6 +353,33 @@ L["Thu"] = true
L["Fri"] = true
L["Sat"] = true
-- Nameplates
L["NameplateAuras"] = true
L["Visibility"] = true
L["Set when this aura is visble."] = true
L["Clear Spell List"] = true
L["Empties the list of specific spells and their configurations."] = true
L["Restore Spell List"] = true
L["Restores the default list of specific spells and their configurations."] = true
L["Spell Name/ID"] = true
L["Input a spell name or spell ID."] = true
L["Spell List"] = true
L["Remove Spell"] = true
L["Other Auras"] = true
L["These are the settings for all spells not explicitly specified."] = true
L["Icon Width"] = true
L["Set the width of this spells icon."] = true
L["Icon Height"] = true
L["Set the height of this spells icon."] = true
L["Lock Aspect Ratio"] = true
L["Set if height and width are locked to the same value."] = true
L["Text Size"] = true
L["Size of the stack text."] = true
L["Specific Auras"] = true
L["Always"] = true
L["Never"] = true
L["Only Mine"] = true
-- Install
L["Welcome"] = true
L["|cffff7d0aMerathilisUI|r Installation"] = true
......
......@@ -342,6 +342,33 @@ L["Thu"] = true
L["Fri"] = true
L["Sat"] = true
-- Nameplates
L["NameplateAuras"] = true
L["Visibility"] = true
L["Set when this aura is visble."] = true
L["Clear Spell List"] = true
L["Empties the list of specific spells and their configurations."] = true
L["Restore Spell List"] = true
L["Restores the default list of specific spells and their configurations."] = true
L["Spell Name/ID"] = true
L["Input a spell name or spell ID."] = true
L["Spell List"] = true
L["Remove Spell"] = true
L["Other Auras"] = true
L["These are the settings for all spells not explicitly specified."] = true
L["Icon Width"] = true
L["Set the width of this spells icon."] = true
L["Icon Height"] = true
L["Set the height of this spells icon."] = true
L["Lock Aspect Ratio"] = true
L["Set if height and width are locked to the same value."] = true
L["Text Size"] = true
L["Size of the stack text."] = true
L["Specific Auras"] = true
L["Always"] = true
L["Never"] = true
L["Only Mine"] = true
-- Install
L["Welcome"] = true
L["|cffff7d0aMerathilisUI|r Installation"] = true
......
......@@ -342,6 +342,33 @@ L["Thu"] = true
L["Fri"] = true
L["Sat"] = true
-- Nameplates
L["NameplateAuras"] = true
L["Visibility"] = true
L["Set when this aura is visble."] = true
L["Clear Spell List"] = true
L["Empties the list of specific spells and their configurations."] = true
L["Restore Spell List"] = true
L["Restores the default list of specific spells and their configurations."] = true
L["Spell Name/ID"] = true
L["Input a spell name or spell ID."] = true
L["Spell List"] = true
L["Remove Spell"] = true
L["Other Auras"] = true
L["These are the settings for all spells not explicitly specified."] = true
L["Icon Width"] = true
L["Set the width of this spells icon."] = true
L["Icon Height"] = true
L["Set the height of this spells icon."] = true
L["Lock Aspect Ratio"] = true
L["Set if height and width are locked to the same value."] = true
L["Text Size"] = true
L["Size of the stack text."] = true
L["Specific Auras"] = true
L["Always"] = true
L["Never"] = true
L["Only Mine"] = true
-- Install
L["Welcome"] = true
L["|cffff7d0aMerathilisUI|r Installation"] = true
......
......@@ -342,6 +342,33 @@ L["Thu"] = true
L["Fri"] = true
L["Sat"] = true
-- Nameplates
L["NameplateAuras"] = true
L["Visibility"] = true
L["Set when this aura is visble."] = true
L["Clear Spell List"] = true
L["Empties the list of specific spells and their configurations."] = true
L["Restore Spell List"] = true
L["Restores the default list of specific spells and their configurations."] = true
L["Spell Name/ID"] = true
L["Input a spell name or spell ID."] = true
L["Spell List"] = true
L["Remove Spell"] = true
L["Other Auras"] = true
L["These are the settings for all spells not explicitly specified."] = true
L["Icon Width"] = true
L["Set the width of this spells icon."] = true
L["Icon Height"] = true
L["Set the height of this spells icon."] = true
L["Lock Aspect Ratio"] = true
L["Set if height and width are locked to the same value."] = true
L["Text Size"] = true
L["Size of the stack text."] = true
L["Specific Auras"] = true
L["Always"] = true
L["Never"] = true
L["Only Mine"] = true
-- Install
L["Welcome"] = true
L["|cffff7d0aMerathilisUI|r Installation"] = true
......
......@@ -342,6 +342,33 @@ L["Thu"] = true
L["Fri"] = true
L["Sat"] = true
-- Nameplates
L["NameplateAuras"] = true
L["Visibility"] = true
L["Set when this aura is visble."] = true
L["Clear Spell List"] = true
L["Empties the list of specific spells and their configurations."] = true
L["Restore Spell List"] = true
L["Restores the default list of specific spells and their configurations."] = true
L["Spell Name/ID"] = true
L["Input a spell name or spell ID."] = true
L["Spell List"] = true
L["Remove Spell"] = true
L["Other Auras"] = true
L["These are the settings for all spells not explicitly specified."] = true
L["Icon Width"] = true
L["Set the width of this spells icon."] = true
L["Icon Height"] = true
L["Set the height of this spells icon."] = true
L["Lock Aspect Ratio"] = true
L["Set if height and width are locked to the same value."] = true
L["Text Size"] = true
L["Size of the stack text."] = true
L["Specific Auras"] = true
L["Always"] = true
L["Never"] = true
L["Only Mine"] = true
-- Install
L["Welcome"] = true
L["|cffff7d0aMerathilisUI|r Installation"] = true
......
......@@ -342,6 +342,33 @@ L["Thu"] = true
L["Fri"] = true
L["Sat"] = true
-- Nameplates
L["NameplateAuras"] = true
L["Visibility"] = true
L["Set when this aura is visble."] = true
L["Clear Spell List"] = true
L["Empties the list of specific spells and their configurations."] = true
L["Restore Spell List"] = true
L["Restores the default list of specific spells and their configurations."] = true
L["Spell Name/ID"] = true
L["Input a spell name or spell ID."] = true
L["Spell List"] = true
L["Remove Spell"] = true
L["Other Auras"] = true
L["These are the settings for all spells not explicitly specified."] = true
L["Icon Width"] = true
L["Set the width of this spells icon."] = true
L["Icon Height"] = true
L["Set the height of this spells icon."] = true
L["Lock Aspect Ratio"] = true
L["Set if height and width are locked to the same value."] = true
L["Text Size"] = true
L["Size of the stack text."] = true
L["Specific Auras"] = true
L["Always"] = true
L["Never"] = true
L["Only Mine"] = true
-- Install
L["Welcome"] = true
L["|cffff7d0aMerathilisUI|r Installation"] = true
......
......@@ -8,7 +8,7 @@ local function abTable()
E.Options.args.mui.args.actionbars = {
order = 7,
type = "group",
name = MAB.modName..MER.NewSign,
name = MAB.modName,
-- hidden = function() return IsAddOnLoaded("ElvUI_BenikUI") end,
args = {
name = {
......@@ -42,7 +42,7 @@ local function ButtonStyleTable()
E.Options.args.mui.args.actionbars.args.buttonstyle = {
order = 8,
type = "group",
name = BS.modName..MER.NewSign,
name = BS.modName,
guiInline = true,
get = function(info) return E.db.mui.actionbars.buttonStyle[ info[#info] ] end,
set = function(info, value) E.db.mui.actionbars.buttonStyle[ info[#info] ] = value; BS:UpdateButtons(); end,
......@@ -97,7 +97,7 @@ local function ButtonBorderTable()
E.Options.args.mui.args.actionbars.args.buttonborder = {
order = 9,
type = "group",
name = L["ActionButton Border"]..MER.NewSign,
name = L["ActionButton Border"],
guiInline = true,
get = function(info) return E.db.mui.actionbars.buttonBorder[ info[#info] ] end,
set = function(info, value) E.db.mui.actionbars.buttonBorder[ info[#info] ] = value; E:StaticPopup_Show("PRIVATE_RL"); end,
......
<Ui xmlns="http://www.blizzard.com/wow/ui/">
<Script file="cooldownflash.lua"/>
<Script file="ozcooldowns.lua"/>
<Script file="options.lua"/>
</Ui>
local MER, E, L, V, P, G = unpack(select(2, ...))
local CF = E:GetModule("CooldownFlash");
local CF = E:GetModule("CooldownFlash")
local OCD = E:GetModule("OzCooldowns")
local function CooldownFlash()
E.Options.args.mui.args.cooldownFlash = {
......@@ -104,4 +105,227 @@ local function CooldownFlash()
},
}
end
tinsert(MER.Config, CooldownFlash)
\ No newline at end of file
tinsert(MER.Config, CooldownFlash)
local function OzCooldowns()
E.Options.args.mui.args.ozcooldowns = {
type = "group",
name = OCD.modName..MER.NewSign,
order = 21,
get = function(info) return E.db.mui.misc.ozcooldowns[info[#info]] end,
set = function(info, value) E.db.mui.misc.ozcooldowns[info[#info]] = value; OCD:BuildCooldowns() end,
args = {
header1 = {
type = "header",
name = MER:cOption(OCD.modName)..MER.NewSign,
order = 1
},
credits = {
order = 2,
type = "group",
name = MER:cOption(L["Credits"]),
guiInline = true,
args = {
tukui = {
order = 1,
type = "description",
fontSize = "medium",
name = "OzCooldowns - by Nimaear; taken from Infinitron",
},
},
},
enable = {
order = 3,
name = L["Enable"],
type = "toggle",
get = function(info) return E.db.mui.misc.ozcooldowns[ info[#info] ] end,
set = function(info, value) E.db.mui.misc.ozcooldowns[ info[#info] ] = value; E:StaticPopup_Show("PRIVATE_RL"); end,
},
spells = {
order = 4,
type = "group",
name = SPELLS,
guiInline = true,
hidden = function() return not E.db.mui.misc.ozcooldowns.enable end,
args = OCD:GenerateSpellOptions(),
get = function(info) return E.private.muiMisc.ozcooldowns.spellCDs[info[#info]] end,
set = function(info, value)
E.private.muiMisc.ozcooldowns.spellCDs[info[#info]] = value;
OCD:BuildCooldowns()
end,
},
duration = {
order = 5,
type = "group",
name = L["Duration"],
guiInline = true,
hidden = function() return not E.db.mui.misc.ozcooldowns.enable end,
args = {
DurationFont = {
type = "select", dialogControl = 'LSM30_Font',
order = 1,
name = L["Font"],
values = AceGUIWidgetLSMlists.font,
disabled = function() return not E.db.mui.misc.ozcooldowns["StatusBar"] end,
},
DurationFontSize = {
order = 2,
name = L["Font Size"],