… | |
… | |
623 | |
623 | |
624 | sub player_update { |
624 | sub player_update { |
625 | my ($self, $player) = @_; |
625 | my ($self, $player) = @_; |
626 | |
626 | |
627 | $::STATWIDS->{weight}->set_text (sprintf "Weight: %.1fkg", $player->{weight} / 1000); |
627 | $::STATWIDS->{weight}->set_text (sprintf "Weight: %.1fkg", $player->{weight} / 1000); |
|
|
628 | } |
628 | |
629 | |
629 | # do it here because it is ignored earlier, and there is no "login" event |
630 | sub logged_in { |
|
|
631 | my ($self) = @_; |
|
|
632 | |
|
|
633 | $self->send_ext_req (cfplus => "version", "1", sub { |
|
|
634 | $self->{cfplus_ext} = $_[0]; |
|
|
635 | }); |
|
|
636 | |
630 | $self->send_command ("output-sync $::CFG->{output_sync}"); |
637 | $self->send_command ("output-sync $::CFG->{output_sync}"); |
631 | $self->send_command ("output-count $::CFG->{output_count}"); |
638 | $self->send_command ("output-count $::CFG->{output_count}"); |
632 | $self->send_command ("pickup $::CFG->{pickup}") |
639 | $self->send_command ("pickup $::CFG->{pickup}") |
633 | } |
640 | } |
634 | |
641 | |