487 {
488 ImageWidget w;
490
491 if( w )
492 {
493 w.SetImage( Math.Clamp( status - 1, 0, 4 ) );
494 float alpha = w.GetAlpha();
495
496 switch( status )
497 {
498 case 3:
499 w.SetColor(
ARGB( alpha * 255, 220, 220, 0 ) );
501 break;
502 case 4:
503 w.SetColor(
ARGB( alpha * 255, 220, 0, 0 ) );
505 break;
506 case 5:
508 {
510 }
511 break;
512 default:
513 w.SetColor(
ARGB( alpha * 255, 220, 220, 220 ) );
515 break;
516 }
517 }
518 }
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)