ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/bin/cfplus
(Generate patch)

Comparing deliantra/Deliantra-Client/bin/cfplus (file contents):
Revision 1.168 by root, Sat Jul 14 12:05:53 2007 UTC vs.
Revision 1.170 by root, Sun Jul 15 21:15:14 2007 UTC

1280 1280
1281 $window 1281 $window
1282} 1282}
1283 1283
1284sub autopickup_setup { 1284sub autopickup_setup {
1285 my $r = new CFPlus::UI::ScrolledWindow (
1286 expand => 1,
1287 scroll_y => 1
1288 );
1285 my $table = new CFPlus::UI::Table; 1289 $r->add (my $table = new CFPlus::UI::Table
1290 row_expand => [0],
1291 col_expand => [0, 1, 0, 1],
1292 );
1286 1293
1287 for ( 1294 for (
1288 ["General", 0, 0, 1295 ["General", 0, 0,
1289 ["Enable autopickup" => PICKUP_NEWMODE, \$PICKUP_ENABLE], 1296 ["Enable autopickup" => PICKUP_NEWMODE, \$PICKUP_ENABLE],
1290 ["Inhibit autopickup" => PICKUP_INHIBIT], 1297 ["Inhibit autopickup" => PICKUP_INHIBIT],
1374 $::CONN->send_command ("pickup $::CFG->{pickup}") 1381 $::CONN->send_command ("pickup $::CFG->{pickup}")
1375 if defined $::CONN; 1382 if defined $::CONN;
1376 0 1383 0
1377 }); 1384 });
1378 1385
1379 $table 1386 $r
1380} 1387}
1381 1388
1382my %SORT_ORDER = ( 1389my %SORT_ORDER = (
1383 type => undef, 1390 type => undef,
1384 mtime => sub { 1391 mtime => sub {
2162 2169
2163my $refresh_watcher = Event->timer (after => 0, hard => 0, interval => 1 / $MAX_FPS, cb => sub { 2170my $refresh_watcher = Event->timer (after => 0, hard => 0, interval => 1 / $MAX_FPS, cb => sub {
2164 $NOW = time; 2171 $NOW = time;
2165 2172
2166 ($SDL_CB{$_->{type}} || sub { warn "unhandled event $_->{type}" })->($_) 2173 ($SDL_CB{$_->{type}} || sub { warn "unhandled event $_->{type}" })->($_)
2167 for CFPlus::SDL_PollEvent; 2174 for CFPlus::poll_events;
2168 2175
2169 if (%animate_object) { 2176 if (%animate_object) {
2170 $_->animate ($LAST_REFRESH - $NOW) for values %animate_object; 2177 $_->animate ($LAST_REFRESH - $NOW) for values %animate_object;
2171 $WANT_REFRESH++; 2178 $WANT_REFRESH++;
2172 } 2179 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines