Permalink
Browse files

Add a "reset" button for each side.

  • Loading branch information...
1 parent 2ca583a commit da7f8c2715541f7c5688d28836e8e149601a8ce5 @minter committed Jan 21, 2005
Showing with 4 additions and 0 deletions.
  1. +4 −0 plugins/scoreboard.pl
View
4 plugins/scoreboard.pl
@@ -72,6 +72,8 @@ sub scoreboard_plugin
->pack( -side => 'left' );
$vis_minus->Button( -text => '-10', -command => sub { $vis_score -= 10 } )
->pack( -side => 'left' );
+ $vis_side->Button( -text => 'Reset', -command => sub { $vis_score = 0 } )
+ ->pack( -side => 'top', -pady => '5' );
$home_side->Label( -text => 'Home' )->pack( -side => 'top' );
$home_side->Label(
@@ -95,6 +97,8 @@ sub scoreboard_plugin
-text => '-10',
-command => sub { $home_score -= 10 }
)->pack( -side => 'left' );
+ $home_side->Button( -text => 'Reset', -command => sub { $home_score = 0 } )
+ ->pack( -side => 'top', -pady => '5' );
$scoreboard->update();
$scoreboard->deiconify();

0 comments on commit da7f8c2

Please sign in to comment.