--- deliantra/Deliantra-Client/DC/Protocol.pm 2006/06/11 18:36:15 1.29 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2006/06/11 18:43:09 1.31 @@ -502,7 +502,7 @@ $row++; } else { $::FLOORBOX->add (1, $row, new CFClient::UI::Button - text => "More...", + text => "More...", on_activate => sub { $::INV_WINDOW->toggle_visibility }, ); last; @@ -632,21 +632,22 @@ $self->send_ext_req (cfplus => "version", "1", sub { $self->{cfplus_ext} = $_[0]; + + my @yesno = ("no", "yes"); + + $::SERVER_INFO->set_markup ( + "server $self->{host}:$self->{port}\n" + . "protocol version $self->{version}\n" + . "minimap support $yesno[$self->{setup}{mapinfocmd} > 0]\n" + . "extended command support $yesno[$self->{setup}{extcmd} > 0]\n" + . "cfplus support $yesno[$self->{cfplus_ext} > 0]\n" + . "map size $self->{mapw}×$self->{maph}\n" + ); }); $self->send_command ("output-sync $::CFG->{output_sync}"); $self->send_command ("output-count $::CFG->{output_count}"); $self->send_command ("pickup $::CFG->{pickup}"); - - my @yesno = ("no", "yes"); - - $::SERVER_INFO->set_markup ( - "server name:port $self->{host}:$self->{port}\n" - . "protocol version $self->{version}\n" - . "mapinfo support $yesno[$self->{setup}{mapinfocmd} > 0]\n" - . "extcmd support $yesno[$self->{setup}{extcmd} > 0]\n" - . "cfplus support $yesno[$self->{cfplus_ext} > 0]\n" - ); } 1;