Quantcast

Added fonts options and stuff. This closes #352

Darth Predator [02-19-17 - 22:32]
Added fonts options and stuff. This closes #352
Filename
CHANGELOG.txt
ElvUI_SLE/core/media.lua
ElvUI_SLE/defaults/profile.lua
ElvUI_SLE/locales/english.lua
ElvUI_SLE/locales/russian.lua
ElvUI_SLE/options/media_c.lua
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 0fdd150..f77f723 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,6 +1,7 @@
 v3.19
 Additions:
 - Added an option for player frame to show pvp text on the prestige icon
+- Added font options for banners' title text (e.g. world quest title)
 Fixes:
 - Fied primary stat missing from the list on character screen
 - Fixed altoholic button not moving to button bar
diff --git a/ElvUI_SLE/core/media.lua b/ElvUI_SLE/core/media.lua
index 3b9de64..38fa2bd 100644
--- a/ElvUI_SLE/core/media.lua
+++ b/ElvUI_SLE/core/media.lua
@@ -47,7 +47,9 @@ function M:SetBlizzFonts()
 		_G["SendMailBodyEditBox"]:SetFont(E.LSM:Fetch('font', db.mail.font), db.mail.size, db.mail.outline) --Writing letter text
 		_G["OpenMailBodyText"]:SetFont(E.LSM:Fetch('font', db.mail.font), db.mail.size, db.mail.outline) --Received letter text
 		_G["QuestFont"]:SetFont(E.LSM:Fetch('font', db.gossip.font), db.gossip.size, db.gossip.outline) -- Font in Quest Log/Petitions and shit. It's fucking hedious with any outline so fuck it.
-		--QuestFont_Large:SetFont(E.LSM:Fetch('font', "Homespun"), 12, "") -- No idea what that is for
+		-- _G["QuestFont_Large"]:SetFont(E.LSM:Fetch('font', db.questFontLarge.font), db.questFontLarge.size, db.questFontLarge.outline) -- No idea what that is for
+		_G["QuestFont_Super_Huge"]:SetFont(E.LSM:Fetch('font', db.questFontSuperHuge.font), db.questFontSuperHuge.size, db.questFontSuperHuge.outline) -- No idea what that is for
+		_G["QuestFont_Enormous"]:SetFont(E.LSM:Fetch('font', db.questFontSuperHuge.font), db.questFontSuperHuge.size, db.questFontSuperHuge.outline) -- No idea what that is for
 		_G["NumberFont_Shadow_Med"]:SetFont(E.LSM:Fetch('font', db.editbox.font), db.editbox.size, db.editbox.outline) --Chat editbox
 		--Objective Frame
 		if not SLE._Compatibility["ElvUI_MerathilisUI"] or (SLE._Compatibility["ElvUI_MerathilisUI"] and not E.private.muiSkins.blizzard.objectivetracker) then
diff --git a/ElvUI_SLE/defaults/profile.lua b/ElvUI_SLE/defaults/profile.lua
index 6ba6339..c1dfa52 100644
--- a/ElvUI_SLE/defaults/profile.lua
+++ b/ElvUI_SLE/defaults/profile.lua
@@ -460,6 +460,11 @@ P["sle"] = {
 				["size"] = 12,
 				["outline"] = "NONE",
 			},
+			["questFontSuperHuge"] = {
+				["font"] = "PT Sans Narrow",
+				["size"] = 24,
+				["outline"] = "NONE",
+			},
 		},
 	},
 	--Minimap Module
diff --git a/ElvUI_SLE/locales/english.lua b/ElvUI_SLE/locales/english.lua
index 0f96eb8..a3695cd 100644
--- a/ElvUI_SLE/locales/english.lua
+++ b/ElvUI_SLE/locales/english.lua
@@ -550,6 +550,7 @@ L["Misc Texts"] = true
 L["Mail Text"] = true
 L["Chat Editbox Text"] = true
 L["Gossip and Quest Frames Text"] = true
+L["Banner Big Text"] = true

 --Minimap
 L["Minimap Options"] = true
diff --git a/ElvUI_SLE/locales/russian.lua b/ElvUI_SLE/locales/russian.lua
index 0e275f4..cc1f1ca 100644
--- a/ElvUI_SLE/locales/russian.lua
+++ b/ElvUI_SLE/locales/russian.lua
@@ -505,6 +505,11 @@ L["SLE_MEDIA_ZONES"] = {
 	"Деревня Гадюкино",
 	"Нижние Балбуки",
 	"Светлое Будущее",
+	"Народные Гуляния",
+	"Аляска",
+	"Акихабара",
+	"Звезда Смерти",
+	"Храм НОД",
 }
 L["SLE_MEDIA_PVP"] = {
 	"(Территория Орды)",
@@ -512,13 +517,18 @@ L["SLE_MEDIA_PVP"] = {
 	"(Спорная территори)",
 	"(Территория пришельцев)",
 	"(Курилка)",
-	"(Зана отдыха)",
+	"(Зона отдыха)",
+	"(Стоянка мамонтов)",
 }
 L["SLE_MEDIA_SUBZONES"] = {
 	"Администрация",
 	"Склад водки",
 	"Пожарный выход",
 	"Кабинет директора",
+	"Пельменная",
+	"Интернет кафе",
+	"Балкон",
+	"Регистратура",
 }
 L["SLE_MEDIA_PVPARENA"] = {
 	"(PvP)",
@@ -526,6 +536,8 @@ L["SLE_MEDIA_PVPARENA"] = {
 	"Самый низки наалог на доходы",
 	"Свободная зона",
 	"Идет самоуничтожение",
+	"Все по 40 рублей!",
+	"Ня!",
 }
 L["SLE_MEDIA"] = "Опции для изменения внешнего вида некоторых элементов интерфейса."
 L["Zone Text"] = "Текст локации"
@@ -535,6 +547,7 @@ L["Misc Texts"] = "Прочие тексты"
 L["Mail Text"] = "Текст письма"
 L["Chat Editbox Text"] = "Текст поля ввода"
 L["Gossip and Quest Frames Text"] = "Текст окон заданий и диалогов"
+L["Banner Big Text"] = "Большой текст баннеров"

 --Minimap
 L["Minimap Options"] = "Опции миникарты"
diff --git a/ElvUI_SLE/options/media_c.lua b/ElvUI_SLE/options/media_c.lua
index afd5665..8869605 100644
--- a/ElvUI_SLE/options/media_c.lua
+++ b/ElvUI_SLE/options/media_c.lua
@@ -363,6 +363,43 @@ local function configTable()
 							},
 						},
 					},
+					questFontSuperHuge = {
+						type = "group",
+						name = L["Banner Big Text"],
+						order = 5,
+						guiInline = true,
+						disabled = function() return not E.private.general.replaceBlizzFonts end,
+						get = function(info) return E.db.sle.media.fonts.questFontSuperHuge[ info[#info] ] end,
+						set = function(info, value) E.db.sle.media.fonts.questFontSuperHuge[ info[#info] ] = value; E:UpdateMedia() end,
+						args = {
+							font = {
+								type = "select", dialogControl = 'LSM30_Font',
+								order = 1,
+								name = L["Font"],
+								desc = "The font used for chat editbox",
+								values = AceGUIWidgetLSMlists.font,
+							},
+							size = {
+								order = 2,
+								name = L["Font Size"],
+								type = "range",
+								min = 6, max = 48, step = 1,
+							},
+							outline = {
+								order = 3,
+								name = L["Font Outline"],
+								desc = L["Set the font outline."],
+								type = "select",
+								values = {
+									["NONE"] = L["None"],
+									["OUTLINE"] = 'OUTLINE',
+
+									["MONOCHROMEOUTLINE"] = 'MONOCROMEOUTLINE',
+									["THICKOUTLINE"] = 'THICKOUTLINE',
+								},
+							},
+						},
+					},
 				},
 			},
 		},