--- deliantra/Deliantra-Client/DC/Protocol.pm 2006/06/01 18:56:05 1.15 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2006/06/05 05:06:23 1.19 @@ -431,7 +431,7 @@ $self->{statusbox}->add ($text, group => $text, fg => $color[$color], - timeout => 10, + timeout => $color >= 2 ? 60 : 10, tooltip_font => $::FONT_FIXED, ); } @@ -447,7 +447,7 @@ # TODO # create a widget dynamically, using spell face (CF::Protocol downloads them) - $::SPELL_LIST->add_spell ($spell); + $::SETUP_SPELLS->add_spell ($spell); $self->{map_widget}->add_command ("invoke $spell->{name}", CFClient::UI::Label::escape $spell->{message}); $self->{map_widget}->add_command ("cast $spell->{name}", CFClient::UI::Label::escape $spell->{message}); @@ -455,7 +455,7 @@ sub spell_delete { my ($self, $spell) = @_; - $::SPELL_LIST->remove_spell ($spell); + $::SETUP_SPELLS->remove_spell ($spell); } sub addme_success { @@ -511,14 +511,14 @@ $self->send ("requestinfo image_sums $face $face"); $self->{statusbox}->add (CFClient::UI::Label::escape "prefetching $todo", - group => "prefetch", timeout => 2, fg => [1, 1, 0, 0.5]); + group => "prefetch", timeout => 3, 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", - group => "prefetch", timeout => 2, fg => [1, 1, 0, 0.5]); + group => "prefetch", timeout => 3, fg => [1, 1, 0, 0.5]); } }