Skip to content

Commit

Permalink
adds support to hide castbar
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoc-pires committed Apr 25, 2024
1 parent 434453c commit c500145
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion Conceal/Conceal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ local defaults = {
experienceConcealDuringCombat = false,
focusFrame = false,
focusFrameConcealDuringCombat = false,
castBar = false;
}
}

Expand Down Expand Up @@ -488,6 +489,16 @@ local options = {
width = 1.5,
disabled = false,
},
castBar = {
order = 13.11,
name = "Conceal Castbar",
desc = "Hides the Castbar using the defined Alpha.",
type = "toggle",
get = "GetStatus",
set = "SetStatus",
width = 1.5,
disabled = false,
}
}
}

Expand Down Expand Up @@ -522,7 +533,7 @@ function Conceal:OnInitialize()
Conceal:loadConfig()
Conceal:HideGcdFlash()
QueueStatusButton:SetParent(UIParent);
C_Timer.NewTicker(0.10, function()
C_Timer.NewTicker(1.0, function()
Conceal:ShowMouseOverElements()
Conceal:RefreshGUI()
end)
Expand Down Expand Up @@ -842,6 +853,8 @@ function Conceal:RefreshGUI()
else
Conceal:HideElements()
end
if self.db.profile["castBar"] then PlayerCastingBarFrame:UnregisterAllEvents()
else PlayerCastingBarFrame:RegisterAllEvents() end
end

function Conceal:GetStatus(info)
Expand Down
4 changes: 2 additions & 2 deletions Conceal/Conceal.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Interface: 100100
## Interface: 100206
## Title: Conceal
## Author: Keirmot
## Notes: Hide the player frame, and action bars when not in use!
## Version: 1.5.1
## Version: 1.6.0

## SavedVariables: ConcealDB

Expand Down
Binary file added Releases/Conceal-v1-6-0.zip
Binary file not shown.

0 comments on commit c500145

Please sign in to comment.