Hello!
I am working on a project for my guild regarding an assist addon!
I have created a panel inside "interface -> Addons , called myAddon" so interface -> addons -> myAddon
Current code for the panel
Lua Code:
myAddon = {};
myAddon.panel = CreateFrame( "Frame", "myAddonPanel", UIParent);
myAddon.panel.name = "HelyaAssist";
InterfaceOptions_AddCategory(myAddon.panel);
I cant rap my head around how to make a button inside that panel. I already have the code for the button. But i do not know how i can make a button that would be inside that panel i have created!
I want to make a enable and disable button for my assist addon.
Current code for the button , this code will just make a button right on the center of the screen (not in the panel). But how can i make it go inside the panel on interface -> addons -> myAddon
Lua Code:
--Create the button (enable)
mybutton1 = CreateFrame("Button","mybutton", UIParent, "UIPanelButtonTemplate")
mybutton1:SetPoint("CENTER",0,0)
mybutton1:SetWidth(80)
mybutton1:SetHeight(22)
mybutton1:SetText("Enabled")
Best regards!