… | |
… | |
41 | $self->{map_widget}->add_command (@$_) |
41 | $self->{map_widget}->add_command (@$_) |
42 | for @cmd_help; |
42 | for @cmd_help; |
43 | |
43 | |
44 | $self->{noface} = new_from_file CFPlus::Texture |
44 | $self->{noface} = new_from_file CFPlus::Texture |
45 | CFPlus::find_rcfile "noface.png", minify => 1, mipmap => 1; |
45 | CFPlus::find_rcfile "noface.png", minify => 1, mipmap => 1; |
|
|
46 | |
|
|
47 | { |
|
|
48 | $self->{dialogue} = my $tex = new_from_file CFPlus::Texture |
|
|
49 | CFPlus::find_rcfile "dialogue.png", minify => 1, mipmap => 1; |
|
|
50 | $self->{map}->set_texture (1, @$tex{qw(name w h s t)}, @{$tex->{minified}}); |
|
|
51 | } |
46 | |
52 | |
47 | $self->{open_container} = 0; |
53 | $self->{open_container} = 0; |
48 | |
54 | |
49 | # "global" |
55 | # "global" |
50 | $self->{tilecache} = CFPlus::db_table "tilecache" |
56 | $self->{tilecache} = CFPlus::db_table "tilecache" |
… | |
… | |
877 | $::SERVER_INFO->set_markup ( |
883 | $::SERVER_INFO->set_markup ( |
878 | "server <tt>$self->{host}:$self->{port}</tt>\n" |
884 | "server <tt>$self->{host}:$self->{port}</tt>\n" |
879 | . "protocol version <tt>$self->{version}</tt>\n" |
885 | . "protocol version <tt>$self->{version}</tt>\n" |
880 | . "minimap support $yesno[$self->{setup}{mapinfocmd} > 0]\n" |
886 | . "minimap support $yesno[$self->{setup}{mapinfocmd} > 0]\n" |
881 | . "extended command support $yesno[$self->{setup}{extcmd} > 0]\n" |
887 | . "extended command support $yesno[$self->{setup}{extcmd} > 0]\n" |
|
|
888 | . "map attributes $yesno[$self->{setup}{extmap} > 0]\n" |
882 | . "cfplus support $yesno[$self->{cfplus_ext} > 0]" |
889 | . "cfplus support $yesno[$self->{cfplus_ext} > 0]" |
883 | . ($self->{cfplus_ext} > 0 ? ", version $self->{cfplus_ext}" : "") ."\n" |
890 | . ($self->{cfplus_ext} > 0 ? ", version $self->{cfplus_ext}" : "") ."\n" |
884 | . "map size $self->{mapw}×$self->{maph}\n" |
891 | . "map size $self->{mapw}×$self->{maph}\n" |
885 | ); |
892 | ); |
886 | } |
893 | } |