Skip to content

Commit 3eb2f4d

Browse files
authored
Hide text when there is textureIcon
Signed-off-by: GitHub <noreply@github.com>
1 parent 4cbb9f0 commit 3eb2f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/Slot.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ local function SlotButton(props: {
2020
TextStrokeTransparency = constants.theme.textStrokeTransparency,
2121
Font = constants.theme.font,
2222
BackgroundTransparency = if props.locked then 0 else constants.theme.backgroundTransparency,
23-
Text = props.toolName or "",
23+
Text = if props.textureIcon then "" else props.toolName or "",
2424
Size = UDim2.new(0, 60, 0, 60),
2525
TextScaled = true,
2626
[React.Event.Activated] = props.onActivated,

0 commit comments

Comments
 (0)