Skip to content

Commit

Permalink
Merge pull request #11 from mrbuds/master
Browse files Browse the repository at this point in the history
Fixes for CB_GameMusic & CB_Laucher
  • Loading branch information
Kiatra authored Aug 31, 2022
2 parents 59095b7 + e0b4a8b commit 2a49590
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Jostle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function Jostle:PlayerFrame_SequenceFinished()
end

local function LockMainMenuBar()
if not InCombatLockdown() and not UnitInVehicle("Player") then
if not InCombatLockdown() and (not ChocolateBar.isClassicWoW and not UnitInVehicle("Player")) then
MainMenuBar:SetMovable(true)
MainMenuBar:SetUserPlaced(true)
ChocolateBar:Debug("LockMainMenuBar")
Expand Down
6 changes: 4 additions & 2 deletions modules/CB_GameMusic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ local debug = ChocolateBar and ChocolateBar.debug or function() end
local GameMusic = {}
local addonName = "CB_Entertainer"

local volumeText = "Master: "..math.floor((_G.GetCVar("Sound_MasterVolume")*100)).."%"

local dataobj = LibStub("LibDataBroker-1.1"):NewDataObject(addonName, {
type = "data source",
--icon = "Interface\\AddOns\\ChocolateBar\\pics\\ChocolatePiece",
label = addonName,
text = "Volume: ---",
text = volumeText,
OnClick = OnClick,
OnMouseWheel = OnMouseWheel,
ChocolateBar = true
Expand All @@ -27,7 +29,7 @@ function dataobj:OnMouseWheel(vector)
vol = vol + step
if vol > 1 then vol = 1 end
if vol < 0 then vol = 0 end
SetCVar(vol, voltypeCVar);
SetCVar(cVar, vol);
dataobj.text = "Master: "..math.floor((_G.GetCVar(cVar)*100)).."%"
end

Expand Down
2 changes: 1 addition & 1 deletion modules/CB_Lauchers_LibQTip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dataobj = ldb:NewDataObject(addonName, {
if button == "RightButton" then
if _G.IsModifierKeyDown() then
mainmenu(self, button, ...)
else
elseif dataobj.OpenOptions then
dataobj:OpenOptions()
end
else
Expand Down

0 comments on commit 2a49590

Please sign in to comment.