View Single Post
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