… | |
… | |
495 | $LOGIN_BUTTON->set_text ("Login"); |
495 | $LOGIN_BUTTON->set_text ("Login"); |
496 | $SETUP_NOTEBOOK->set_current_page ($SETUP_SERVER); |
496 | $SETUP_NOTEBOOK->set_current_page ($SETUP_SERVER); |
497 | $SETUP_DIALOG->show; |
497 | $SETUP_DIALOG->show; |
498 | $PL_WINDOW->hide; |
498 | $PL_WINDOW->hide; |
499 | $SPELL_LIST->clear_spells; |
499 | $SPELL_LIST->clear_spells; |
|
|
500 | $CFPlus::UI::ROOT->emit (stop_game => ! ! $CONN); |
500 | |
501 | |
501 | return unless $CONN; |
502 | return unless $CONN; |
502 | |
503 | |
503 | status "connection closed"; |
504 | status "connection closed"; |
504 | |
505 | |
… | |
… | |
1453 | has_close_button => 1 |
1454 | has_close_button => 1 |
1454 | ; |
1455 | ; |
1455 | |
1456 | |
1456 | my $ntb = |
1457 | my $ntb = |
1457 | $PL_NOTEBOOK = |
1458 | $PL_NOTEBOOK = |
1458 | new CFPlus::UI::Notebook expand => 1, debug => 1; |
1459 | new CFPlus::UI::Notebook expand => 1; |
1459 | |
1460 | |
1460 | $ntb->add ( |
1461 | $ntb->add ( |
1461 | "Statistics (F2)" => $STATS_PAGE = stats_window, |
1462 | "Statistics (F2)" => $STATS_PAGE = stats_window, |
1462 | "Shows statistics, where all your Stats and Resistances are shown." |
1463 | "Shows statistics, where all your Stats and Resistances are shown." |
1463 | ); |
1464 | ); |
… | |
… | |
1475 | $ntb->add ( |
1476 | $ntb->add ( |
1476 | "Inventory (F5)" => $INVENTORY_PAGE = inventory_widget, |
1477 | "Inventory (F5)" => $INVENTORY_PAGE = inventory_widget, |
1477 | "Toggles the inventory window, where you can manage your loot (or treasures :). " |
1478 | "Toggles the inventory window, where you can manage your loot (or treasures :). " |
1478 | . "You can also hit the <b>Tab</b>-key to show/hide the Inventory." |
1479 | . "You can also hit the <b>Tab</b>-key to show/hide the Inventory." |
1479 | ); |
1480 | ); |
|
|
1481 | $ntb->add (Pickup => autopickup_setup, |
|
|
1482 | "Configure autopickup settings, i.e. which items you will pick up automatically when walking (or running) over them."); |
1480 | |
1483 | |
1481 | $ntb->set_current_page ($INVENTORY_PAGE); |
1484 | $ntb->set_current_page ($INVENTORY_PAGE); |
1482 | |
1485 | |
1483 | $plwin->add ($ntb); |
1486 | $plwin->add ($ntb); |
1484 | $plwin |
1487 | $plwin |
… | |
… | |
1811 | |
1814 | |
1812 | $SETUP_NOTEBOOK->add (Server => $SETUP_SERVER = server_setup, |
1815 | $SETUP_NOTEBOOK->add (Server => $SETUP_SERVER = server_setup, |
1813 | "Configure the server to play on, your username, password and other server-related options."); |
1816 | "Configure the server to play on, your username, password and other server-related options."); |
1814 | $SETUP_NOTEBOOK->add (Client => client_setup, |
1817 | $SETUP_NOTEBOOK->add (Client => client_setup, |
1815 | "Configure various client-specific settings."); |
1818 | "Configure various client-specific settings."); |
1816 | $SETUP_NOTEBOOK->add (Pickup => autopickup_setup, |
|
|
1817 | "Configure autopickup settings, i.e. which items you will pick up automatically when walking (or running) over them."); |
|
|
1818 | $SETUP_NOTEBOOK->add (Graphics => graphics_setup, |
1819 | $SETUP_NOTEBOOK->add (Graphics => graphics_setup, |
1819 | "Configure the video mode, performance, fonts and other graphical aspects of the game."); |
1820 | "Configure the video mode, performance, fonts and other graphical aspects of the game."); |
1820 | $SETUP_NOTEBOOK->add (Audio => audio_setup, |
1821 | $SETUP_NOTEBOOK->add (Audio => audio_setup, |
1821 | "Configure the use of audio, sound effects and background music."); |
1822 | "Configure the use of audio, sound effects and background music."); |
1822 | $SETUP_NOTEBOOK->add (Keyboard => $SETUP_KEYBOARD = keyboard_setup, |
1823 | $SETUP_NOTEBOOK->add (Keyboard => $SETUP_KEYBOARD = keyboard_setup, |