Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 33 additions & 2 deletions EllesmereUIQoL/EUI_QoL_RaidTools_Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ initFrame:SetScript("OnEvent", function(self)
local kbRow
kbRow, h = W:DualRow(parent, y,
{ type = "dropdown", text = "Show Raid Tools",
tooltip = "A raid control panel with ready check, pull timer and raid markers.",
tooltip = "A raid control panel with ready check, pull timer and raid markers. In a raid it only shows while you are the leader or an assistant, since none of its buttons work without that; in a party it always shows.",
values = { never = "Never", raid = "In Raid Group",
group = "In Any Group", always = "Always" },
order = { "never", "raid", "group", "always" },
Expand Down Expand Up @@ -274,12 +274,43 @@ initFrame:SetScript("OnEvent", function(self)
{ type = "label", text = "" }
); y = y - h

-- GROUP BUTTONS
--
-- One switch per optional action. Ready Check has none: it is the
-- reason the panel exists. Turning a button off closes the gap it
-- leaves -- the survivors re-flow across the rows.
_, h = W:SectionHeader(parent, "GROUP BUTTONS", y); y = y - h

local function ButtonToggle(key, text, tooltip)
return { type = "toggle", text = text, tooltip = tooltip,
disabled = Disabled,
getValue = function() return Cfg(key) ~= false end,
setValue = function(v)
Set(key, v)
Refresh()
end }
end

_, h = W:DualRow(parent, y,
ButtonToggle("showRoleCheck", "Show Role Check",
"Shows the Role Check button. Turn it off and the remaining buttons close the gap."),
ButtonToggle("showConvert", "Show Convert to Raid",
"Shows the Convert to Raid button, which reads Convert to Party while you are in a raid.")
); y = y - h
_, h = W:DualRow(parent, y,
ButtonToggle("showDisband", "Show Disband",
"Shows the Disband button. It always asks before disbanding, but hiding it puts it out of misclick range for good."),
{ type = "spacer" }
); y = y - h

-- PULL TIMER
_, h = W:SectionHeader(parent, "PULL TIMER", y); y = y - h

local PULL_LABELS = { "First Timer", "Second Timer", "Third Timer" }
local PULL_TIP = "Countdown length of this pull button, in seconds. Set it to 0 to hide the button; with all three at 0 the whole pull row disappears, Stop included."
local function PullSlider(i)
return { type="slider", text=PULL_LABELS[i], min=1, max=60, step=1,
return { type="slider", text=PULL_LABELS[i], min=0, max=60, step=1,
tooltip=PULL_TIP,
disabled=Disabled,
getValue=function() return PullGet(i) end,
setValue=function(v) PullSet(i, v) end }
Expand Down
Loading
Loading