--- deliantra/Deliantra-Client/DC/Protocol.pm 2006/05/26 19:34:30 1.3 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2006/05/27 08:45:23 1.4 @@ -54,9 +54,9 @@ sub stats_update { my ($self, $stats) = @_; - if (my $exp = $stats->{CS_STAT_EXP64}) { + if (my $exp = $stats->{+CS_STAT_EXP64}) { my $diff = $exp - $self->{prev_exp}; - $self->{statusbox}->add ("$diff experience gained", group => "experience $diff", fg => [0.5, 1, 0.5, 0.8], timeout => 5) + $::STATUSBOX->add ("$diff experience gained", group => "experience $diff", fg => [0.5, 1, 0.5, 0.8], timeout => 5) if exists $self->{prev_exp} && $diff; $self->{prev_exp} = $exp; } @@ -409,7 +409,7 @@ $self->{logview}->add_paragraph ($color[$color], join "\n", map "$time $_", split /\n/, $text); - $self->{statusbox}->add ($text, + $::STATUSBOX->add ($text, group => $text, fg => $color[$color], timeout => 10, @@ -491,14 +491,14 @@ $self->send ("requestinfo image_sums $face $face"); - $self->{statusbox}->add (CFClient::UI::Label::escape "prefetching $todo", + $::STATUSBOX->add (CFClient::UI::Label::escape "prefetching $todo", group => "prefetch", timeout => 2, fg => [1, 1, 0, 0.5]); } elsif (!exists $self->{num_faces}) { $self->send ("requestinfo image_info"); $self->{num_faces} = 0; - $self->{statusbox}->add (CFClient::UI::Label::escape "starting to prefetch", + $::STATUSBOX->add (CFClient::UI::Label::escape "starting to prefetch", group => "prefetch", timeout => 2, fg => [1, 1, 0, 0.5]); } }