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

Comparing deliantra/Deliantra-Client/bin/pclient (file contents):
Revision 1.48 by elmex, Sun Apr 9 18:30:03 2006 UTC vs.
Revision 1.49 by elmex, Sun Apr 9 18:35:09 2006 UTC

286 } 286 }
287 $ent->set_text ($value); 287 $ent->set_text ($value);
288 $ent->signal_connect (changed => sub { 288 $ent->signal_connect (changed => sub {
289 my ($ent) = @_; 289 my ($ent) = @_;
290 $cfg->{$key} = $ent->get_text; 290 $cfg->{$key} = $ent->get_text;
291 # TODO: Mapsize should be a slider in the game gui
291 if ($key eq 'mapsize' and $cfg->{$key} > 100) { 292 if ($key eq 'mapsize' and $cfg->{$key} > 100) {
292 $cfg->{$key} = 100; 293 $cfg->{$key} = 100;
293 $ent->set_text ('100');
294 } elsif ($key eq 'mapsize' and $cfg->{$key} < 50) { 294 } elsif ($key eq 'mapsize' and $cfg->{$key} < 50) {
295 $cfg->{$key} = 50; 295 $cfg->{$key} = 50;
296 $ent->set_text ('50');
297 } 296 }
298 }); 297 });
299} 298}
300 299
301sub run_config_dialog { 300sub run_config_dialog {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines