Obey custom plot colors.

This commit is contained in:
Bartosz Taudul 2022-07-24 13:43:03 +02:00
parent b026e09a09
commit b782b021c7
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -39,6 +39,7 @@ uint32_t View::GetPlotColor( const PlotData* plot ) const
switch( plot->type )
{
case PlotType::User:
if( plot->color != 0 ) return plot->color | 0xFF000000;
return GetHsvColor( charutil::hash( m_worker.GetString( plot->name ) ), -10 );
case PlotType::Memory:
return 0xFF2266CC;