Skip to content

Commit

Permalink
( not good
Browse files Browse the repository at this point in the history
  • Loading branch information
RedthMC committed Nov 7, 2023
1 parent c7eda89 commit 3b50dd7
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ open class CleanButton(
j = 16777120
}
j
}
},
) :
GuiButton(buttonId, x.invoke(), 0, widthIn, heightIn, name) {

Expand Down Expand Up @@ -68,7 +68,7 @@ open class CleanButton(
yPosition,
xPosition + width,
yPosition + height,
(if (hovered) ChattingConfig.chatButtonHoveredBackgroundColor else ChattingConfig.chatButtonBackgroundColor).rgb
getBackgroundColor(hovered)
)
}
mouseDragged(mc, mouseX, mouseY)
Expand Down Expand Up @@ -97,6 +97,7 @@ open class CleanButton(
}
}

companion object {
}
private fun getBackgroundColor(hovered: Boolean) =
if (hovered) ChattingConfig.chatButtonHoveredBackgroundColor.rgb
else ChattingConfig.chatButtonBackgroundColor.rgb
}

0 comments on commit 3b50dd7

Please sign in to comment.