… | |
… | |
1162 | . "cfplus support $yesno[$self->{cfplus_ext} > 0]" |
1162 | . "cfplus support $yesno[$self->{cfplus_ext} > 0]" |
1163 | . ($self->{cfplus_ext} > 0 ? ", version $self->{cfplus_ext}" : "") ."\n" |
1163 | . ($self->{cfplus_ext} > 0 ? ", version $self->{cfplus_ext}" : "") ."\n" |
1164 | . "map size $self->{mapw}×$self->{maph}\n" |
1164 | . "map size $self->{mapw}×$self->{maph}\n" |
1165 | ); |
1165 | ); |
1166 | |
1166 | |
1167 | ::setup_build_button ($self->{editor_support}->{builder_ui}); |
|
|
1168 | } |
1167 | } |
1169 | |
1168 | |
1170 | sub logged_in { |
1169 | sub logged_in { |
1171 | my ($self) = @_; |
1170 | my ($self) = @_; |
1172 | |
1171 | |
… | |
… | |
1192 | |
1191 | |
1193 | $self->send_command ("output-sync $::CFG->{output_sync}"); |
1192 | $self->send_command ("output-sync $::CFG->{output_sync}"); |
1194 | $self->send_command ("output-count $::CFG->{output_count}"); |
1193 | $self->send_command ("output-count $::CFG->{output_count}"); |
1195 | $self->send_command ("output-rate $::CFG->{output_rate}") if $::CFG->{output_rate} > 0; |
1194 | $self->send_command ("output-rate $::CFG->{output_rate}") if $::CFG->{output_rate} > 0; |
1196 | $self->send_command ("pickup $::CFG->{pickup}"); |
1195 | $self->send_command ("pickup $::CFG->{pickup}"); |
1197 | } |
|
|
1198 | |
|
|
1199 | sub buildat { |
|
|
1200 | my ($self, $builditem, $x, $y) = @_; |
|
|
1201 | |
|
|
1202 | if ($self->{cfplus_ext}) { |
|
|
1203 | $self->send_ext_msg (builder_build => dx => $x, dy => $y, (ref ($builditem) eq 'HASH') ? %$builditem : (item => $builditem)); |
|
|
1204 | } |
|
|
1205 | } |
1196 | } |
1206 | |
1197 | |
1207 | sub lookat { |
1198 | sub lookat { |
1208 | my ($self, $x, $y) = @_; |
1199 | my ($self, $x, $y) = @_; |
1209 | |
1200 | |