Commit 0e603b13 authored by Merathilis's avatar Merathilis
Browse files

Applying even more new locale bullshit.

parent 1de82519
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local A = SLE:GetModule("Actionbars")
local AB = E:GetModule('ActionBars');
local EVB = SLE:GetModule("EnhancedVehicleBar")
......@@ -134,4 +135,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local S = SLE:GetModule("Screensaver")
local floor = floor
......@@ -17,7 +18,7 @@ local function configTable()
type = "select", dialogControl = 'LSM30_Font',
order = 1,
name = L["Font"],
values = AceGUIWidgetLSMlists.font,
values = AceGUIWidgetLSMlists.font,
},
size = {
order = 2,
......@@ -331,4 +332,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local BUFFOPTIONS_LABEL = BUFFOPTIONS_LABEL
local function configTable()
if not SLE.initialized then return end
......@@ -48,4 +49,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local BG = SLE:GetModule('Backgrounds')
local function configTable()
......@@ -50,7 +51,7 @@ local function configTable()
width = 'full',
name = L["Texture"],
desc = L["Set the texture to use in this frame. Requirements are the same as the chat textures."],
set = function(info, value)
set = function(info, value)
E.db.sle.backgrounds["bg"..i].texture = value
E:UpdateMedia()
BG:UpdateTexture(i)
......@@ -149,4 +150,4 @@ local function configTable()
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local ARTIFACT_POWER, AUCTION_CATEGORY_BATTLE_PETS = ARTIFACT_POWER, AUCTION_CATEGORY_BATTLE_PETS
local B = E:GetModule("Bags")
......@@ -64,7 +65,7 @@ local function configTable()
type = "select", dialogControl = 'LSM30_Font',
order = 1,
name = L["Font"],
values = AceGUIWidgetLSMlists.font,
values = AceGUIWidgetLSMlists.font,
},
size = {
order = 2,
......@@ -80,7 +81,7 @@ local function configTable()
values = {
["NONE"] = L["None"],
["OUTLINE"] = 'OUTLINE',
["MONOCHROMEOUTLINE"] = 'MONOCROMEOUTLINE',
["THICKOUTLINE"] = 'THICKOUTLINE',
},
......@@ -93,4 +94,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local B = SLE:GetModule("Blizzard")
local M = SLE:GetModule("Misc")
......@@ -75,4 +76,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local C = SLE:GetModule("Chat")
local NONE, INVITE = NONE, INVITE
local function configTable()
......@@ -182,4 +183,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local C = SLE:GetModule("Chat")
local _G = _G
local function configTable()
......@@ -77,4 +78,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local C = SLE:GetModule("Chat")
local NAME = NAME
local function configTable()
......@@ -77,4 +78,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local M = SLE:GetModule("Misc")
local SETTINGS = SETTINGS
local LFG_LIST_LEGACY = LFG_LIST_LEGACY
......@@ -112,7 +113,7 @@ local function configTable()
order = 2,
type = "toggle",
name = L["Allow Advanced Options"],
set = function(info, value)
set = function(info, value)
if value == true and not E.global.sle.advanced.confirmed then E:StaticPopup_Show("SLE_ADVANCED_POPUP"); return end
E.global.sle.advanced[ info[#info] ] = value;
end,
......@@ -194,4 +195,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local EDB = E:GetModule('DataBars')
local DB = SLE:GetModule("DataBars")
local FACTION, REPUTATION, SCENARIO_BONUS_LABEL = FACTION, REPUTATION, SCENARIO_BONUS_LABEL
......@@ -335,4 +336,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local CHARACTER, NONE = CHARACTER, NONE
......@@ -30,7 +31,7 @@ local function configTable()
}
return config
end
local function CreateCustomToonList()
local config = {
name = CUSTOM,
......@@ -114,7 +115,7 @@ local function configTable()
end
return names;
end,
set = function(info, value)
set = function(info, value)
local name, realm, realm2 = strsplit("-", value);
if realm2 then realm = realm.."-"..realm2 end
E.PopupDialogs['SLE_CONFIRM_DELETE_CURRENCY_CHARACTER'].text = T.format(L["Are you sure you want to remove |cff1784d1%s|r from currency datatexts?"], name..(realm and "-"..realm or ""))
......@@ -222,4 +223,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local DTP = SLE:GetModule('Datatexts')
local function configTable()
......@@ -86,4 +87,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local DTP = SLE:GetModule('Datatexts')
local function configTable()
......@@ -94,4 +95,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local DTP = SLE:GetModule('Datatexts')
local DT = E:GetModule('DataTexts')
local datatexts = {}
......@@ -48,7 +49,7 @@ local function configTable()
type = "toggle",
name = L["Gradient"],
desc = L["If enabled will color durability text based on it's value."],
},
threshold = {
order = 3,
......@@ -97,4 +98,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local RAID_FINDER = RAID_FINDER
local RAIDS = RAIDS
local EXPANSION_NAME3, EXPANSION_NAME4, EXPANSION_NAME5, EXPANSION_NAME6, EXPANSION_NAME7 = EXPANSION_NAME3, EXPANSION_NAME4, EXPANSION_NAME5, EXPANSION_NAME6, EXPANSION_NAME7
......@@ -94,4 +95,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
if SLE._Compatibility["ElvUI_ChaoticUI"] then return end
local ES = SLE:GetModule("EnhancedShadows")
......@@ -285,7 +286,7 @@ local function configTable()
},
},
}
for i = 1, (SLE._Compatibility["ElvUI_ExtraActionBars"] and 10 or 6) do
E.Options.args.sle.args.modules.args.shadows.args.frames.args.actionbars.args["bar"..i] = {
order = i + 6,
......@@ -300,4 +301,4 @@ local function configTable()
end
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local EM = SLE:GetModule('EquipManager')
local NONE = NONE
local PAPERDOLL_EQUIPMENTMANAGER = PAPERDOLL_EQUIPMENTMANAGER
......@@ -28,7 +29,7 @@ end
local function configTable()
if not SLE.initialized then return end
local function ConstructSpecOption(ORDER, ID, OPTION)
local SpecID, SpecName = T.GetSpecializationInfo(ID)
if not SpecID then return nil end
......@@ -51,7 +52,7 @@ local function configTable()
name = GENERAL,
desc = L["Equip this set for open world/general use."],
values = function()
FillTable()
FillTable()
return sets
end,
},
......@@ -62,7 +63,7 @@ local function configTable()
disabled = function() return not EM.db.instanceSet end,
desc = L["Equip this set after entering dungeons or raids."],
values = function()
FillTable()
FillTable()
return sets
end,
},
......@@ -84,7 +85,7 @@ local function configTable()
disabled = function() return not EM.db.pvpSet end,
desc = L["Equip this set after entering battlegrounds or arens."],
values = function()
FillTable()
FillTable()
return sets
end,
},
......@@ -92,7 +93,7 @@ local function configTable()
}
return config
end
E.Options.args.sle.args.modules.args.equipmanager = {
type = 'group',
order = 1,
......@@ -118,7 +119,7 @@ local function configTable()
setoverlay = {
type = "toggle",
order = 5,
name = L["Equipment Set Overlay"],
name = L["Equipment Set Overlay"],
desc = L["Show the associated equipment sets for the items in your bags (or bank)."],
disabled = function() return not E.private.bags.enable end,
get = function(info) return EM.db.setoverlay end,
......@@ -168,4 +169,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local function configTable()
if not SLE.initialized then return end
local function CreateQuestion(i, text)
local question = {
type = 'group', name = '', order = i, guiInline = true,
......@@ -103,4 +104,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local SLE, T, E, _, V, P, G = unpack(select(2, ...))
local L = E.Libs.ACL:GetLocale('ElvUI', E.global.general.locale or 'enUS')
local Tools = SLE:GetModule("Toolbars")
local EXPANSION_NAME4 = EXPANSION_NAME4
......@@ -67,4 +68,4 @@ local function configTable()
}
end
T.tinsert(SLE.Configs, configTable)
\ No newline at end of file
T.tinsert(SLE.Configs, configTable)
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