View Single Post
03-29-23, 11:42 AM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
Taking a look at the templates you could probably use:
Lua Code:
  1. for _,GTxtframe in GossipFrame.GreetingPanel.ScrollBox:EnumerateFrames() do
  2.     if (GTxtframe.GreetingText) then    -- Greeting Text
  3.         GTxtframe.GreetingText:SetText(Greeting_PL);
  4.         GTxtframe.GreetingText:SetFont(QTR_Font2, 13);
  5.     elseif (GTxtframe.GetElementData().buttonType==GOSSIP_BUTTON_TYPE_OPTION) then   -- Options
  6.         GTxtframe:SetText(GS_Gossip[OptHash]);
  7.         local regions = { GTxtframe:GetRegions() }
  8.         for k, v in pairs(regions) do
  9.             if v:GetObjectType() == "FontString" then
  10.                 v:SetFont(QTR_Font2, 13)
  11.             end
  12.         end
  13.     end
  14. end
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 03-29-23 at 11:45 AM.
  Reply With Quote