… | |
… | |
1135 | $BUTTONBAR->add (new CFClient::UI::Button |
1135 | $BUTTONBAR->add (new CFClient::UI::Button |
1136 | text => "Save Config", |
1136 | text => "Save Config", |
1137 | tooltip => "Saves the options chosen in the client setting, server settings and the window layout to be restored on later runs.", |
1137 | tooltip => "Saves the options chosen in the client setting, server settings and the window layout to be restored on later runs.", |
1138 | on_activate => sub { |
1138 | on_activate => sub { |
1139 | $::CFG->{layout} = CFClient::UI::get_layout; |
1139 | $::CFG->{layout} = CFClient::UI::get_layout; |
1140 | CFClient::write_cfg "$Crossfire::VARDIR/pclientrc"; |
1140 | CFClient::write_cfg "$Crossfire::VARDIR/cfplusrc"; |
1141 | status "Configuration Saved"; |
1141 | status "Configuration Saved"; |
1142 | }, |
1142 | }, |
1143 | ); |
1143 | ); |
1144 | |
1144 | |
1145 | $BUTTONBAR->add (new CFClient::UI::Flopper text => "Help!", other => make_help_window, |
1145 | $BUTTONBAR->add (new CFClient::UI::Flopper text => "Help!", other => make_help_window, |
… | |
… | |
1389 | $SIG{INT} = $SIG{TERM} = sub { exit }; |
1389 | $SIG{INT} = $SIG{TERM} = sub { exit }; |
1390 | |
1390 | |
1391 | { |
1391 | { |
1392 | local $SIG{__DIE__} = sub { CFClient::fatal $_[0] }; |
1392 | local $SIG{__DIE__} = sub { CFClient::fatal $_[0] }; |
1393 | |
1393 | |
1394 | CFClient::read_cfg "$Crossfire::VARDIR/pclientrc"; |
1394 | CFClient::read_cfg "$Crossfire::VARDIR/cfplusrc"; |
1395 | CFClient::UI::set_layout ($::CFG->{layout}); |
1395 | CFClient::UI::set_layout ($::CFG->{layout}); |
1396 | |
1396 | |
1397 | my %DEF_CFG = ( |
1397 | my %DEF_CFG = ( |
1398 | sdl_mode => 0, |
1398 | sdl_mode => 0, |
1399 | width => 640, |
1399 | width => 640, |
… | |
… | |
1477 | |
1477 | |
1478 | END { CFClient::SDL_Quit } |
1478 | END { CFClient::SDL_Quit } |
1479 | |
1479 | |
1480 | =head1 NAME |
1480 | =head1 NAME |
1481 | |
1481 | |
1482 | pclient - A Crossfire+ and Crossfire game client |
1482 | cfplus - A Crossfire+ and Crossfire game client |
1483 | |
1483 | |
1484 | =head1 SYNOPSIS |
1484 | =head1 SYNOPSIS |
1485 | |
1485 | |
1486 | Just run it - no commandline arguments are supported. |
1486 | Just run it - no commandline arguments are supported. |
1487 | |
1487 | |
1488 | =head1 USAGE |
1488 | =head1 USAGE |
1489 | |
1489 | |
1490 | Pclient utilises OpenGL for all UI elements and the game. It is supposed to be used |
1490 | cfplus utilises OpenGL for all UI elements and the game. It is supposed to be used |
1491 | fullscreen and interactively. |
1491 | fullscreen and interactively. |
1492 | |
1492 | |
1493 | =head1 AUTHOR |
1493 | =head1 AUTHOR |
1494 | |
1494 | |
1495 | Marc Lehmann <crossfire@schmorp.de>, Robin Redeker <elmex@ta-sa.org> |
1495 | Marc Lehmann <crossfire@schmorp.de>, Robin Redeker <elmex@ta-sa.org> |