ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/gde/GCE/MapEditor.pm
(Generate patch)

Comparing deliantra/gde/GCE/MapEditor.pm (file contents):
Revision 1.67 by elmex, Fri Aug 31 09:34:37 2007 UTC vs.
Revision 1.68 by elmex, Tue Sep 11 10:24:24 2007 UTC

304 304
305 $map->{undo_stack_pos} 305 $map->{undo_stack_pos}
306 or return; 306 or return;
307 307
308 $map->change_swap ($map->{undo_stack}[--$map->{undo_stack_pos}]); 308 $map->change_swap ($map->{undo_stack}[--$map->{undo_stack_pos}]);
309
310 $::MAINWIN->update_stack_view ();
309} 311}
310 312
311sub get_stack_refs { 313sub get_stack_refs {
312 my ($self, $map, $x, $y) = @_; 314 my ($self, $map, $x, $y) = @_;
313 315
805 $vb->pack_start (my $map = $self->{map} = Crossfire::MapWidget->new, 1, 1, 0); 807 $vb->pack_start (my $map = $self->{map} = Crossfire::MapWidget->new, 1, 1, 0);
806 808
807 $map->signal_connect_after (stack_change => sub { 809 $map->signal_connect_after (stack_change => sub {
808 my ($map, $x, $y, $stack) = @_; 810 my ($map, $x, $y, $stack) = @_;
809 $self->update_overlays ($x, $y, $stack); 811 $self->update_overlays ($x, $y, $stack);
812 $::MAINWIN->update_map_pos ($self, $x, $y);
810 }); 813 });
811 $map->signal_connect_after (swap_stack_change => sub { 814 $map->signal_connect_after (swap_stack_change => sub {
812 my ($map, $x, $y, $stack) = @_; 815 my ($map, $x, $y, $stack) = @_;
813 $self->update_overlays ($x, $y, $stack); 816 $self->update_overlays ($x, $y, $stack);
817 $::MAINWIN->update_map_pos ($self, $x, $y);
814 }); 818 });
815 819
816 $self->{connection_overlay_foreground} 820 $self->{connection_overlay_foreground}
817 = Gtk2::Gdk::Color->new (257 * 255, 257 * 255, 0); 821 = Gtk2::Gdk::Color->new (257 * 255, 257 * 255, 0);
818 $self->{connection_overlay_background} 822 $self->{connection_overlay_background}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines