Redesigned dropdowns
This commit is contained in:
parent
9423171d54
commit
cfdef3cc26
2 changed files with 36 additions and 24 deletions
|
|
@ -44,8 +44,9 @@ local function CreateFlatEditBox(name, parent, width)
|
|||
end
|
||||
|
||||
-- ─── Helper: Create a flat dark dropdown button matching the blocky design ──
|
||||
-- Shared globally so other files (UI.lua) can reuse it.
|
||||
|
||||
local function CreateFlatDropdown(name, parent, width)
|
||||
function AltSystem.CreateFlatDropdown(name, parent, width)
|
||||
local btn = CreateFrame("Button", name, parent, "BackdropTemplate")
|
||||
btn:SetSize(width, 28)
|
||||
btn:SetBackdrop({
|
||||
|
|
@ -107,12 +108,12 @@ local function CreateSkillRowFrame(index)
|
|||
row.nameContainer = nameContainer
|
||||
|
||||
-- Level Dropdown (flat dark style)
|
||||
local levelDropdown = CreateFlatDropdown("AltSystemSkillLevel" .. index, row, LEVEL_WIDTH)
|
||||
local levelDropdown = AltSystem.CreateFlatDropdown("AltSystemSkillLevel" .. index, row, LEVEL_WIDTH)
|
||||
levelDropdown:SetPoint("LEFT", nameContainer, "RIGHT", 12, 0)
|
||||
row.levelDropdown = levelDropdown
|
||||
|
||||
-- Value Dropdown (flat dark style)
|
||||
local valueDropdown = CreateFlatDropdown("AltSystemSkillValue" .. index, row, VALUE_WIDTH)
|
||||
local valueDropdown = AltSystem.CreateFlatDropdown("AltSystemSkillValue" .. index, row, VALUE_WIDTH)
|
||||
valueDropdown:SetPoint("LEFT", levelDropdown, "RIGHT", 8, 0)
|
||||
row.valueDropdown = valueDropdown
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue