… | |
… | |
893 | . "map attributes $yesno[$self->{setup}{extmap} > 0]\n" |
893 | . "map attributes $yesno[$self->{setup}{extmap} > 0]\n" |
894 | . "cfplus support $yesno[$self->{cfplus_ext} > 0]" |
894 | . "cfplus support $yesno[$self->{cfplus_ext} > 0]" |
895 | . ($self->{cfplus_ext} > 0 ? ", version $self->{cfplus_ext}" : "") ."\n" |
895 | . ($self->{cfplus_ext} > 0 ? ", version $self->{cfplus_ext}" : "") ."\n" |
896 | . "map size $self->{mapw}×$self->{maph}\n" |
896 | . "map size $self->{mapw}×$self->{maph}\n" |
897 | ); |
897 | ); |
|
|
898 | |
|
|
899 | ::setup_build_button ($self->{editor_support}->{builder_ui}); |
898 | } |
900 | } |
899 | |
901 | |
900 | sub logged_in { |
902 | sub logged_in { |
901 | my ($self) = @_; |
903 | my ($self) = @_; |
902 | |
904 | |
… | |
… | |
919 | $self->update_server_info; |
921 | $self->update_server_info; |
920 | |
922 | |
921 | $self->send_command ("output-sync $::CFG->{output_sync}"); |
923 | $self->send_command ("output-sync $::CFG->{output_sync}"); |
922 | $self->send_command ("output-count $::CFG->{output_count}"); |
924 | $self->send_command ("output-count $::CFG->{output_count}"); |
923 | $self->send_command ("pickup $::CFG->{pickup}"); |
925 | $self->send_command ("pickup $::CFG->{pickup}"); |
|
|
926 | } |
|
|
927 | |
|
|
928 | sub buildat { |
|
|
929 | my ($self, $builditem, $x, $y) = @_; |
|
|
930 | |
|
|
931 | if ($self->{cfplus_ext}) { |
|
|
932 | $self->send_ext_msg (builder_build => dx => $x, dy => $y, (ref ($builditem) eq 'HASH') ? %$builditem : (item => $builditem)); |
|
|
933 | } |
924 | } |
934 | } |
925 | |
935 | |
926 | sub lookat { |
936 | sub lookat { |
927 | my ($self, $x, $y) = @_; |
937 | my ($self, $x, $y) = @_; |
928 | |
938 | |