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

Comparing deliantra/gde/GCE/Util.pm (file contents):
Revision 1.26 by elmex, Sat Aug 25 15:21:04 2007 UTC vs.
Revision 1.27 by elmex, Sat Aug 25 19:25:45 2007 UTC

26 26
27our @EXPORT = qw(insert_arch_stack_layer replace_arch_stack_layer new_arch_pb 27our @EXPORT = qw(insert_arch_stack_layer replace_arch_stack_layer new_arch_pb
28 fill_pb_from_arch arch_is_floor stack_find_floor stack_find_wall 28 fill_pb_from_arch arch_is_floor stack_find_floor stack_find_wall
29 stack_find arch_is_wall arch_is_monster add_table_widget quick_msg 29 stack_find arch_is_wall arch_is_monster add_table_widget quick_msg
30 def arch_is_exit map2abs exit_paths pseudohtml2txt arch_is_connector 30 def arch_is_exit map2abs exit_paths pseudohtml2txt arch_is_connector
31 gtk2_get_color); 31 gtk2_get_color devirtualize);
32 32
33my %allocated_colors; 33my %allocated_colors;
34
35sub devirtualize {
36 my ($map, $x, $y, $arch, $stack) = @_;
37 if ($arch->{_virtual}) {
38 my @head = $map->get_head ($arch);
39 if (@head) {
40 return ($head[0], $head[1], $head[3]->[$head[2]], $head[3])
41 }
42 }
43 return ($x, $y, $arch, $stack)
44
45}
34 46
35sub gtk2_get_color { 47sub gtk2_get_color {
36 my ($widget, $name) = @_; 48 my ($widget, $name) = @_;
37 my $colormap = $widget->{window}->get_colormap; 49 my $colormap = $widget->{window}->get_colormap;
38 my $ret; 50 my $ret;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines