518 {
520 TextWidget temp_top = TextWidget.Cast(
m_Notifiers.FindAnyWidget(
"TemperatureValueTop" ) );
521 TextWidget temp_bot = TextWidget.Cast(
m_Notifiers.FindAnyWidget(
"TemperatureValueBottom" ) );
522
523 float alpha = w.GetAlpha();
524
525 if ( tendency < 0 )
526 {
527 temp_top.Show( true );
528 temp_bot.Show( false );
529 }
530 else
531 {
532 temp_top.Show( false );
533 temp_bot.Show( true );
534 }
535
536 switch( status )
537 {
538 case 2:
539 w.SetColor(
ARGB( alpha * 255, 220, 220, 0 ) );
541 w.SetImage( 1 );
542
543 break;
544 case 3:
545 w.SetColor(
ARGB( alpha * 255, 220, 0, 0 ) );
547 w.SetImage( 0 );
548 break;
549 case 4:
551 {
553 }
554 w.SetImage( 0 );
555 break;
556 case 5:
557 w.SetColor(
ARGB( alpha * 255, 0, 206, 209 ) );
559 w.SetImage( 3 );
560 break;
561 case 6:
562 w.SetColor(
ARGB( alpha * 255, 30, 144, 220 ) );
564 w.SetImage( 4 );
565 break;
566 case 7:
568 {
570 }
571 w.SetImage( 4 );
572 break;
573 default:
574 w.SetColor(
ARGB( alpha * 255, 220, 220, 220 ) );
576 w.SetImage( 2 );
577 break;
578 }
579 }
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)