More restyling

This commit is contained in:
Gonçalo Correia 2026-05-15 13:42:08 +01:00
parent 8da464dcd2
commit cdbaf7db93
2 changed files with 40 additions and 12 deletions

6
UI.lua
View file

@ -514,11 +514,9 @@ function AltSystem:CreateMainFrame()
yPos = yPos - ROW_HEIGHT - SECTION_GAP
-- Roll button
local rollBtn = CreateFrame("Button", "AltSystemRollBtn", content, "UIPanelButtonTemplate")
rollBtn:SetSize(CONTROLS_WIDTH - PADDING * 2, 32)
rollBtn:SetPoint("TOPLEFT", content, "TOPLEFT", PADDING, yPos)
local rollLabel = AltSystem.State.rollType == "attack" and "Roll Attack" or "Roll Defense"
rollBtn:SetText(rollLabel)
local rollBtn = AltSystem.CreateFlatButton("AltSystemRollBtn", content, CONTROLS_WIDTH - PADDING * 2, 32, rollLabel)
rollBtn:SetPoint("TOPLEFT", content, "TOPLEFT", PADDING, yPos)
rollBtn:SetScript("OnClick", function()
AltSystem:PerformRoll(AltSystem.State.rollType)