Skip to content

Commit

Permalink
Fixed incorrectly displayed RGB values in settings on first load
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuJonathan committed Nov 15, 2019
1 parent 75327a6 commit 4d2059c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HealComm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -363,21 +363,21 @@ options:SetScript("OnShow", function(self)
redSlider:SetMinMaxValues(0, 255)
redSlider:SetValueStep(1)
redSlider:SetObeyStepOnDrag(true)
redSlider:SetValue(HealCommSettings.healColor.red)
redSlider:SetValue(HealCommSettings.healColor.red*255)
redSlider:SetPoint("TOPLEFT", colorLabel, "BOTTOMLEFT", 0, -26)

local greenSlider = SliderConstructor("Green", "What color to make the heal bars", function(self, value) HealCommSettings.healColor.green = value/255 end)
greenSlider:SetMinMaxValues(0, 255)
greenSlider:SetValueStep(1)
greenSlider:SetObeyStepOnDrag(true)
greenSlider:SetValue(HealCommSettings.healColor.green)
greenSlider:SetValue(HealCommSettings.healColor.green*255)
greenSlider:SetPoint("TOPLEFT", redSlider, "BOTTOMLEFT", 0, -26)

local blueSlider = SliderConstructor("Blue", "What color to make the heal bars", function(self, value) HealCommSettings.healColor.blue = value/255 end)
blueSlider:SetMinMaxValues(0, 255)
blueSlider:SetValueStep(1)
blueSlider:SetObeyStepOnDrag(true)
blueSlider:SetValue(HealCommSettings.healColor.blue)
blueSlider:SetValue(HealCommSettings.healColor.blue*255)
blueSlider:SetPoint("TOPLEFT", greenSlider, "BOTTOMLEFT", 0, -26)

local alphaSlider = SliderConstructor("Alpha", "What color to make the heal bars", function(self, value) HealCommSettings.healColor.alpha = value/100 end)
Expand Down
Binary file added HealComm.zip
Binary file not shown.

0 comments on commit 4d2059c

Please sign in to comment.