Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-12-19, 01:22 PM   #1
Reetro
A Murloc Raider
Join Date: Oct 2019
Posts: 4
Adding Font Options to my addon

Hello so for the past few days I've been trying to figure how to add font options to my World Of Warcraft addon BetterAuraTracker Classic. Currently I've gotten it setup to be able to change fonts now am trying to figure how to setup my options menu. I got a Drop menu setup how do I populate it with it with fonts?

Here is the code for my dropdown menu

BetterAuraTrackerPanel.BuffFontOptionsPanel.BuffFontDrop = CreateFrame("frame", "BuffFontDrop", BetterAuraTrackerPanel.BuffFontOptionsPanel, "UIDropDownMenuTemplate")
BetterAuraTrackerPanel.BuffFontOptionsPanel.BuffFontDrop:SetPoint("TOPLEFT", 0, -65)
BetterAuraTrackerPanel.BuffFontOptionsPanel.BuffFontDrop.onClick = function(self, arg1, arg2, checked)
print(UIDropDownMenu_GetText(self), UIDROPDOWNMENU_MENU_VALUE, arg1, arg2)
end
BetterAuraTrackerPanel.BuffFontOptionsPanel.BuffFontDrop.initialize = function(self, level)
local info = UIDropDownMenu_CreateInfo()

end
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Adding Font Options to my addon


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