--- deliantra/Deliantra-Client/DC/Protocol.pm 2007/07/24 04:54:48 1.131 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2007/07/27 18:04:42 1.136 @@ -187,6 +187,13 @@ $self->send_exti_msg (w_r => $rid, [map $w->{$_}, @$attr]); }); + # message window + $self->connect_ext (channel_info => sub { + my ($info) = @_; + $self->{channels}->{$info->{id}} = $info; + $::MESSAGE_WINDOW->add_channel ($info); + }); + # destroy widgets on logout $self->{on_stop_game_guard} = $self->{map_widget}{root}->connect (stop_game => sub { for my $ws (values %{delete $self->{widgetset} || {}}) { @@ -736,7 +743,7 @@ my ($self, $facenum, $face, $changed) = @_; if ($face->{type} == 0) { # FT_FACE - CFPlus::DB::put tilecache => $face->{id} => $face->{image}, sub { } + CFPlus::DB::put tilecache => $face->{id} => $face->{data}, sub { } if $changed; $self->set_texture ($face->{id} => delete $face->{data}); @@ -891,7 +898,7 @@ # no longer neecssary with TRT servers #$text =~ s/(?<=\S)\n(?=\w)/ /g; - ::message ({ fg => $fg, markup => $_ }) + ::message ({ fg => $fg, markup => $_, type => $type, extra => [@extra] }) for split /\n/, $text; $self->{statusbox}->add ($text, @@ -1157,7 +1164,6 @@ . "map size $self->{mapw}×$self->{maph}\n" ); - ::setup_build_button ($self->{editor_support}->{builder_ui}); } sub logged_in { @@ -1189,14 +1195,6 @@ $self->send_command ("pickup $::CFG->{pickup}"); } -sub buildat { - my ($self, $builditem, $x, $y) = @_; - - if ($self->{cfplus_ext}) { - $self->send_ext_msg (builder_build => dx => $x, dy => $y, (ref ($builditem) eq 'HASH') ? %$builditem : (item => $builditem)); - } -} - sub lookat { my ($self, $x, $y) = @_;