… | |
… | |
720 | user => $PROFILE->{user}, |
720 | user => $PROFILE->{user}, |
721 | pass => $PROFILE->{password}, |
721 | pass => $PROFILE->{password}, |
722 | mapw => $mapsize, |
722 | mapw => $mapsize, |
723 | maph => $mapsize, |
723 | maph => $mapsize, |
724 | |
724 | |
725 | client => "cfplus $DC::VERSION $] $^O", |
725 | client => "$DC::VERSION $] $^O", |
726 | |
726 | |
727 | map_widget => $MAPWIDGET, |
727 | map_widget => $MAPWIDGET, |
728 | statusbox => $STATUSBOX, |
728 | statusbox => $STATUSBOX, |
729 | map => $MAP, |
729 | map => $MAP, |
730 | mapmap => $MAPMAP, |
730 | mapmap => $MAPMAP, |
… | |
… | |
1528 | |
1528 | |
1529 | $vbox->add ( |
1529 | $vbox->add ( |
1530 | $HOST_ENTRY = new DC::UI::Entry |
1530 | $HOST_ENTRY = new DC::UI::Entry |
1531 | expand => 1, |
1531 | expand => 1, |
1532 | text => $CFG->{profile}{default}{host}, |
1532 | text => $CFG->{profile}{default}{host}, |
1533 | tooltip => "The hostname or ip address of the Deliantra server to connect to", |
1533 | tooltip => "The hostname or ip address of the Deliantra server to connect to (e.g. <b>gameserver.deliantra.net</b>)", |
1534 | on_changed => sub { |
1534 | on_changed => sub { |
1535 | my ($self, $value) = @_; |
1535 | my ($self, $value) = @_; |
1536 | $CFG->{profile}{default}{host} = $value; |
1536 | $CFG->{profile}{default}{host} = $value; |
1537 | 1 |
1537 | 1 |
1538 | } |
1538 | } |
… | |
… | |
1541 | if (0) { #d# disabled |
1541 | if (0) { #d# disabled |
1542 | $vbox->add (new DC::UI::Button |
1542 | $vbox->add (new DC::UI::Button |
1543 | expand => 1, |
1543 | expand => 1, |
1544 | text => "Server List", |
1544 | text => "Server List", |
1545 | other => $METASERVER, |
1545 | other => $METASERVER, |
1546 | tooltip => "Show a list of available crossfire servers", |
1546 | tooltip => "Show a list of available Deliantra servers", |
1547 | on_activate => sub { $METASERVER->toggle_visibility; 0 }, |
1547 | on_activate => sub { $METASERVER->toggle_visibility; 0 }, |
1548 | on_visibility_change => sub { $METASERVER->hide unless $_[1]; 1 }, |
1548 | on_visibility_change => sub { $METASERVER->hide unless $_[1]; 1 }, |
1549 | ); |
1549 | ); |
1550 | }#d# |
1550 | }#d# |
1551 | } |
1551 | } |
… | |
… | |
1601 | tooltip => "This is maximum number of messages remembered in the <b>Messages</b> window. If the server " |
1601 | tooltip => "This is maximum number of messages remembered in the <b>Messages</b> window. If the server " |
1602 | . "sends more messages than this number, older messages get removed to save memory and " |
1602 | . "sends more messages than this number, older messages get removed to save memory and " |
1603 | . "computing time. A value of <b>0</b> disables this feature, but that is not recommended.", |
1603 | . "computing time. A value of <b>0</b> disables this feature, but that is not recommended.", |
1604 | on_changed => sub { |
1604 | on_changed => sub { |
1605 | my ($self, $value) = @_; |
1605 | my ($self, $value) = @_; |
1606 | $MESSAGE_DIST->set_max_para ($CFG->{logview_max_par} = $value*1); |
1606 | $MESSAGE_DIST->set_max_par ($CFG->{logview_max_par} = $value*1); |
1607 | 0 |
1607 | 0 |
1608 | }, |
1608 | }, |
1609 | ); |
1609 | ); |
1610 | |
1610 | |
1611 | $table |
1611 | $table |
… | |
… | |
2374 | if (-e "$Deliantra::VARDIR/client.cf") { |
2374 | if (-e "$Deliantra::VARDIR/client.cf") { |
2375 | DC::read_cfg "$Deliantra::VARDIR/client.cf"; |
2375 | DC::read_cfg "$Deliantra::VARDIR/client.cf"; |
2376 | } else { |
2376 | } else { |
2377 | #TODO: compatibility cruft |
2377 | #TODO: compatibility cruft |
2378 | DC::read_cfg "$Deliantra::OLDDIR/cfplusrc"; |
2378 | DC::read_cfg "$Deliantra::OLDDIR/cfplusrc"; |
2379 | print STDERR "INFO: used old configuratrion file\n"; |
2379 | print STDERR "INFO: used old configuration file\n"; |
2380 | } |
2380 | } |
2381 | |
2381 | |
2382 | DC::DB::Server::run; |
2382 | DC::DB::Server::run; |
2383 | |
2383 | |
2384 | DC::UI::set_layout ($::CFG->{layout}); |
2384 | DC::UI::set_layout ($::CFG->{layout}); |