Is there a way to increase the size of the messages “You are facing the wrong direction” and “You have no target”? They are hard to see in raid when the entire screen is full of spell effects.
There is a way, because I am able to change it with the ‘Error Text’ setting in ElvUI. I’m not sure how without an Add-on, but Fizzlemizz might come along and provide a script that can.
I’m sure Fizzlemize has a script. But I did find this snippet that works. She probably has a better way.
for i = 1, 7 do
local Player = _G["ErrorFont"..i]
local font, size = ErrorFont:GetFont()
ErrorFont:SetFont("Fonts\\ARIALN.TTF",40,"OUTLINE")
end
or:
/run local font, size, flags = UIErrorsFrame:GetFont() UIErrorsFrame:SetFont(font, size + 4, flags)
Preserves the current font, increase the size (+4 here) to whatever you want.
Thanks, I dropped the /run and made it into an addon. Is there a similar line of code that can change the Zone Text and clock size on the minimap?
/fstack is your friend ![]()
/run local font, size, flags = MinimapZoneText:GetFont() MinimapZoneText:SetFont(font, size + 4, flags)
/run local font, size, flags = TimeManagerClockTicker:GetFont() TimeManagerClockTicker:SetFont(font, size + 4, flags)
ZoneText works, no luck with TimeManagerClockTicker or TimeManagerClockButton.
Here is my code:
local font, size, flags = UIErrorsFrame:GetFont() UIErrorsFrame:SetFont(font, size + 12, flags)
local font, size, flags = MinimapZoneText:GetFont() MinimapZoneText:SetFont(font, size + 4, flags)
local font, size, flags = TimeManagerClockTicker:GetFont() TimeManagerClockTicker:SetFont(font, size + 4, flags)
local font, size, flags = TimeManagerClockButton:GetFont() TimeManagerClockButton:SetFont(font, size + 4, flags)
The TimeManagerClockTicker isn’t available when addons are initaliiy loaded:
local font, size, flags = UIErrorsFrame:GetFont() UIErrorsFrame:SetFont(font, size + 12, flags)
local font, size, flags = MinimapZoneText:GetFont() MinimapZoneText:SetFont(font, size + 4, flags)
local owner = {}
EventRegistry:RegisterFrameEvent("PLAYER_LOGIN")
EventRegistry:RegisterCallback("PLAYER_LOGIN", function()
local font, size, flags = TimeManagerClockTicker:GetFont() TimeManagerClockTicker:SetFont(font, size + 4, flags)
end, owner)
Plus the ClockButton doen’t have a GetFont method so that will have to change.
As always, thank you.