protected function OverrideColors() { if (!is_null($this->m_CustomLightColor)) { $this->BackColor = $this->m_CustomLightColor; } if (!is_null($this->m_CustomDarkColor)) { switch ($this->m_Coin) { case 0: $this->TextColor = LBD_Color::RandomizedR($this->m_CustomDarkColor, 70); $this->LineColor = LBD_Color::RandomizedR($this->m_CustomDarkColor, 150); break; case 1: $this->TextColor = LBD_Color::RandomizedG($this->m_CustomDarkColor, 70); $this->LineColor = LBD_Color::RandomizedG($this->m_CustomDarkColor, 150); break; case 2: $this->TextColor = LBD_Color::RandomizedB($this->m_CustomDarkColor, 70); $this->LineColor = LBD_Color::RandomizedB($this->m_CustomDarkColor, 150); break; } $this->OutlineColor = $this->TextColor; } }