--- deliantra/Deliantra-Client/DC/Protocol.pm 2006/06/18 17:13:11 1.38 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2006/06/19 06:50:45 1.39 @@ -771,7 +771,7 @@ $vbox->add ($self->{options} = new CFClient::UI::VBox); - $self->{close_button} = new CFClient::UI::Button + $self->{bye_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; 0 }, @@ -797,7 +797,7 @@ Scalar::Util::weaken $self; $self->{options}->clear; - $self->{options}->add ($self->{close_button}); + $self->{options}->add ($self->{bye_button}); for my $kw (sort keys %{ $self->{kw} }) { $self->{options}->add (new CFClient::UI::Button @@ -842,7 +842,7 @@ sub destroy { my ($self) = @_; - #Carp::cluck "debug\n";#d# #todo# enable: destroyx gets called twice because scalar keys {} is 1 + #Carp::cluck "debug\n";#d# #todo# enable: destroy gets called twice because scalar keys {} is 1 delete $self->{conn}{npc_dialog}; $self->{conn}->disconnect_ext ($self->{token});