@@ -289,80 +289,6 @@ local function CreateCooldownTextSettings(containerParent)
289289 return cooldownTextContainer
290290end
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-
366292local 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
0 commit comments