ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/kgsueme/kgsueme/game.pl
(Generate patch)

Comparing kgsueme/kgsueme/game.pl (file contents):
Revision 1.116 by root, Tue Jun 1 13:34:40 2004 UTC vs.
Revision 1.133 by root, Sun Jun 6 07:55:06 2004 UTC

146 ]; 146 ];
147 147
148sub INIT_INSTANCE { 148sub INIT_INSTANCE {
149 my ($self) = @_; 149 my ($self) = @_;
150 150
151 $self->add ($self->{window} = my $window = new Gtk2::EventBox); # for bg
152
151 $self->add (my $vbox = new Gtk2::VBox); 153 $window->add (my $vbox = new Gtk2::VBox);
152 154
153 $vbox->pack_start (($self->{name} = new Gtk2::Label "-"), 1, 1, 0); 155 $vbox->pack_start (($self->{name} = new Gtk2::Label "-"), 1, 1, 0);
154 $vbox->pack_start (($self->{info} = new Gtk2::Label "-"), 1, 1, 0); 156 $vbox->pack_start (($self->{info} = new Gtk2::Label "-"), 1, 1, 0);
155 $vbox->pack_start (($self->{clock} = new game::goclock), 1, 1, 0); 157 $vbox->pack_start (($self->{clock} = new game::goclock), 1, 1, 0);
156 158
157 $vbox->add ($self->{imagebox} = new Gtk2::VBox); 159 $vbox->add ($self->{imagebox} = new Gtk2::VBox);
158 160
159 $self; 161 $self;
160} 162}
161 163
164sub SET_PROPERTY {
165 my ($self, $pspec, $value) = @_;
166
167 $self->{$pspec->get_name} = $value;
168
169 $self->set_name ("userpanel-$self->{colour}");
170}
171
162sub configure { 172sub configure {
163 my ($self, $app, $user, $rules) = @_; 173 my ($self, $app, $user, $rules) = @_;
164 174
165 if ($self->{name}->get_text ne $user->as_string) { 175 if ($self->{name}->get_text ne $user->as_string) {
166 $self->{name}->set_text ($user->as_string); 176 $self->{name}->set_text ($user->as_string);
167 177
168 $self->{imagebox}->remove ($_) for $self->{imagebox}->get_children; 178 $self->{imagebox}->remove ($_) for $self->{imagebox}->get_children;
179 unless ($::config{suppress_userpic}) {
169 $self->{imagebox}->add (gtk::image_from_data undef); 180 $self->{imagebox}->add (gtk::image_from_data undef);
181 }
170 $self->{imagebox}->show_all; 182 $self->{imagebox}->show_all;
171 183
172 if ($user->has_pic) { 184 if ($user->has_pic) {
173 # the big picture... 185 # the big picture...
174 $app->userpic ($user->{name}, sub { 186 $app->userpic ($user->{name}, sub {
175 return unless $self->{imagebox}; 187 return unless $self->{imagebox};
176 188
177 if ($_[0]) { 189 if ($_[0]) {
178 $self->{imagebox}->remove ($_) for $self->{imagebox}->get_children; 190 $self->{imagebox}->remove ($_) for $self->{imagebox}->get_children;
191 unless ($::config{suppress_userpic}) {
179 $self->{imagebox}->add (gtk::image_from_data $_[0]); 192 $self->{imagebox}->add (gtk::image_from_data $_[0]);
193 }
180 $self->{imagebox}->show_all; 194 $self->{imagebox}->show_all;
181 } 195 }
182 }); 196 });
183 } 197 }
184 } 198 }
218 232
219use POSIX qw(ceil); 233use POSIX qw(ceil);
220 234
221sub new { 235sub new {
222 my ($self, %arg) = @_; 236 my ($self, %arg) = @_;
237
223 $self = $self->Glib::Object::new; 238 $self = $self->Glib::Object::new;
224 $self->{$_} = delete $arg{$_} for keys %arg; 239 $self->{$_} = delete $arg{$_} for keys %arg;
225 240
226 gtk::state $self, "game::window", undef, window_size => [600, 500]; 241 gtk::state $self, "game::window", undef, window_size => [620, 460];
242 $self->set (allow_shrink => 1);
227 243
228 $self->signal_connect (destroy => sub { 244 $self->signal_connect (destroy => sub {
229 $self->unlisten; 245 $self->unlisten;
230 delete $self->{app}{game}{$self->{channel}}; 246 delete $self->{app}{game}{$self->{channel}};
231 %{$_[0]} = (); 247 %{$_[0]} = ();
232 });#d# 248 });#d#
233 249
234 $self->add (my $hpane = new Gtk2::HPaned); 250 $self->add (my $hpane = new Gtk2::HPaned);
235 gtk::state $hpane, "game::hpane", undef, position => 500; 251 gtk::state $hpane, "game::hpane", undef, position => 420;
236 252
237 # LEFT PANE 253 # LEFT PANE
238 254
239 $hpane->pack1 (($self->{left} = new Gtk2::VBox), 1, 0); 255 $hpane->pack1 (($self->{left} = new Gtk2::VBox), 1, 0);
240 256
275 for COLOUR_WHITE, COLOUR_BLACK; 291 for COLOUR_WHITE, COLOUR_BLACK;
276 292
277 $vbox->pack_start ((my $buttonbox = new Gtk2::HButtonBox), 0, 1, 0); 293 $vbox->pack_start ((my $buttonbox = new Gtk2::HButtonBox), 0, 1, 0);
278 294
279 $buttonbox->add ($self->{button_pass} = 295 $buttonbox->add ($self->{button_pass} =
280 Gtk2::Button->Glib::Object::new (label => "Pass", no_show_all => 1, visible => 0)); 296 Gtk2::Button->Glib::Object::new (label => "Pass", visible => 0));
281 $self->{button_pass}->signal_connect (clicked => sub { 297 $self->{button_pass}->signal_connect (clicked => sub {
282 $self->{board_click}->(255, 255) if $self->{board_click}; 298 $self->{board_click}->(255, 255) if $self->{board_click};
283 }); 299 });
300 eval { $self->{button_pass}->set (no_show_all => 1) }; # workaround for gtk+-2.2
284 $buttonbox->add ($self->{button_undo} = 301 $buttonbox->add ($self->{button_undo} =
285 Gtk2::Button->Glib::Object::new (label => "Undo", no_show_all => 1, visible => 0)); 302 Gtk2::Button->Glib::Object::new (label => "Undo", visible => 0));
286 $self->{button_undo}->signal_connect (clicked => sub { 303 $self->{button_undo}->signal_connect (clicked => sub {
287 $self->send (req_undo => channel => $self->{channel}); 304 $self->send (req_undo => channel => $self->{channel});
288 }); 305 });
306 eval { $self->{button_undo}->set (no_show_all => 1) }; # workaround for gtk+-2.2
289 $buttonbox->add ($self->{button_resign} = 307 $buttonbox->add ($self->{button_resign} =
290 Gtk2::Button->Glib::Object::new (label => "Resign", no_show_all => 1, visible => 0)); 308 Gtk2::Button->Glib::Object::new (label => "Resign", visible => 0));
291 $self->{button_resign}->signal_connect (clicked => sub { 309 $self->{button_resign}->signal_connect (clicked => sub {
292 $self->send (resign_game => channel => $self->{channel}, player => $self->{colour}); 310 $self->send (resign_game => channel => $self->{channel}, player => $self->{colour});
293 }); 311 });
312 eval { $self->{button_resign}->set (no_show_all => 1) }; # workaround for gtk+-2.2
294 313
295 $vbox->pack_start (($self->{chat} = new superchat), 1, 1, 0); 314 $vbox->pack_start (($self->{chat} = new chat), 1, 1, 0);
296 315
297 $self->set_channel ($self->{channel}); 316 $self->set_channel ($self->{channel});
298 317
299 $self->show_all; 318 $self->show_all;
300 319
331 return if $self->{joined}; 350 return if $self->{joined};
332 351
333 $self->SUPER::join; 352 $self->SUPER::join;
334} 353}
335 354
355sub part {
356 my ($self) = @_;
357
358 $self->hide;
359 $self->SUPER::part;
360}
361
336sub event_join { 362sub event_join {
337 my ($self) = @_; 363 my ($self) = @_;
338 364
339 $self->SUPER::event_join (@_); 365 $self->SUPER::event_join (@_);
340 $self->init_tree; 366 $self->init_tree;
379 $important{$self->{black}{name}}++; 405 $important{$self->{black}{name}}++;
380 $important{$self->{white}{name}}++; 406 $important{$self->{white}{name}}++;
381 $important{$self->{owner}{name}}++; 407 $important{$self->{owner}{name}}++;
382 408
383 if (my @users = grep $important{$_->{name}}, @$add) { 409 if (my @users = grep $important{$_->{name}}, @$add) {
384 $self->{chat}->append_text ("\n<header>Joins:</header>"); 410 $self->{chat}->append_text ("\n<leader>Joins:</leader>");
385 $self->{chat}->append_text (" <user>" . $_->as_string . "</user>") for @users; 411 $self->{chat}->append_text (" <user>" . $_->as_string . "</user>") for @users;
386 } 412 }
387 if (my @users = grep $important{$_->{name}}, @$remove) { 413 if (my @users = grep $important{$_->{name}}, @$remove) {
388 $self->{chat}->append_text ("\n<header>Parts:</header>"); 414 $self->{chat}->append_text ("\n<leader>Parts:</leader>");
389 $self->{chat}->append_text (" <user>" . $_->as_string . "</user>") for @users; 415 $self->{chat}->append_text (" <user>" . $_->as_string . "</user>") for @users;
390 } 416 }
391} 417}
392 418
393### GAME INFO ############################################################### 419### GAME INFO ###############################################################
550sub update_cursor { 576sub update_cursor {
551 my ($self) = @_; 577 my ($self) = @_;
552 578
553 return unless $self->{cur_board}; 579 return unless $self->{cur_board};
554 580
581 if ($self->{rules}{ruleset} == RULESET_JAPANESE) {
582 if ($self->{curnode}{move} == 0) {
583 $self->{whosemove} = $self->{handicap} ? COLOUR_WHITE : COLOUR_BLACK;
584 } else {
585 $self->{whosemove} = 1 - $self->{cur_board}{last};
586 }
587 } else {
588 # Chinese, Aga, NZ all have manual placement
589 if ($self->{curnode}{move} < $self->{handicap}) {
590 $self->{whosemove} = COLOUR_BLACK;
591 } elsif ($self->{curnode}{move} == $self->{handicap}) {
592 $self->{whosemove} = $self->{handicap} ? COLOUR_WHITE : COLOUR_BLACK;
593 } else {
594 $self->{whosemove} = 1 - $self->{cur_board}{last};
595 }
596 }
597
555 my $running = $self->{showmove} == @{$self->{path}} && $self->is_active; 598 my $running = $self->{showmove} == @{$self->{path}} && $self->is_active;
556 599
557 delete $self->{board_click}; 600 delete $self->{board_click};
558 601
559 if ($self->{teacher} eq $self->{app}{conn}) { 602 if ($self->{teacher} eq $self->{app}{conn}) {
560 #TODO# # teaching mode not implemented 603 #TODO# # teaching mode not implemented
561 $self->{button_pass}->set (label => "Pass", visible => 1, sensitive => 1); 604 $self->{button_pass}->set (label => "Pass", sensitive => 1);
605 $self->{button_pass}->show;
562 $self->{button_undo}->hide; 606 $self->{button_undo}->hide;
563 $self->{button_resign}->hide; 607 $self->{button_resign}->hide;
564 $self->{board}->set (cursor => undef); 608 $self->{board}->set (cursor => undef);
565 609
566 } elsif ($running && $self->{colour} != COLOUR_NONE) { 610 } elsif ($running && $self->{colour} != COLOUR_NONE) {
568 $self->{button_undo}->show; 612 $self->{button_undo}->show;
569 $self->{button_resign}->show; 613 $self->{button_resign}->show;
570 614
571 if ($self->{cur_board}{score}) { 615 if ($self->{cur_board}{score}) {
572 # during scoring 616 # during scoring
573 $self->{button_pass}->set (label => "Done", visible => 1, sensitive => 1); 617 $self->{button_pass}->set (label => "Done", sensitive => 1);
618 $self->{button_pass}->show;
574 $self->{board}->set (cursor => sub { 619 $self->{board}->set (cursor => sub {
575 $_[0] & (MARK_B | MARK_W) 620 $_[0] & (MARK_B | MARK_W)
576 ? $_[0] ^ MARK_GRAYED 621 ? $_[0] ^ MARK_GRAYED
577 : $_[0]; 622 : $_[0];
578 }); 623 });
590 } 635 }
591 }; 636 };
592 637
593 } elsif ($self->{colour} == $self->{whosemove}) { 638 } elsif ($self->{colour} == $self->{whosemove}) {
594 # normal move 639 # normal move
595 $self->{button_pass}->set (label => "Pass", visible => 1, sensitive => 1); 640 $self->{button_pass}->set (label => "Pass", sensitive => 1);
641 $self->{button_pass}->show;
596 $self->{board}->set (cursor => sub { 642 $self->{board}->set (cursor => sub {
597 $self->{cur_board} 643 $self->{cur_board}
598 && $self->{cur_board}->is_valid_move ($self->{colour}, $_[1], $_[2], 644 && $self->{cur_board}->is_valid_move ($self->{colour}, $_[1], $_[2],
599 $self->{rules}{ruleset} == RULESET_NEW_ZEALAND) 645 $self->{rules}{ruleset} == RULESET_NEW_ZEALAND)
600 ? $_[0] | MARK_GRAYED | ($self->{colour} == COLOUR_WHITE ? MARK_W : MARK_B) 646 ? $_[0] | MARK_GRAYED | ($self->{colour} == COLOUR_WHITE ? MARK_W : MARK_B)
601 : $_[0]; 647 : $_[0];
602 }); 648 });
603 $self->{board_click} = sub { 649 $self->{board_click} = sub {
604 return unless 650 return unless
605 $self->{cur_board}->is_valid_move ($self->{colour}, $_[1], $_[2], 651 $self->{cur_board}->is_valid_move ($self->{colour}, $_[0], $_[1],
606 $self->{rules}{ruleset} == RULESET_NEW_ZEALAND); 652 $self->{rules}{ruleset} == RULESET_NEW_ZEALAND);
607 $self->send (game_move => channel => $self->{channel}, x => $_[0], y => $_[1]); 653 $self->send (game_move => channel => $self->{channel}, x => $_[0], y => $_[1]);
608 $self->{board}->set (cursor => undef); 654 $self->{board}->set (cursor => undef);
609 delete $self->{board_click}; 655 delete $self->{board_click};
610 $self->{button_pass}->sensitive (0); 656 $self->{button_pass}->sensitive (0);
611 }; 657 };
612 } else { 658 } else {
613 $self->{button_pass}->set (label => "Pass", sensitive => 0, visible => 1); 659 $self->{button_pass}->set (label => "Pass", sensitive => 0);
660 $self->{button_pass}->show;
614 $self->{board}->set (cursor => undef); 661 $self->{board}->set (cursor => undef);
615 } 662 }
616 } else { 663 } else {
617 $self->{button_undo}->hide; 664 $self->{button_undo}->hide;
618 $self->{button_resign}->hide; 665 $self->{button_resign}->hide;
625sub update_board { 672sub update_board {
626 my ($self) = @_; 673 my ($self) = @_;
627 674
628 return unless $self->{path}; 675 return unless $self->{path};
629 676
630 if ($self->{rules}{ruleset} == RULESET_JAPANESE) {
631 if ($self->{curnode}{move} == 0) {
632 $self->{whosemove} = $self->{handicap} ? COLOUR_WHITE : COLOUR_BLACK;
633 } else {
634 $self->{whosemove} = 1 - $self->{cur_board}{last};
635 }
636 } else {
637 # Chinese, Aga, NZ all have manual placement
638 if ($self->{curnode}{move} < $self->{handicap}) {
639 $self->{whosemove} = COLOUR_BLACK;
640 } elsif ($self->{curnode}{move} == $self->{handicap}) {
641 $self->{whosemove} = $self->{handicap} ? COLOUR_WHITE : COLOUR_BLACK;
642 } else {
643 $self->{whosemove} = 1 - $self->{cur_board}{last};
644 }
645 }
646
647 $self->{board_label}->set_text ("Move " . ($self->{showmove} - 1)); 677 $self->{board_label}->set_text ("Move " . ($self->{showmove} - 1));
648 678
649 $self->{cur_board} = new KGS::Game::Board $self->{size}; 679 $self->{cur_board} = new KGS::Game::Board $self->{size};
650 $self->{cur_board}->interpret_path ([@{$self->{path}}[0 .. $self->{showmove} - 1]]); 680 $self->{cur_board}->interpret_path ([@{$self->{path}}[0 .. $self->{showmove} - 1]]);
651 681
652 $self->update_cursor;
653
654 $self->{userpanel}[$_]->set_captures ($self->{cur_board}{captures}[$_]) 682 $self->{userpanel}[$_]->set_captures ($self->{cur_board}{captures}[$_])
655 for COLOUR_WHITE, COLOUR_BLACK; 683 for COLOUR_WHITE, COLOUR_BLACK;
656 684
657 my $start_time = $self->{rules}{time}; 685 $self->{board}->set_board ($self->{cur_board});
686
687 if ($self->{cur_board}{score}) {
688 $self->{score_inlay} ||= $self->{chat}->new_inlay;
689 $self->{score_inlay}->clear;
690 $self->{score_inlay}->append_text ("\n<header>Scoring</header>"
691 . "\n<score>"
692 . "White: $self->{cur_board}{score}[COLOUR_WHITE], "
693 . "Black: $self->{cur_board}{score}[COLOUR_BLACK]"
694 . "</score>");
695 } elsif ($self->{score_inlay}) {
696 (delete $self->{score_inlay})->clear;
697 }
698
699 $self->update_cursor;
658 700
659 if ($self->{showmove} == @{$self->{path}}) { 701 if ($self->{showmove} == @{$self->{path}}) {
660 $self->{timers} = [ 702 $self->{timers} = [
661 [$self->{lastmove_time}, @{$self->{cur_board}{timer}[0]}], 703 [$self->{lastmove_time}, @{$self->{cur_board}{timer}[0]}],
662 [$self->{lastmove_time}, @{$self->{cur_board}{timer}[1]}], 704 [$self->{lastmove_time}, @{$self->{cur_board}{timer}[1]}],
667 [0, @{$self->{cur_board}{timer}[0]}], 709 [0, @{$self->{cur_board}{timer}[0]}],
668 [0, @{$self->{cur_board}{timer}[1]}], 710 [0, @{$self->{cur_board}{timer}[1]}],
669 ]); 711 ]);
670 } 712 }
671 713
672 $self->{board}->set_board ($self->{cur_board});
673
674 if ($self->{cur_board}{score}) {
675 $self->{score_inlay} ||= $self->{chat}->new_inlay;
676 $self->{score_inlay}->clear;
677 $self->{score_inlay}->append_text ("\n<header>Scoring</header>"
678 . "\n<score>"
679 . "White: $self->{cur_board}{score}[COLOUR_WHITE], "
680 . "Black: $self->{cur_board}{score}[COLOUR_BLACK]"
681 . "</score>");
682 } elsif ($self->{score_inlay}) {
683 (delete $self->{score_inlay})->clear;
684 }
685} 714}
686 715
687sub event_update_tree { 716sub event_update_tree {
688 my ($self) = @_; 717 my ($self) = @_;
689 718
707 } 736 }
708} 737}
709 738
710sub event_update_comments { 739sub event_update_comments {
711 my ($self, $node, $comment, $newnode) = @_; 740 my ($self, $node, $comment, $newnode) = @_;
712 $self->SUPER::event_update_comments($node, $comment, $newnode); 741 $self->SUPER::event_update_comments ($node, $comment, $newnode);
713 742
714 my $text; 743 my $text;
715 744
716 $text .= "\n<header>Move <move>$node->{move}</move>, Node <node>$node->{id}</node></header>" 745 $text .= "\n<header>Move <move>$node->{move}</move>, Node <node>$node->{id}</node></header>"
717 if $newnode; 746 if $newnode;
756 my ($self, $player) = @_; 785 my ($self, $player) = @_;
757 786
758 sound::play 3, "resign"; 787 sound::play 3, "resign";
759 $self->{chat}->append_text ("\n<infoblock><header>Resign</header>" 788 $self->{chat}->append_text ("\n<infoblock><header>Resign</header>"
760 . "\n<user>" 789 . "\n<user>"
761 . (util::toxml $self->{user}[$msg->{player}]->as_string) 790 . (util::toxml $self->{user}[$player]->as_string)
762 . "</user> resigned." 791 . "</user> resigned."
763 . "\n<user>" 792 . "\n<user>"
764 . (util::toxml $self->{user}[1 - $msg->{player}]->as_string) 793 . (util::toxml $self->{user}[1 - $player]->as_string)
765 . "</user> wins the game." 794 . "</user> wins the game."
766 . "</infoblock>"); 795 . "</infoblock>");
767} 796}
768 797
769sub event_time_win { 798sub event_time_win {
781} 810}
782 811
783sub event_owner_left { 812sub event_owner_left {
784 my ($self) = @_; 813 my ($self) = @_;
785 814
786 sound::play 2, "info";
787 $self->{chat}->append_text ("\n<infoblock><header>Owner left</header>" 815 $self->{chat}->append_text ("\n<infoblock><header>Owner left</header>"
788 . "\nThe owner of this game left.</infoblock>"); 816 . "\nThe owner of this game left.</infoblock>");
789} 817}
790 818
791sub event_teacher_left { 819sub event_teacher_left {
792 my ($self) = @_; 820 my ($self) = @_;
793 821
794 sound::play 2, "info";
795 $self->{chat}->append_text ("\n<infoblock><header>Teacher left</header>" 822 $self->{chat}->append_text ("\n<infoblock><header>Teacher left</header>"
796 . "\nThe teacher left the game.</infoblock>"); 823 . "\nThe teacher left the game.</infoblock>");
797} 824}
798 825
799sub event_done { 826sub event_done {
875 902
876 my ($size, $time, $interval, $count, $type); 903 my ($size, $time, $interval, $count, $type);
877 904
878 if (!$self->{channel}) { 905 if (!$self->{channel}) {
879 $inlay->append_text ("\nNotes: "); 906 $inlay->append_text ("\nNotes: ");
880 $inlay->append_entry (\$info->{notes}, 20, ""); 907 $inlay->append_widget (gtk::textentry \$info->{notes}, 20, "");
881 $inlay->append_text ("\nGlobal Offer: "); 908 $inlay->append_text ("\nGlobal Offer: ");
882 $inlay->append_optionmenu (\$info->{flags}, 909 $inlay->append_optionmenu (\$info->{flags},
883 0 => "No", 910 0 => "No",
884 2 => "Yes", 911 2 => "Yes",
885 ); 912 );
938 if ($self->{channel}) { 965 if ($self->{channel}) {
939 $inlay->append_text ("\nHandicap: "); 966 $inlay->append_text ("\nHandicap: ");
940 $inlay->append_optionmenu (\$info->{rules}{handicap}, map +($_, $_), 0..9); 967 $inlay->append_optionmenu (\$info->{rules}{handicap}, map +($_, $_), 0..9);
941 968
942 $inlay->append_text ("\nKomi: "); 969 $inlay->append_text ("\nKomi: ");
943 $inlay->append_entry (\$info->{rules}{komi}, 5); 970 $inlay->append_widget (gtk::numentry \$info->{rules}{komi}, 5);
944 } 971 }
945 972
946 $inlay->append_text ("\nTimesys: "); 973 $inlay->append_text ("\nTimesys: ");
947 $inlay->append_optionmenu ( 974 $inlay->append_optionmenu (
948 \$info->{rules}{timesys}, 975 \$info->{rules}{timesys},
977 } 1004 }
978 } 1005 }
979 ); 1006 );
980 1007
981 $inlay->append_text ("\nMain Time: "); 1008 $inlay->append_text ("\nMain Time: ");
982 $time = $inlay->append_entry (\$info->{rules}{time}, 5); 1009 $time = $inlay->append_widget (gtk::timeentry \$info->{rules}{time}, 5);
983 $inlay->append_text ("\nInterval: "); 1010 $inlay->append_text ("\nInterval: ");
984 $interval = $inlay->append_entry (\$info->{rules}{interval}, 3); 1011 $interval = $inlay->append_widget (gtk::timeentry \$info->{rules}{interval}, 5);
985 $inlay->append_text ("\nPeriods/Stones: "); 1012 $inlay->append_text ("\nPeriods/Stones: ");
986 $count = $inlay->append_entry (\$info->{rules}{count}, 2); 1013 $count = $inlay->append_widget (gtk::numentry \$info->{rules}{count}, 5);
987 1014
988 $inlay->append_text ("\n"); 1015 $inlay->append_text ("\n");
989 1016
990 if (!$self->{channel}) { 1017 if (!$self->{channel}) {
991 $inlay->append_button ("Create Challenge", sub { 1018 $inlay->append_button ("Create Challenge", sub {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines