Skip to content
This repository has been archived by the owner on Dec 20, 2020. It is now read-only.

Commit

Permalink
Add a "reset" button for each side.
Browse files Browse the repository at this point in the history
  • Loading branch information
minter committed Jan 21, 2005
1 parent 76200c1 commit 6491beb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/scoreboard.pl
Expand Up @@ -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(
Expand All @@ -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();
Expand Down

0 comments on commit 6491beb

Please sign in to comment.