1 # This file is part of the graph-includes package
3 # (c) 2005 Yann Dirson <ydirson@altern.org>
4 # Distributed under version 2 of the GNU GPL.
6 package graphincludes
::project
::wesnoth
;
7 use graphincludes
::project
::default;
8 our @ISA = qw(graphincludes::project::default);
12 my ($file,$level) = @_;
13 $level = $main::minshow
unless defined $level;
15 $file =~ s/^$self->{PFXSTRIP}// if defined $self->{PFXSTRIP
};
19 } elsif ($level == 1) {
20 $file =~ s/\.[^.]*$//;
21 return 'ai' if $file =~ m/^ai_(move|attack)$/;
23 } elsif ($level == 2) {
24 if ($file =~ m!^(variable|server/variable|game_events)\.! ) {
26 } elsif ($file =~ m!^(multiplayer|ai).*!) {
28 } elsif ($file =~ m!^(mapgen|mapgen_dialog|cavegen|map_create)\..*!) {
30 } elsif ($file =~ m!^(array|astarnode|config|filesystem|game_config|gettext|global|language|log|map|pathfind|pathutils|race|random|scoped_resource|terrain|thread|tstring|unit|unit_types|util|variable|wassert|(.*/xcoll))\..*!) {
32 } elsif ($file =~ m!^(clipboard|cursor|font|image|sdl_utils|tooltips|video)\..*!) {
34 } elsif ($file =~ m!^(about|builder|display|events|preferences|show_dialog|sound|theme)\..*!) {
36 } elsif ($file =~ m!^(game|help|titlescreen)\..*!) {
38 } elsif ($file =~ m!^(editor|server|serialization|widgets)/.*!) {
41 return '<' . $self->filelabel($file, $level - 1) . '>';
51 serialization
=> 'steelblue1',
52 variable
=> 'slateblue1',
56 graphics
=> 'peachpuff',
58 uicore
=> 'lavenderblush',
60 multiplayer
=> 'palegreen',
69 return {'src/font.cpp' => {'src/team.hpp' => 'team colors' },
70 'src/language.cpp' => {'src/preferences.hpp' => 'split out graph. stuff from preferences'},