Skip to content
This repository was archived by the owner on Aug 20, 2024. It is now read-only.

Commit 447cd45

Browse files
committed
Fixed hover bugs and polished script.
1 parent 1e0f37a commit 447cd45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/SignsInternal/StudioWidgets/LabeledButton.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
--
33
-- LabeledSelection.lua
44
--
5+
-- Creates a labeled selection with a set amount of options.
6+
--
57
----------------------------------------
68
local GuiUtilities = require(script.Parent.GuiUtilities)
79

@@ -28,6 +30,7 @@ LabeledButtonClass.__index = LabeledButtonClass
2830

2931
LabeledButtonClass.kMinFrameSize = UDim2.new(0, kMinLabelWidth + kMinMargin + kMinButtonWidth, 0, kMinHeight)
3032

33+
-- Creates a new LabeledButtonClass.
3134
function LabeledButtonClass.new(nameSuffix, labelText, value, disabled)
3235
local self = {}
3336
setmetatable(self, LabeledButtonClass)
@@ -124,7 +127,7 @@ end
124127

125128
-- Too buggy with other GuiObjects to be used.
126129
function LabeledButtonClass:_updateCheckboxVisual()
127-
if self._clicked then
130+
if self._value then
128131
self._button.BackgroundColor3 = kButtonPressedBackgroundColor
129132
elseif self._hovered then
130133
self._button.BackgroundColor3 = kButtonHoverBackgroundColor

0 commit comments

Comments
 (0)