diff --git a/es-core/src/components/RatingComponent.cpp b/es-core/src/components/RatingComponent.cpp index b7e865d65..a7e001a08 100644 --- a/es-core/src/components/RatingComponent.cpp +++ b/es-core/src/components/RatingComponent.cpp @@ -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; diff --git a/es-core/src/components/RatingComponent.h b/es-core/src/components/RatingComponent.h index 61c038973..a8efac586 100644 --- a/es-core/src/components/RatingComponent.h +++ b/es-core/src/components/RatingComponent.h @@ -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;