diff --git a/libstage/model_lightindicator.cc b/libstage/model_lightindicator.cc index 61316b135..2654baf78 100644 --- a/libstage/model_lightindicator.cc +++ b/libstage/model_lightindicator.cc @@ -16,6 +16,11 @@ void ModelLightIndicator::SetState(bool isOn) m_IsOn = isOn; } +void ModelLightIndicator::SetLightColor(std::string color) +{ + this->SetColor(Color(color)); +} + void ModelLightIndicator::DrawBlocks() { if (m_IsOn) { diff --git a/libstage/stage.hh b/libstage/stage.hh index 92a1d5f9b..4c2135197 100644 --- a/libstage/stage.hh +++ b/libstage/stage.hh @@ -2402,6 +2402,7 @@ public: ~ModelLightIndicator(); void SetState(bool isOn); + void SetLightColor(std::string color); protected: virtual void DrawBlocks();