Skip to content

Commit 6d87101

Browse files
committed
strip out keybinds
1 parent 2fe28ef commit 6d87101

File tree

7 files changed

+0
-746
lines changed

7 files changed

+0
-746
lines changed

Core/Core.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,4 @@ function BetterCooldownManager:OnEnable()
2727
BCDM:SetupCustomItemsSpellsBar()
2828
BCDM:CreateCooldownViewerOverlays()
2929
BCDM:SetupEditModeManager()
30-
BCDM.Keybinds:Initialize()
3130
end

Core/Defaults.lua

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,6 @@ local Defaults = {
103103
Layout = {"CENTER", "CENTER", 0, 0},
104104
ScaleByIconSize = false
105105
},
106-
Keybinds = {
107-
Enabled = false,
108-
AnchorFrom = "CENTER",
109-
AnchorTo = "CENTER",
110-
FontSize = 14,
111-
OffsetX = 0,
112-
OffsetY = 0,
113-
},
114106
},
115107
Essential = {
116108
IconSize = 42,

Core/GUI.lua

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -289,80 +289,6 @@ local function CreateCooldownTextSettings(containerParent)
289289
return cooldownTextContainer
290290
end
291291

292-
local function CreateKeybindSettings(containerParent)
293-
local GeneralDB = BCDM.db.profile.General
294-
local KeybindDB = BCDM.db.profile.CooldownManager.General.Keybinds
295-
296-
local keybindContainer = AG:Create("InlineGroup")
297-
keybindContainer:SetTitle("Keybind Settings")
298-
keybindContainer:SetFullWidth(true)
299-
keybindContainer:SetLayout("Flow")
300-
containerParent:AddChild(keybindContainer)
301-
302-
local enableKeybindCheckbox = AG:Create("CheckBox")
303-
enableKeybindCheckbox:SetLabel("Enable Keybinds")
304-
enableKeybindCheckbox:SetValue(KeybindDB.Enabled)
305-
enableKeybindCheckbox:SetCallback("OnValueChanged", function(_, _, value)
306-
KeybindDB.Enabled = value
307-
BCDM.Keybinds:OnSettingChanged()
308-
RefreshKeybindSettings()
309-
end)
310-
enableKeybindCheckbox:SetRelativeWidth(1)
311-
keybindContainer:AddChild(enableKeybindCheckbox)
312-
313-
local anchorFromDropdown = AG:Create("Dropdown")
314-
anchorFromDropdown:SetLabel("Anchor From")
315-
anchorFromDropdown:SetList(AnchorPoints[1], AnchorPoints[2])
316-
anchorFromDropdown:SetValue(KeybindDB.AnchorFrom)
317-
anchorFromDropdown:SetCallback("OnValueChanged", function(_, _, value) KeybindDB.AnchorFrom = value BCDM.Keybinds:UpdateAllKeybinds() end)
318-
anchorFromDropdown:SetRelativeWidth(0.5)
319-
keybindContainer:AddChild(anchorFromDropdown)
320-
321-
local anchorToDropdown = AG:Create("Dropdown")
322-
anchorToDropdown:SetLabel("Anchor To")
323-
anchorToDropdown:SetList(AnchorPoints[1], AnchorPoints[2])
324-
anchorToDropdown:SetValue(KeybindDB.AnchorTo)
325-
anchorToDropdown:SetCallback("OnValueChanged", function(_, _, value) KeybindDB.Anchor = value BCDM.Keybinds:UpdateAllKeybinds() end)
326-
anchorToDropdown:SetRelativeWidth(0.5)
327-
keybindContainer:AddChild(anchorToDropdown)
328-
329-
local xOffsetSlider = AG:Create("Slider")
330-
xOffsetSlider:SetLabel("Offset X")
331-
xOffsetSlider:SetValue(KeybindDB.OffsetX)
332-
xOffsetSlider:SetSliderValues(-330, 50, 1)
333-
xOffsetSlider:SetCallback("OnValueChanged", function(_, _, value) KeybindDB.OffsetX = value BCDM.Keybinds:UpdateAllKeybinds() end)
334-
xOffsetSlider:SetRelativeWidth(0.33)
335-
keybindContainer:AddChild(xOffsetSlider)
336-
337-
local yOffsetSlider = AG:Create("Slider")
338-
yOffsetSlider:SetLabel("Offset Y")
339-
yOffsetSlider:SetValue(KeybindDB.OffsetY)
340-
yOffsetSlider:SetSliderValues(-50, 50, 1)
341-
yOffsetSlider:SetCallback("OnValueChanged", function(_, _, value) KeybindDB.OffsetY = value BCDM.Keybinds:UpdateAllKeybinds() end)
342-
yOffsetSlider:SetRelativeWidth(0.33)
343-
keybindContainer:AddChild(yOffsetSlider)
344-
345-
local fontSizeSlider = AG:Create("Slider")
346-
fontSizeSlider:SetLabel("Font Size")
347-
fontSizeSlider:SetValue(KeybindDB.FontSize)
348-
fontSizeSlider:SetSliderValues(8, 32, 1)
349-
fontSizeSlider:SetCallback("OnValueChanged", function(_, _, value) KeybindDB.FontSize = value BCDM.Keybinds:UpdateAllKeybinds() end)
350-
fontSizeSlider:SetRelativeWidth(0.33)
351-
keybindContainer:AddChild(fontSizeSlider)
352-
353-
function RefreshKeybindSettings()
354-
local enabled = KeybindDB.Enabled
355-
anchorFromDropdown:SetDisabled(not enabled)
356-
fontSizeSlider:SetDisabled(not enabled)
357-
xOffsetSlider:SetDisabled(not enabled)
358-
yOffsetSlider:SetDisabled(not enabled)
359-
end
360-
361-
RefreshKeybindSettings()
362-
363-
return keybindContainer
364-
end
365-
366292
local function CreateGeneralSettings(parentContainer)
367293
local GeneralDB = BCDM.db.profile.General
368294
local CooldownManagerDB = BCDM.db.profile.CooldownManager
@@ -729,8 +655,6 @@ local function CreateGlobalSettings(parentContainer)
729655

730656
CreateCooldownTextSettings(globalSettingsContainer)
731657

732-
CreateKeybindSettings(globalSettingsContainer)
733-
734658
ScrollFrame:DoLayout()
735659

736660
return parentContainer

Core/Globals.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ function BCDM:UpdateBCDM()
158158
BCDM:UpdateCustomItemBar()
159159
BCDM:UpdateCustomItemsSpellsBar()
160160
BCDM:UpdateTrinketBar()
161-
BCDM:UpdateKeybinds()
162161
end
163162

164163
function BCDM:CreateCooldownViewerOverlays()

Modules/CooldownManager.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,6 @@ function BCDM:UpdateCooldownViewer(viewerType)
387387

388388
ApplyCooldownText(BCDM.DBViewerToCooldownManagerViewer[viewerType])
389389

390-
BCDM.Keybinds:UpdateViewerKeybinds(BCDM.DBViewerToCooldownManagerViewer[viewerType])
391-
392390
BCDM:UpdatePowerBarWidth()
393391
BCDM:UpdateSecondaryPowerBarWidth()
394392
BCDM:UpdateCastBarWidth()

Modules/Init.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlGUIS:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">
22
<Script file="CastBar.lua"/>
33
<Script file="CooldownManager.lua"/>
4-
<Script file="Keybinds.lua"/>
54
<Script file="Data.lua"/>
65
<Script file="AdditionalCustomCooldownViewer.lua"/>
76
<Script file="CustomCooldownViewer.lua"/>

0 commit comments

Comments
 (0)