Added dimming support to RatingComponent.

This commit is contained in:
Leon Styhre 2022-03-21 20:35:24 +01:00
parent 9396577c89
commit 5625f44a0a
2 changed files with 8 additions and 0 deletions

View file

@ -91,6 +91,13 @@ void RatingComponent::setOpacity(float opacity)
updateColors();
}
void RatingComponent::setDimming(float dimming)
{
mDimming = dimming;
mVertices[0].dimming = mDimming;
mVertices[4].dimming = mDimming;
}
void RatingComponent::setColorShift(unsigned int color)
{
mColorShift = color;

View file

@ -33,6 +33,7 @@ public:
void onSizeChanged() override;
void setOpacity(float opacity) override;
void setDimming(float dimming) override;
// Multiply all pixels in the image by this color when rendering.
void setColorShift(unsigned int color) override;