fontString:SetFont()
I have an object from game to which I assign text:
Code:
object:SetText("my text") Code:
object:SetFont(My_Font, size) Quote:
Code:
for _,GTxtframe in GossipFrame.GreetingPanel.ScrollBox:EnumerateFrames() do |
Here's the code snippet I'm having problems with:
Code:
for _,GTxtframe in GossipFrame.GreetingPanel.ScrollBox:EnumerateFrames() do Code:
for GText in QuestFrameGreetingPanel.titleButtonPool:EnumerateActive() do |
That's because the widget type you're "getting" is a Button. Buttons don't have a SetText or Setfont method by default but in some case they are "given" a SetText method to update a FontString they have also been given.
Lua Code:
You can Code:
Button:SetText("Something") Code:
Button:SetFont(SomeFont) Code:
Button.Text:SetFont(SomeFont) |
Taking a look at the templates you could probably use:
Lua Code:
|
Yes, yes. I searched for this FontString object by different names e.g. .Text, .text, .title etc. But nothing matched. But regions, it's the perfect method. I didn't come up with it before.
Your code works perfectly. Thank you Fizzlemizz for your help. |
Quote:
Code:
<ButtonText> |
All times are GMT -6. The time now is 06:36 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI