--- deliantra/server/ext/item-worldmap.ext 2007/07/23 23:38:17 1.9 +++ deliantra/server/ext/item-worldmap.ext 2007/09/19 21:56:30 1.16 @@ -27,13 +27,8 @@ fontsize => 0.2, ); - my $marker = cf::face::find "res/map-arrow.png"; - $ws->{ns}->send_face ($marker); - $ws->{ns}->flush_fx; - $marker = $ws->new (Face => - size_w => undef, - size_h => undef, - face => $marker, + my $marker = $ws->new (Face => + face => $ws->{ns}->need_face ("res/map-arrow"), ); my $children = [$label, $marker]; @@ -75,24 +70,18 @@ has_close_button => 1, on_delete => sub { shift->hide }, on_visibility_change => sub { - warn "VCHANGE <@_>\n";#d# $_[0]{visibility} = $_[1]; update_worldmap $_[0]{ws} if $_[1]; }, ); - my $face = cf::face::find "res/worldmap.jpg"; - $ns->send_face ($face); - $ns->flush_fx; - $w->add (my $sw = $ws->{window} = $ws->new (ScrolledWindow => scroll_x => 1, scroll_y => 1)); $sw->add (my $canvas = $ws->{canvas} = $ws->new (Canvas => expand => 1)); $ws->{mapface} = $ws->new (Face => - expand => 1, size_w => undef, size_h => undef, - face => $face, + face => $ws->{ns}->need_face ("res/worldmap"), ); $ws->{canvas}->add ($ws->{mapface}); @@ -118,6 +107,7 @@ ; cf::async_ext { + $Coro::current->{desc} = "worldmap updater"; my $schedule_interval = Coro::Event->timer (after => 1); while () {