Add an option to make Omen click-through (non-interactive), defaults off.
This commit is contained in:
@@ -54,6 +54,8 @@ However, player pets on |cffffff78Passive|r mode do not have a threat table, and
|
|||||||
|
|
||||||
When a player pet is instructed to |cffffff78Follow|r, the pet's threat table is wiped immediately and stops attacking, although it may immediately reacquire a target based on its Aggressive/Defensive mode.
|
When a player pet is instructed to |cffffff78Follow|r, the pet's threat table is wiped immediately and stops attacking, although it may immediately reacquire a target based on its Aggressive/Defensive mode.
|
||||||
]]
|
]]
|
||||||
|
L["Click Through"] = true
|
||||||
|
L["Makes the Omen window non-interactive"] = true
|
||||||
L["Autocollapse"] = true
|
L["Autocollapse"] = true
|
||||||
L["Autocollapse Options"] = true
|
L["Autocollapse Options"] = true
|
||||||
L["Grow bars upwards"] = true
|
L["Grow bars upwards"] = true
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ local defaults = {
|
|||||||
IgnorePlayerPets = true,
|
IgnorePlayerPets = true,
|
||||||
FrameStrata = "3-MEDIUM",
|
FrameStrata = "3-MEDIUM",
|
||||||
ClampToScreen = true,
|
ClampToScreen = true,
|
||||||
|
ClickThrough = false,
|
||||||
Background = {
|
Background = {
|
||||||
Texture = "Blizzard Parchment",
|
Texture = "Blizzard Parchment",
|
||||||
BorderTexture = "Blizzard Dialog",
|
BorderTexture = "Blizzard Dialog",
|
||||||
@@ -496,6 +497,7 @@ function Omen:PLAYER_LOGIN()
|
|||||||
self:UpdateBackdrop()
|
self:UpdateBackdrop()
|
||||||
self:UpdateTitleBar()
|
self:UpdateTitleBar()
|
||||||
self:UpdateGrips()
|
self:UpdateGrips()
|
||||||
|
self:UpdateClickThrough()
|
||||||
self:UpdateRaidClassColors()
|
self:UpdateRaidClassColors()
|
||||||
self:ClearAll()
|
self:ClearAll()
|
||||||
self:UnregisterEvent("PLAYER_LOGIN")
|
self:UnregisterEvent("PLAYER_LOGIN")
|
||||||
@@ -633,6 +635,8 @@ function Omen:OnProfileChanged(event, database, newProfileKey)
|
|||||||
self:ReAnchorLabels()
|
self:ReAnchorLabels()
|
||||||
self:UpdateBarLabelSettings()
|
self:UpdateBarLabelSettings()
|
||||||
self:UpdateBarTextureSettings()
|
self:UpdateBarTextureSettings()
|
||||||
|
self:UpdateClickThrough()
|
||||||
|
self:UpdateRaidClassColors()
|
||||||
self:UpdateFuBarSettings()
|
self:UpdateFuBarSettings()
|
||||||
-- These remainder settings were not placed in functions
|
-- These remainder settings were not placed in functions
|
||||||
-- and were just updated directly from the config code.
|
-- and were just updated directly from the config code.
|
||||||
@@ -1201,6 +1205,11 @@ function Omen:UpdateBarTextureSettings()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Omen:UpdateClickThrough()
|
||||||
|
self.Title:EnableMouse(not db.ClickThrough)
|
||||||
|
self.BarList:EnableMouse(not db.ClickThrough)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- Omen event functions
|
-- Omen event functions
|
||||||
@@ -2095,6 +2104,16 @@ Omen.Options = {
|
|||||||
Omen:UpdateBars()
|
Omen:UpdateBars()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
ClickThrough = {
|
||||||
|
type = "toggle",
|
||||||
|
name = L["Click Through"],
|
||||||
|
desc = L["Makes the Omen window non-interactive"],
|
||||||
|
order = 12,
|
||||||
|
set = function(info, value)
|
||||||
|
db.ClickThrough = value
|
||||||
|
Omen:UpdateClickThrough()
|
||||||
|
end,
|
||||||
|
},
|
||||||
AutocollapseGroup = {
|
AutocollapseGroup = {
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["Autocollapse Options"],
|
name = L["Autocollapse Options"],
|
||||||
|
|||||||
Reference in New Issue
Block a user