--- deliantra/Deliantra-Client/DC/Protocol.pm 2006/06/15 15:47:36 1.37 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2006/06/18 17:13:11 1.38 @@ -85,8 +85,6 @@ $fh->flush; } - - sub stats_update { my ($self, $stats) = @_; @@ -539,7 +537,7 @@ } else { $::FLOORBOX->add (1, $row, new CFClient::UI::Button text => "More...", - on_activate => sub { $::INV_WINDOW->toggle_visibility }, + on_activate => sub { $::INV_WINDOW->toggle_visibility; 0 }, ); last; } @@ -564,6 +562,7 @@ $::CONN->send ("apply $tag") # $::CONN->{open_container}") if $tag != 0; #if $CONN->{open_container} != 0; + 0 }, ); } @@ -765,6 +764,8 @@ $entry->set_text (""); $this->send ($text); + + 0 }, ); @@ -773,7 +774,7 @@ $self->{close_button} = new CFClient::UI::Button text => "Bye (close)", tooltip => "Use this button to end talking to the NPC. This also closes the dialog window.", - on_activate => sub { $this->destroy }, + on_activate => sub { $this->destroy; 0 }, ; $self->update_options; @@ -782,7 +783,7 @@ $self->{conn}->connect_ext ($self->{token} => sub { $this->feed (@_) }); $self->{conn}->send ("ext npc_dialog_begin $self->{token} $self->{dx} $self->{dy}"); - $self->{entry}->focus_in; + $self->{entry}->grab_focus; $self->{textview}->add_paragraph ([1, 1, 0, 1], "[starting conversation with $self->{title}]\n\n"); @@ -803,6 +804,7 @@ text => $kw, on_activate => sub { $self->send ($kw); + 0 }, ); }