More restyling
This commit is contained in:
parent
8da464dcd2
commit
cdbaf7db93
2 changed files with 40 additions and 12 deletions
6
UI.lua
6
UI.lua
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue