484 {
485 ImageWidget w;
487
488 if( w )
489 {
490 w.SetImage( Math.Clamp( status - 1, 0, 4 ) );
491 float alpha = w.GetAlpha();
492
493 switch( status )
494 {
495 case 3:
496 w.SetColor(
ARGB( alpha * 255, 220, 220, 0 ) );
498 break;
499 case 4:
500 w.SetColor(
ARGB( alpha * 255, 220, 0, 0 ) );
502 break;
503 case 5:
505 {
507 }
508 break;
509 default:
510 w.SetColor(
ARGB( alpha * 255, 220, 220, 220 ) );
512 break;
513 }
514 }
515 }
ref map< ImageWidget, int > m_TendencyStatusCritical
ref map< int, string > m_StatesWidgetNames
string String(string s)
Helper for passing string expression to functions with void parameter. Example: Print(String("Hello "...
int ARGB(int a, int r, int g, int b)