Thread Tools Display Modes
Prev Previous Post   Next Post Next
09-15-23, 11:41 PM   #1
Sashapty
A Defias Bandit
Join Date: May 2023
Posts: 3
reduce player name size

Hello, I'm using the addon from this post https://www.wowinterface.com/forums/...ad.php?t=59179
it still works, but I started getting LUA errors. Please help me to fix this/
the addon itself:
Code:
local function SizeName(self) 
    local font, size = self.name:GetFont() 
    self.name:SetFont(font, size-1) 
end 
SizeName(PlayerFrame) 
SizeName(TargetFrame) 
SizeName(TargetFrameToT)
SizeName(FocusFrame)
for i=1, 4 do 
    SizeName(_G["PartyMemberFrame"..i]) 
end
and LUA error that I get:
Code:
Message: Interface/AddOns/FlickNameSize/core.lua:2: attempt to index local 'self' (a nil value)
Time: Sat Sep 16 08:36:27 2023
Count: 1
Stack: Interface/AddOns/FlickNameSize/core.lua:2: attempt to index local 'self' (a nil value)
[string "@Interface/AddOns/FlickNameSize/core.lua"]:2: in function `SizeName'
[string "@Interface/AddOns/FlickNameSize/core.lua"]:10: in main chunk

Locals: self = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'self' (a nil value)"
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » reduce player name size

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off