@@ -1791,29 +1791,36 @@ local function CreateSecondaryPowerBarSettings(parentContainer)
17911791 enabledCheckbox :SetLabel (" Enable Power Bar" )
17921792 enabledCheckbox :SetValue (BCDM .db .profile .SecondaryPowerBar .Enabled )
17931793 enabledCheckbox :SetCallback (" OnValueChanged" , function (self , _ , value ) BCDM .db .profile .SecondaryPowerBar .Enabled = value BCDM :UpdateSecondaryPowerBar () RefreshSecondaryPowerBarGUISettings () end )
1794- enabledCheckbox :SetRelativeWidth (isUnitMonkorDeathKnight and 1 or 0.25 )
1794+ enabledCheckbox :SetRelativeWidth (1 )
17951795 toggleContainer :AddChild (enabledCheckbox )
17961796
1797+ local hideTicksCheckBox = AG :Create (" CheckBox" )
1798+ hideTicksCheckBox :SetLabel (" Hide Ticks" )
1799+ hideTicksCheckBox :SetValue (BCDM .db .profile .SecondaryPowerBar .HideTicks )
1800+ hideTicksCheckBox :SetCallback (" OnValueChanged" , function (self , _ , value ) BCDM .db .profile .SecondaryPowerBar .HideTicks = value BCDM :UpdateSecondaryPowerBar () RefreshSecondaryPowerBarGUISettings () end )
1801+ hideTicksCheckBox :SetRelativeWidth (1 )
1802+ toggleContainer :AddChild (hideTicksCheckBox )
1803+
17971804 local colourByTypeCheckbox = AG :Create (" CheckBox" )
17981805 colourByTypeCheckbox :SetLabel (" Colour By Power Type" )
17991806 colourByTypeCheckbox :SetValue (BCDM .db .profile .SecondaryPowerBar .ColourByType )
18001807 colourByTypeCheckbox :SetCallback (" OnValueChanged" , function (self , _ , value ) BCDM .db .profile .SecondaryPowerBar .ColourByType = value BCDM :UpdateSecondaryPowerBar () RefreshSecondaryPowerBarGUISettings () end )
1801- colourByTypeCheckbox :SetRelativeWidth (isUnitDeathKnight and 0.33 or 0.25 )
1808+ colourByTypeCheckbox :SetRelativeWidth (1 )
18021809 toggleContainer :AddChild (colourByTypeCheckbox )
18031810
18041811 local colourByClassCheckbox = AG :Create (" CheckBox" )
18051812 colourByClassCheckbox :SetLabel (" Colour By Class" )
18061813 colourByClassCheckbox :SetValue (BCDM .db .profile .SecondaryPowerBar .ColourByClass )
18071814 colourByClassCheckbox :SetCallback (" OnValueChanged" , function (self , _ , value ) BCDM .db .profile .SecondaryPowerBar .ColourByClass = value BCDM :UpdateSecondaryPowerBar () RefreshSecondaryPowerBarGUISettings () end )
1808- colourByClassCheckbox :SetRelativeWidth (isUnitDeathKnight and 0.33 or 0.25 )
1815+ colourByClassCheckbox :SetRelativeWidth (1 )
18091816 toggleContainer :AddChild (colourByClassCheckbox )
18101817
18111818 if isUnitDeathKnight then
18121819 local colourRunesBySpecCheckbox = AG :Create (" CheckBox" )
18131820 colourRunesBySpecCheckbox :SetLabel (" Colour by Specialization" )
18141821 colourRunesBySpecCheckbox :SetValue (BCDM .db .profile .SecondaryPowerBar .ColourBySpec )
18151822 colourRunesBySpecCheckbox :SetCallback (" OnValueChanged" , function (self , _ , value ) BCDM .db .profile .SecondaryPowerBar .ColourBySpec = value BCDM :UpdateSecondaryPowerBar () RefreshSecondaryPowerBarGUISettings () end )
1816- colourRunesBySpecCheckbox :SetRelativeWidth (0.33 )
1823+ colourRunesBySpecCheckbox :SetRelativeWidth (1 )
18171824 toggleContainer :AddChild (colourRunesBySpecCheckbox )
18181825 end
18191826
@@ -1822,37 +1829,37 @@ local function CreateSecondaryPowerBarSettings(parentContainer)
18221829 colourStaggerByStateCheckbox :SetLabel (" Colour by Stagger" )
18231830 colourStaggerByStateCheckbox :SetValue (BCDM .db .profile .SecondaryPowerBar .ColourByState )
18241831 colourStaggerByStateCheckbox :SetCallback (" OnValueChanged" , function (self , _ , value ) BCDM .db .profile .SecondaryPowerBar .ColourByState = value BCDM :UpdateSecondaryPowerBar () RefreshSecondaryPowerBarGUISettings () end )
1825- colourStaggerByStateCheckbox :SetRelativeWidth (0.25 )
1832+ colourStaggerByStateCheckbox :SetRelativeWidth (1 )
18261833 toggleContainer :AddChild (colourStaggerByStateCheckbox )
18271834
18281835 local showStaggerDPSCheckbox = AG :Create (" CheckBox" )
18291836 showStaggerDPSCheckbox :SetLabel (" Stagger Damage Per Second" )
18301837 showStaggerDPSCheckbox :SetValue (BCDM .db .profile .SecondaryPowerBar .Text .ShowStaggerDPS )
18311838 showStaggerDPSCheckbox :SetCallback (" OnValueChanged" , function (self , _ , value ) BCDM .db .profile .SecondaryPowerBar .Text .ShowStaggerDPS = value BCDM :UpdateSecondaryPowerBar () RefreshSecondaryPowerBarGUISettings () end )
1832- showStaggerDPSCheckbox :SetRelativeWidth (0.25 )
1839+ showStaggerDPSCheckbox :SetRelativeWidth (1 )
18331840 toggleContainer :AddChild (showStaggerDPSCheckbox )
18341841 end
18351842
18361843 local matchAnchorWidthCheckbox = AG :Create (" CheckBox" )
18371844 matchAnchorWidthCheckbox :SetLabel (" Match Width Of Anchor" )
18381845 matchAnchorWidthCheckbox :SetValue (BCDM .db .profile .SecondaryPowerBar .MatchWidthOfAnchor )
18391846 matchAnchorWidthCheckbox :SetCallback (" OnValueChanged" , function (self , _ , value ) BCDM .db .profile .SecondaryPowerBar .MatchWidthOfAnchor = value BCDM :UpdateSecondaryPowerBar () RefreshSecondaryPowerBarGUISettings () end )
1840- matchAnchorWidthCheckbox :SetRelativeWidth (isUnitDeathKnight and 0.33 or 0.25 )
1847+ matchAnchorWidthCheckbox :SetRelativeWidth (1 )
18411848 toggleContainer :AddChild (matchAnchorWidthCheckbox )
18421849
18431850 local foregroundColourPicker = AG :Create (" ColorPicker" )
18441851 foregroundColourPicker :SetLabel (" Foreground Colour" )
18451852 foregroundColourPicker :SetColor (BCDM .db .profile .SecondaryPowerBar .ForegroundColour [1 ], BCDM .db .profile .SecondaryPowerBar .ForegroundColour [2 ], BCDM .db .profile .SecondaryPowerBar .ForegroundColour [3 ], BCDM .db .profile .SecondaryPowerBar .ForegroundColour [4 ])
18461853 foregroundColourPicker :SetCallback (" OnValueChanged" , function (self , _ , r , g , b , a ) BCDM .db .profile .SecondaryPowerBar .ForegroundColour = {r , g , b , a } BCDM :UpdateSecondaryPowerBar () end )
1847- foregroundColourPicker :SetRelativeWidth (0.33 )
1854+ foregroundColourPicker :SetRelativeWidth (0.5 )
18481855 foregroundColourPicker :SetHasAlpha (true )
18491856 toggleContainer :AddChild (foregroundColourPicker )
18501857
18511858 local backgroundColourPicker = AG :Create (" ColorPicker" )
18521859 backgroundColourPicker :SetLabel (" Background Colour" )
18531860 backgroundColourPicker :SetColor (BCDM .db .profile .SecondaryPowerBar .BackgroundColour [1 ], BCDM .db .profile .SecondaryPowerBar .BackgroundColour [2 ], BCDM .db .profile .SecondaryPowerBar .BackgroundColour [3 ], BCDM .db .profile .SecondaryPowerBar .BackgroundColour [4 ])
18541861 backgroundColourPicker :SetCallback (" OnValueChanged" , function (self , _ , r , g , b , a ) BCDM .db .profile .SecondaryPowerBar .BackgroundColour = {r , g , b , a } BCDM :UpdateSecondaryPowerBar () end )
1855- backgroundColourPicker :SetRelativeWidth (0.33 )
1862+ backgroundColourPicker :SetRelativeWidth (0.5 )
18561863 backgroundColourPicker :SetHasAlpha (true )
18571864 toggleContainer :AddChild (backgroundColourPicker )
18581865
0 commit comments