Commit 3f144579 authored by Darth Predator's avatar Darth Predator
Browse files

Fonts? Related #218

parent f6504425
......@@ -187,6 +187,7 @@ L["Enable Arrow"] = true
L["Enables a small arrow-like indicator on the item slot. Howering over this arrow will show the item this slot is transmogged into."] = true
L["Glow Number"] = true
L["Glow Offset"] = true
L["Categories"] = true
--AFK
L["You Are Away From Keyboard for"] = true
......
......@@ -187,6 +187,7 @@ L["Enable Arrow"] = true
L["Enables a small arrow-like indicator on the item slot. Howering over this arrow will show the item this slot is transmogged into."] = true
L["Glow Number"] = true
L["Glow Offset"] = true
L["Categories"] = true
--AFK
L["You Are Away From Keyboard for"] = "Du bist nicht an der Tastatur für"
......
......@@ -186,6 +186,7 @@ L["Enable Arrow"] = true
L["Enables a small arrow-like indicator on the item slot. Howering over this arrow will show the item this slot is transmogged into."] = true
L["Glow Number"] = true
L["Glow Offset"] = true
L["Categories"] = true
--AFK
L["You Are Away From Keyboard for"] = "다음 시간 동안 자리를 비우고 계십니다. "
......
......@@ -186,6 +186,7 @@ L["Enable Arrow"] = "Включить стрелку"
L["Enables a small arrow-like indicator on the item slot. Howering over this arrow will show the item this slot is transmogged into."] = "отображать индикатор в виде стрелки на слоте. При наведении курсора на стрелку будет показываться название предмета трансмогрификации."
L["Glow Number"] = "Элементов свечения"
L["Glow Offset"] = "Отступ свечения"
L["Categories"] = "Категории"
--AFK
L["You Are Away From Keyboard for"] = "Вы отошли на"
......
......@@ -82,6 +82,16 @@ P.sle.Armory.Character = {
size = 12,
outline = "NONE",
},
statFonts = {
font = "PT Sans Narrow",
size = 12,
outline = "NONE",
},
catFonts = {
font = "PT Sans Narrow",
size = 12,
outline = "NONE",
},
List = {
--General
HEALTH = false,
......
......@@ -360,6 +360,7 @@ function CA:PaperDollFrame_UpdateStats()
local statYOffset = 0;
_G["CharacterStatsPane"].ItemLevelCategory:Show();
_G["CharacterStatsPane"].ItemLevelCategory.Title:FontTemplate(E.LSM:Fetch('font', E.db.sle.Armory.Character.Stats.catFonts.font), E.db.sle.Armory.Character.Stats.catFonts.size, E.db.sle.Armory.Character.Stats.catFonts.outline)
_G["CharacterStatsPane"].ItemLevelFrame:Show();
local spec = T.GetSpecialization();
......@@ -376,6 +377,7 @@ function CA:PaperDollFrame_UpdateStats()
for catIndex = 1, #PAPERDOLL_STATCATEGORIES do
local catFrame = _G["CharacterStatsPane"][PAPERDOLL_STATCATEGORIES[catIndex].categoryFrame];
catFrame.Title:FontTemplate(E.LSM:Fetch('font', E.db.sle.Armory.Character.Stats.catFonts.font), E.db.sle.Armory.Character.Stats.catFonts.size, E.db.sle.Armory.Character.Stats.catFonts.outline)
local numStatInCat = 0;
for statIndex = 1, #PAPERDOLL_STATCATEGORIES[catIndex].stats do
local stat = PAPERDOLL_STATCATEGORIES[catIndex].stats[statIndex];
......@@ -410,8 +412,8 @@ function CA:PaperDollFrame_UpdateStats()
if ( showStat ) then
statFrame.onEnterFunc = nil;
PAPERDOLL_STATINFO[stat.stat].updateFunc(statFrame, "player");
statFrame.Label:FontTemplate(E.LSM:Fetch('font', E.db.sle.Armory.Character.Stats.ItemLevel.font), 12, E.db.sle.Armory.Character.Stats.ItemLevel.outline)
statFrame.Value:FontTemplate(E.LSM:Fetch('font', E.db.sle.Armory.Character.Stats.ItemLevel.font), 12, E.db.sle.Armory.Character.Stats.ItemLevel.outline)
statFrame.Label:FontTemplate(E.LSM:Fetch('font', E.db.sle.Armory.Character.Stats.statFonts.font), E.db.sle.Armory.Character.Stats.statFonts.size, E.db.sle.Armory.Character.Stats.statFonts.outline)
statFrame.Value:FontTemplate(E.LSM:Fetch('font', E.db.sle.Armory.Character.Stats.statFonts.font), E.db.sle.Armory.Character.Stats.statFonts.size, E.db.sle.Armory.Character.Stats.statFonts.outline)
if ( not stat.hideAt or stat.hideAt ~= statFrame.numericValue ) then
if ( numStatInCat == 0 ) then
if ( lastAnchor ) then
......
......@@ -308,40 +308,10 @@ local function LoadArmoryConfigTable()
PaperDollFrame_UpdateStats()
end,
},
IlvlFont = {
type = 'group',
name = L["Fonts"],
order = 4,
guiInline = true,
get = function(info) return E.db.sle.Armory.Character.Stats.ItemLevel[ info[#info] ] end,
set = function(info, value) E.db.sle.Armory.Character.Stats.ItemLevel[ info[#info] ] = value; _G["CharacterArmory"]:UpdateIlvlFont() end,
args = {
font = {
type = 'select', dialogControl = 'LSM30_Font',
name = L["Font"],
order = 1,
values = function()
return AceGUIWidgetLSMlists and AceGUIWidgetLSMlists.font or {}
end,
},
size = {
type = 'range',
name = L["Font Size"],
order = 2,
min = 6,max = 22,step = 1,
},
outline = {
type = 'select',
name = L["Font Outline"],
order = 3,
values = FontStyleList,
},
},
},
},
},
Attributes = {
order = 3,
order = 10,
type = "group",
name = STAT_CATEGORY_ATTRIBUTES,
guiInline = true,
......@@ -355,7 +325,7 @@ local function LoadArmoryConfigTable()
},
},
Attack = {
order = 4,
order = 11,
type = "group",
name = STAT_CATEGORY_ATTACK,
guiInline = true,
......@@ -373,7 +343,7 @@ local function LoadArmoryConfigTable()
},
},
Enhancements = {
order = 5,
order = 12,
type = "group",
name = STAT_CATEGORY_ENHANCEMENTS,
guiInline = true,
......@@ -388,7 +358,7 @@ local function LoadArmoryConfigTable()
},
},
Defence = {
order = 6,
order = 13,
type = "group",
name = DEFENSE,
guiInline = true,
......@@ -405,6 +375,104 @@ local function LoadArmoryConfigTable()
},
},
},
Fonts = {
type = "group",
name = STAT_CATEGORY_ATTRIBUTES..": "..L["Fonts"],
-- guiInline = true,
order = 3,
args = {
IlvlFont = {
type = 'group',
name = STAT_AVERAGE_ITEM_LEVEL,
order = 1,
guiInline = true,
get = function(info) return E.db.sle.Armory.Character.Stats.ItemLevel[ info[#info] ] end,
set = function(info, value) E.db.sle.Armory.Character.Stats.ItemLevel[ info[#info] ] = value; _G["CharacterArmory"]:UpdateIlvlFont() end,
args = {
font = {
type = 'select', dialogControl = 'LSM30_Font',
name = L["Font"],
order = 1,
values = function()
return AceGUIWidgetLSMlists and AceGUIWidgetLSMlists.font or {}
end,
},
size = {
type = 'range',
name = L["Font Size"],
order = 2,
min = 6,max = 22,step = 1,
},
outline = {
type = 'select',
name = L["Font Outline"],
order = 3,
values = FontStyleList,
},
},
},
statFonts = {
type = 'group',
name = STAT_CATEGORY_ATTRIBUTES,
order = 2,
guiInline = true,
get = function(info) return E.db.sle.Armory.Character.Stats.statFonts[ info[#info] ] end,
set = function(info, value) E.db.sle.Armory.Character.Stats.statFonts[ info[#info] ] = value; _G["CharacterArmory"]:PaperDollFrame_UpdateStats() end,
args = {
font = {
type = 'select', dialogControl = 'LSM30_Font',
name = L["Font"],
order = 1,
values = function()
return AceGUIWidgetLSMlists and AceGUIWidgetLSMlists.font or {}
end,
},
size = {
type = 'range',
name = L["Font Size"],
order = 2,
min = 6,max = 22,step = 1,
},
outline = {
type = 'select',
name = L["Font Outline"],
order = 3,
values = FontStyleList,
},
},
},
catFonts = {
type = 'group',
name = L["Categories"],
order = 3,
guiInline = true,
get = function(info) return E.db.sle.Armory.Character.Stats.catFonts[ info[#info] ] end,
set = function(info, value) E.db.sle.Armory.Character.Stats.catFonts[ info[#info] ] = value; _G["CharacterArmory"]:PaperDollFrame_UpdateStats() end,
args = {
font = {
type = 'select', dialogControl = 'LSM30_Font',
name = L["Font"],
order = 1,
values = function()
return AceGUIWidgetLSMlists and AceGUIWidgetLSMlists.font or {}
end,
},
size = {
type = 'range',
name = L["Font Size"],
order = 2,
min = 6,max = 22,step = 1,
},
outline = {
type = 'select',
name = L["Font Outline"],
order = 3,
values = FontStyleList,
},
},
},
},
},
Backdrop = {
type = 'group',
name = L["Backdrop"],
......
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