tedfroop wrote: 
> 
> There is something else I have been thinking about for a while.  When
> the Golden Knights play the Blackhawks the string gets long enough it
> cuts off sometimes, not to mention that when there is a full schedule it
> takes a while to scroll all the games.  Is there a way to modify the
> team display names on my plugin so I can shorten them?

The following section of code can be updated to shorten the NHL team
names. It is basically orphaned code since the new data source does not
select teams by city name. If you provide me with the recommended
shortened NHL team names I will update this section and include it in
the next release.


Code:
--------------------
    
  sub shortenNHL {
  my $long = shift;
  
  if ($long =~ m/^Vancouver/) { $long = 'Canucks';}
  elsif ($long=~ m/^Edmonton/) { $long = 'Oilers';}
  elsif ($long =~ m/^New Jersey/) { $long = 'Devils';}
  elsif ($long =~ m/^NY Rangers/) { $long = 'Rangers';}
  elsif ($long =~ m/^Philadelphia/) { $long = 'Flyers';}
  elsif ($long =~ m/^NY Islanders/) { $long = 'Islanders';}
  elsif ($long =~ m/^Pittsburgh/) { $long = 'Penguins';}
  #elsif ($long =~ m/^Montreal/) { $long = 'Canadiens';}
  #elsif ($long =~ m/^Ottawa/) { $long = 'Senators';}
  elsif ($long =~ m/^Buffalo/) { $long = 'Sabres';}
  elsif ($long =~ m/^Boston/) { $long = 'Bruins';}
  #elsif ($long =~ m/^Toronto/) { $long = 'Maple Leafs';}
  #elsif ($long =~ m/^Florida/) { $long = 'Panthers';}
  #elsif ($long =~ m/^Atlanta/) { $long = 'Thrashers';}
  #elsif ($long =~ m/^Tampa Bay/) { $long = 'Lightning';}
  elsif ($long =~ m/^Washington/) { $long = 'Capitals';}
  #elsif ($long =~ m/^Carolina/) { $long = 'Hurricanes';}
  #elsif ($long =~ m/^Detroit/) { $long = 'Red Wings';}
  #elsif ($long =~ m/^Nashville/) { $long = 'Predators';}
  #elsif ($long =~ m/^Chicago/) { $long = 'Black Hawks';}
  #elsif ($long =~ m/^Columbus/) { $long = 'Blue Jackets';}
  elsif ($long =~ m/^St. Louis/) { $long = 'Blues';}
  elsif ($long =~ m/^Minnesota/) { $long = 'Wild';}
  #elsif ($long =~ m/^Colorado/) { $long = 'Avalanche';}
  elsif ($long =~ m/^Calgary/) { $long = 'Flames';}
  elsif ($long =~ m/^Anaheim/) { $long = 'Ducks';}
  elsif ($long =~ m/^Dallas/) { $long = 'Stars';}
  elsif ($long =~ m/^Los Angeles/) { $long = 'Kings';}
  elsif ($long =~ m/^San Jose/) { $long = 'Sharks';}
  #elsif ($long =~ m/^Phoenix/) { $long = 'Coyotes';}
  
  return $long;
  }
  
--------------------


------------------------------------------------------------------------
BoomX2's Profile: http://forums.slimdevices.com/member.php?userid=33529
View this thread: http://forums.slimdevices.com/showthread.php?t=112122

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to