View Single Post
03-29-23, 12:25 AM   #2
Platine
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 72
Here's the code snippet I'm having problems with:
Code:
      for _,GTxtframe in GossipFrame.GreetingPanel.ScrollBox:EnumerateFrames() do
         if (GTxtframe.GreetingText) then    -- Greeting Text
            GTxtframe.GreetingText:SetText(Greeting_PL);
            GTxtframe.GreetingText:SetFont(QTR_Font2, 13);
         elseif (GTxtframe.GetElementData().buttonType==3) then   -- Options
            GTxtframe:SetText(GS_Gossip[OptHash]);
            GTxtframe:SetFont(QTR_Font2, 13);     -- ERROR: attempt to call method "SetFont" (a nill value)
         end
      end
It's similar here:
Code:
      for GText in QuestFrameGreetingPanel.titleButtonPool:EnumerateActive() do
           GText:SetText(prefix .. GS_Gossip[TitleHash] .. sufix);
           GText:SetFont(QTR_Font2, 13);        -- ERROR: attempt to call method "SetFont" (a nill value)
      end

Last edited by Platine : 03-29-23 at 03:55 AM.
  Reply With Quote