ui elements

how to use basic ui elements to create a panel where you will have your toggles, buttons sliders, dropdowns etc.

Creating a Panel

local panel = ascendify.panel({
	name = "Test Addon", -- Name of the panel.
	size = UDim2.new(0, 300, 0, 200),
	position = UDim2.new(0, 360, 0, 300),
	no_dock = true, -- Would always keep true so you won't see it glitched out on the top.
})
--[[
name            String   Name of the panel
size            UDim2    Size of the panel
position        UDim2    Position of the panel on screen
anchor_point    Vector2 Anchor point of the panel
image           String   Image asset used for the panel header
no_dock         Boolean  Prevents the panel from docking to the top bar
]]

Creating a column & section

local column = ascendify.column(panel.items) -- Must connect the column to the panel you created
local section = ascendify.section(column, { name = "Test" }) -- This shows the section where you will make buttons, toggles, sliders etc.

local first_section, second_section = ascendify.multi_section(column, { -- This make a MultiS section where you can add stuff to both sections
	names = { "Test1", "Test2" }
})

Creating a Button

Creating a Slider

Creating a Dropdown

Creating an Input

Creating a Key Picker, Toggle & Color Picker

Last updated