--- deliantra/Deliantra-Client/DC/Protocol.pm 2006/05/27 08:45:23 1.4 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2006/05/27 10:32:35 1.5 @@ -56,7 +56,7 @@ if (my $exp = $stats->{+CS_STAT_EXP64}) { my $diff = $exp - $self->{prev_exp}; - $::STATUSBOX->add ("$diff experience gained", group => "experience $diff", fg => [0.5, 1, 0.5, 0.8], timeout => 5) + $self->{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); - $::STATUSBOX->add ($text, + $self->{statusbox}->add ($text, group => $text, fg => $color[$color], timeout => 10, @@ -491,14 +491,14 @@ $self->send ("requestinfo image_sums $face $face"); - $::STATUSBOX->add (CFClient::UI::Label::escape "prefetching $todo", + $self->{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; - $::STATUSBOX->add (CFClient::UI::Label::escape "starting to prefetch", + $self->{statusbox}->add (CFClient::UI::Label::escape "starting to prefetch", group => "prefetch", timeout => 2, fg => [1, 1, 0, 0.5]); } }