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