example code 1
local panel = ascendify.panel({
name = "Test Addon", -- Name of the panel
size = UDim2.new(0, 300, 0, 200), -- Size of the panel
position = UDim2.new(0, 360, 0, 300), -- Where the panel is created
no_dock = true,
})
local column = ascendify.column(panel.items) -- Creates a colnum
local section = ascendify.section(column, { name = "Test" }) -- Creates the section on the colnum
section:button_holder({}) -- (Must be needed to create buttons)
ascendify.button(section,{
name = "Test",
callback = function()
print("test button")
end
})
-- [ Below you must always use so you will be able to Unload addon ] --
ascendify.on_unload(function()
if panel and panel.items and panel.items.sgui then
panel.items.sgui:Destroy()
end
end)Last updated