… | |
… | |
1417 | |
1417 | |
1418 | my $ntb = |
1418 | my $ntb = |
1419 | $PL_NOTEBOOK = |
1419 | $PL_NOTEBOOK = |
1420 | new CFPlus::UI::Notebook expand => 1; |
1420 | new CFPlus::UI::Notebook expand => 1; |
1421 | |
1421 | |
1422 | $ntb->add ( |
1422 | $ntb->add_tab ( |
1423 | "Statistics (F2)" => $STATS_PAGE = stats_window, |
1423 | "Statistics (F2)" => $STATS_PAGE = stats_window, |
1424 | "Shows statistics, where all your Stats and Resistances are shown." |
1424 | "Shows statistics, where all your Stats and Resistances are shown." |
1425 | ); |
1425 | ); |
1426 | $ntb->add ( |
1426 | $ntb->add_tab ( |
1427 | "Skills (F3)" => $SKILL_PAGE = skill_window, |
1427 | "Skills (F3)" => $SKILL_PAGE = skill_window, |
1428 | "Shows all your Skills." |
1428 | "Shows all your Skills." |
1429 | ); |
1429 | ); |
1430 | |
1430 | |
1431 | my $spellsw = $SPELL_PAGE = new CFPlus::UI::ScrolledWindow (expand => 1, scroll_y => 1); |
1431 | my $spellsw = $SPELL_PAGE = new CFPlus::UI::ScrolledWindow (expand => 1, scroll_y => 1); |
1432 | $spellsw->add ($SPELL_LIST = new CFPlus::UI::SpellList); |
1432 | $spellsw->add ($SPELL_LIST = new CFPlus::UI::SpellList); |
1433 | $ntb->add ( |
1433 | $ntb->add_tab ( |
1434 | "Spellbook (F4)" => $spellsw, |
1434 | "Spellbook (F4)" => $spellsw, |
1435 | "Displays all spells you have and lets you edit keyboard shortcuts for them." |
1435 | "Displays all spells you have and lets you edit keyboard shortcuts for them." |
1436 | ); |
1436 | ); |
1437 | $ntb->add ( |
1437 | $ntb->add_tab ( |
1438 | "Inventory (F5)" => $INVENTORY_PAGE = inventory_widget, |
1438 | "Inventory (F5)" => $INVENTORY_PAGE = inventory_widget, |
1439 | "Toggles the inventory window, where you can manage your loot (or treasures :). " |
1439 | "Toggles the inventory window, where you can manage your loot (or treasures :). " |
1440 | . "You can also hit the <b>Tab</b>-key to show/hide the Inventory." |
1440 | . "You can also hit the <b>Tab</b>-key to show/hide the Inventory." |
1441 | ); |
1441 | ); |
1442 | $ntb->add (Pickup => autopickup_setup, |
1442 | $ntb->add_tab (Pickup => autopickup_setup, |
1443 | "Configure autopickup settings, i.e. which items you will pick up automatically when walking (or running) over them."); |
1443 | "Configure autopickup settings, i.e. which items you will pick up automatically when walking (or running) over them."); |
1444 | |
1444 | |
1445 | $ntb->set_current_page ($INVENTORY_PAGE); |
1445 | $ntb->set_current_page ($INVENTORY_PAGE); |
1446 | |
1446 | |
1447 | $plwin->add ($ntb); |
1447 | $plwin->add ($ntb); |
… | |
… | |
1753 | $MESSAGE_WINDOW = new CFPlus::UI::MessageWindow; |
1753 | $MESSAGE_WINDOW = new CFPlus::UI::MessageWindow; |
1754 | |
1754 | |
1755 | $SETUP_DIALOG->add ($SETUP_NOTEBOOK = new CFPlus::UI::Notebook expand => 1, debug => 1, |
1755 | $SETUP_DIALOG->add ($SETUP_NOTEBOOK = new CFPlus::UI::Notebook expand => 1, debug => 1, |
1756 | filter => new CFPlus::UI::ScrolledWindow expand => 1, scroll_y => 1); |
1756 | filter => new CFPlus::UI::ScrolledWindow expand => 1, scroll_y => 1); |
1757 | |
1757 | |
1758 | $SETUP_NOTEBOOK->add (Server => $SETUP_SERVER = server_setup, |
1758 | $SETUP_NOTEBOOK->add_tab (Server => $SETUP_SERVER = server_setup, |
1759 | "Configure the server to play on, your username, password and other server-related options."); |
1759 | "Configure the server to play on, your username, password and other server-related options."); |
1760 | $SETUP_NOTEBOOK->add (Client => client_setup, |
1760 | $SETUP_NOTEBOOK->add_tab (Client => client_setup, |
1761 | "Configure various client-specific settings."); |
1761 | "Configure various client-specific settings."); |
1762 | $SETUP_NOTEBOOK->add (Graphics => graphics_setup, |
1762 | $SETUP_NOTEBOOK->add_tab (Graphics => graphics_setup, |
1763 | "Configure the video mode, performance, fonts and other graphical aspects of the game."); |
1763 | "Configure the video mode, performance, fonts and other graphical aspects of the game."); |
1764 | $SETUP_NOTEBOOK->add (Audio => audio_setup, |
1764 | $SETUP_NOTEBOOK->add_tab (Audio => audio_setup, |
1765 | "Configure the use of audio, sound effects and background music."); |
1765 | "Configure the use of audio, sound effects and background music."); |
1766 | $SETUP_NOTEBOOK->add (Keyboard => $SETUP_KEYBOARD = keyboard_setup, |
1766 | $SETUP_NOTEBOOK->add_tab (Keyboard => $SETUP_KEYBOARD = keyboard_setup, |
1767 | "Lets you define, edit and delete key bindings." |
1767 | "Lets you define, edit and delete key bindings." |
1768 | . "There is a shortcut for making bindings: <b>Control-Insert</b> opens the binding editor " |
1768 | . "There is a shortcut for making bindings: <b>Control-Insert</b> opens the binding editor " |
1769 | . "with nothing set and the recording started. After doing the actions you " |
1769 | . "with nothing set and the recording started. After doing the actions you " |
1770 | . "want to record press <b>Insert</b> and you will be asked to press a key-combo. " |
1770 | . "want to record press <b>Insert</b> and you will be asked to press a key-combo. " |
1771 | . "After pressing the combo the binding will be saved automatically and the " |
1771 | . "After pressing the combo the binding will be saved automatically and the " |
1772 | . "binding editor closes"); |
1772 | . "binding editor closes"); |
1773 | $SETUP_NOTEBOOK->add (Debug => debug_setup, |
1773 | $SETUP_NOTEBOOK->add_tab (Debug => debug_setup, |
1774 | "Some debuggin' options. Do not ask."); |
1774 | "Some debuggin' options. Do not ask."); |
1775 | |
1775 | |
1776 | $BUTTONBAR = new CFPlus::UI::Buttonbar x => 0, y => 0, z => 200; # put on top |
1776 | $BUTTONBAR = new CFPlus::UI::Buttonbar x => 0, y => 0, z => 200; # put on top |
1777 | |
1777 | |
1778 | $BUTTONBAR->add (new CFPlus::UI::Flopper text => "Setup", other => $SETUP_DIALOG, |
1778 | $BUTTONBAR->add (new CFPlus::UI::Flopper text => "Setup", other => $SETUP_DIALOG, |