Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Initialization.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local VERSION_TEXT = "1.9.2 e";
local VERSION_DATE = 1780400000;
local VERSION_TEXT = "1.9.2 f";
local VERSION_DATE = 1781900000;


local addonName, addon = ...
Expand Down
36 changes: 30 additions & 6 deletions Modules/ControlCenter/Changelog/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,36 @@ local changelogs = addon.ControlCenter.changelogs;


changelogs[10902] = {
{
type = "date",
versionText = "1.9.2 f",
timestamp = 1781900000,
},

{
type = "p",
bullet = true,
text = "The Omnium Folio section in Plumber's Expansion Summary UI now stands out more when when you have unselected traits.",
},

{
type = "p",
bullet = true,
text = "Reverted a recent change to text outline rendering method due to compatibility issues.",
},
{
type = "p",
bullet = 2,
text = "Note: While the switch to Slug rendering provided sharper outlines, it caused rendering problems with certain fonts.",
},

{
type = "br",
},
{
type = "br",
},

{
type = "date",
versionText = "1.9.2 d-e",
Expand Down Expand Up @@ -134,12 +164,6 @@ changelogs[10902] = {
text = "Expansion Summary UI: Added Nebulous Voidcore (bonus rolls) to the resource list.",
},

{
type = "p",
bullet = true,
text = "Text Outline: Implemented Slug text rendering for certain Plumber fonts, which improves legibility and sharpness when text is displayed at smaller scales.",
},

{
type = "br",
},
Expand Down
51 changes: 41 additions & 10 deletions Modules/ExpansionLandingPage/Retail/TraitFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ do
if info and info.quantity > 0 then
local flags, type, currencyTypesID, icon = C_Traits.GetTraitCurrencyInfo(info.traitCurrencyID);
self.HeaderFrame:DisplayTraitCurrency(icon, info.quantity);
MainFrame.BlackOverlay:Show();
self:ShowBlackScreen(true);
return true;
else
MainFrame.BlackOverlay:Hide();
self:ShowBlackScreen(false);
return false;
end
else
MainFrame.BlackOverlay:Hide();
self:ShowBlackScreen(false);
return false;
end
end
Expand Down Expand Up @@ -171,6 +171,44 @@ do
end
self:ShowHeaderFrame(anyShown);
end

function TraitFrameMixin:ShowBlackScreen(state)
if state then
if not self.BlackOverlay then
local offset = 8;
local alpha = 0.8;

self.BlackOverlay = CreateFrame("Frame", nil, self);
self.BlackOverlay:SetUsingParentLevel(true);

local function CreateOverlay(container)
local overlay = self.BlackOverlay:CreateTexture(nil, "BACKGROUND");
overlay:SetColorTexture(0, 0, 0, alpha);
overlay:SetPoint("TOPLEFT", container, "TOPLEFT", offset, -offset);
overlay:SetPoint("BOTTOMRIGHT", container, "BOTTOMRIGHT", -offset, offset);
return overlay;
end

local overlay1 = CreateOverlay(PlumberExpansionLandingPage.LeftSection);
local overlay2 = CreateOverlay(PlumberExpansionLandingPage.RightSection);

local BackgroundGlow = self.BlackOverlay:CreateTexture(nil, "BACKGROUND", nil, 1);
BackgroundGlow:SetSize(256, 256);
BackgroundGlow:SetPoint("CENTER", self, "CENTER", 0, 0);
BackgroundGlow:SetTexture("Interface/AddOns/Plumber/Art/ExpansionLandingPage/ExpansionLandingPage-BackgroundGlow");
BackgroundGlow:SetBlendMode("ADD");
local shrink = 48;
BackgroundGlow:SetTexCoord(shrink/256, 1-shrink/256, shrink/256, 1-shrink/256);
BackgroundGlow:SetVertexColor(60/255, 35/255, 20/255);
end

self.BlackOverlay:Show();
else
if self.BlackOverlay then
self.BlackOverlay:Hide();
end
end
end
end

local HeaderFrameMixin = {};
Expand Down Expand Up @@ -405,13 +443,6 @@ function LandingPageUtil.CreateTraitFrame(parent)
HeaderFrame:SetScript("OnLeave", HeaderFrame.OnLeave);
HeaderFrame:SetScript("OnClick", HeaderFrame.OnClick);

local container = PlumberExpansionLandingPage.LeftSection;
f.BlackOverlay = f:CreateTexture(nil, "BACKGROUND");
f.BlackOverlay:Hide();
f.BlackOverlay:SetColorTexture(0, 0, 0, 0.8);
f.BlackOverlay:SetPoint("TOPLEFT", container, "TOPLEFT", 8, -8);
f.BlackOverlay:SetPoint("BOTTOMRIGHT", container, "BOTTOMRIGHT", -8, 8);

return f, height
end

Expand Down
2 changes: 1 addition & 1 deletion Modules/LootUI_Main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ do
end

local fontObject = PlumberLootUIFont;
local fontFlag = "SLUGOUTLINE";
local fontFlag = "OUTLINE";
fontObject:SetFont(fontFile, Round(fontSize), fontFlag);
fontObject:SetShadowOffset(0, 0);

Expand Down
2 changes: 1 addition & 1 deletion Modules/NameplateQuestIndicator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ do --Options
local fontFile, fontHeight = GameFontNormalSmall:GetFont();
local nameplateFont = PlumberFont_Nameplate_Small;
if Def.TextOutline then
nameplateFont:SetFont(fontFile, fontHeight, "SLUGOUTLINE");
nameplateFont:SetFont(fontFile, fontHeight, "OUTLINE");
else
nameplateFont:SetFont(fontFile, fontHeight, "");
end
Expand Down
2 changes: 1 addition & 1 deletion Modules/RaidCheck/DifficultySelector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local DummyFrame; --Edit Mode: For Reposition

local function SetupFont(fontString, fontHeight)
local font = GameFontNormal:GetFont();
fontString:SetFont(font, fontHeight or 14, "SLUGOUTLINE");
fontString:SetFont(font, fontHeight or 14, "OUTLINE");
end


Expand Down
4 changes: 2 additions & 2 deletions Modules/SoftTargetName.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ do --Display
function Display:UpdateFonts()
local file, height, flags = _G[Settings.fontObject]:GetFont();
if Settings.textOutline then
flags = "SLUGOUTLINE";
flags = "OUTLINE";
else
flags = "";
end
Expand Down Expand Up @@ -116,7 +116,7 @@ do --Display
self.Title = Display:CreateFontString(nil, "OVERLAY", Settings.fontObject);
self.Title:SetPoint("TOP", self, "TOP", 0, 0);
local file, height, flags = _G[Settings.fontObject]:GetFont();
self.Title:SetFont(file, height, "SLUGOUTLINE");
self.Title:SetFont(file, height, "OUTLINE");
self.Title:SetShadowOffset(0, 0);
end

Expand Down
2 changes: 1 addition & 1 deletion Plumber.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## X-Flavor: retail
## X-Expansion: TWW
## Interface: 120005, 120007
## Interface: 120007, 120100
## Version: 1.9.2

## Title: Plumber
Expand Down