Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i change the font size of debuff on plates? It's too small to me #9

Open
timerainv7 opened this issue Dec 23, 2023 · 1 comment

Comments

@timerainv7
Copy link

timerainv7 commented Dec 23, 2023

hi,
I want to make the number of debuff bigger,but there is no options to change it . how can I change font size? may be in code? But I dont know how to edit code. Please tell me how to do
Thx

@SteffenKoehler
Copy link

SteffenKoehler commented Jun 25, 2024

I am unfortunately not an expert in lua but I think it could be the following place, there the 9 should be the size of the font.
https://github.com/bkader/TidyPlates_WoTLK/blob/main/TidyPlates/widgets/DebuffWidget.lua#L698
Edit: I have tried this and it is the right place. Here I have changed the 9 to a 20.
WoWScrnShot_062524_111050

Personally, I have changed the whole function a little so that the symbols no longer look so pressed but square. Here is the code I use.

local function CreateAuraIconFrame(parent)
	local frame = CreateFrame("Frame", nil, parent)
	frame:SetWidth(25)
	frame:SetHeight(25)
	-- Icon
	frame.Icon = frame:CreateTexture(nil, "BACKGROUND")
	frame.Icon:SetAllPoints(frame)
	frame.Icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
	-- frame.Icon:SetTexCoord(.07, 1 - .07, .23, 1 - .23) -- obj:SetTexCoord(left,right,top,bottom)
	-- Border
	frame.Border = frame:CreateTexture(nil, "ARTWORK")
	frame.Border:SetWidth(32)
	frame.Border:SetHeight(32)
	frame.Border:SetPoint("CENTER", 1, -2)
	frame.Border:SetTexture(AuraBorderArt)
	-- Glow
	frame.Glow = frame:CreateTexture(nil, "ARTWORK")
	frame.Glow:SetAllPoints(frame.Border)
	frame.Glow:SetTexture(AuraGlowArt)
	--  Time Text
	frame.TimeLeft = frame:CreateFontString(nil, "OVERLAY")
	frame.TimeLeft:SetFont(AuraFont, 9, "OUTLINE")
	frame.TimeLeft:SetShadowOffset(1, -1)
	frame.TimeLeft:SetShadowColor(0, 0, 0, 1)
	frame.TimeLeft:SetPoint("RIGHT", 0, 8)
	frame.TimeLeft:SetWidth(25)
	frame.TimeLeft:SetHeight(27)
	frame.TimeLeft:SetJustifyH("RIGHT")
	--  Stacks
	frame.Stacks = frame:CreateFontString(nil, "OVERLAY")
	frame.Stacks:SetFont(AuraFont, 10, "OUTLINE")
	frame.Stacks:SetShadowOffset(1, -1)
	frame.Stacks:SetShadowColor(0, 0, 0, 1)
	frame.Stacks:SetPoint("RIGHT", 0, -6)
	frame.Stacks:SetWidth(25)
	frame.Stacks:SetHeight(27)
	frame.Stacks:SetJustifyH("RIGHT")
	-- Information about the currently displayed aura
	frame.AuraInfo = {Name = "", Icon = "", Stacks = 0, Expiration = 0, Type = ""}
	--frame.Poll = UpdateWidgetTime
	frame.Poll = parent.PollFunction
	frame:Hide()
	return frame
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants