--- deliantra/Deliantra-Client/bin/cfplus 2006/05/30 14:45:56 1.35 +++ deliantra/Deliantra-Client/bin/cfplus 2006/06/01 03:42:58 1.39 @@ -108,6 +108,8 @@ our $BIND_WINDOW; our $BIND_EDITOR; +our $SPELL_LIST; + sub status { $STATUSBOX->add (CFClient::UI::Label::escape $_[0], pri => -10, group => "status", timeout => 10, fg => [1, 1, 0, 1]); } @@ -932,7 +934,6 @@ force_w => $WIDTH * 9/10, force_h => $HEIGHT * 9/10, title => "Inventory", - name => "inventory_window", ; $invwin->add (my $hb = new CFClient::UI::HBox homogeneous => 1); @@ -953,6 +954,13 @@ $invwin } +sub make_spell_list { + $SPELL_LIST = new CFClient::UI::SpellList + force_w => $WIDTH * (9/10), + force_h => $HEIGHT * (9/10); + $SPELL_LIST +} + sub make_binding_window { my $binding_list = new CFClient::UI::VBox; @@ -1191,7 +1199,8 @@ $BUTTONBAR->add (new CFClient::UI::Flopper text => "Stats Window", other => make_stats_window, tooltip => "Toggles the statistics window, where all your Stats and Resistances are being displayed at all times."); $BUTTONBAR->add (new CFClient::UI::Flopper text => "Inventory", other => make_inventory_window, - tooltip => "Toggles the inventory window, where you can manage your loot (or treaures :)."); + tooltip => "Toggles the inventory window, where you can manage your loot (or treaures :)." + ."You can also hit the Tab-key to show/hide the Inventory."); $BUTTONBAR->add (new CFClient::UI::Button text => "Save Config", @@ -1215,8 +1224,12 @@ ."with nothing set and the recording started. After doing the actions you " ."want to record press Insert and you will be asked to press a key-combo." ."After pressing the combo the binding will be saved automatically and the " - ."binding editor closes" - ); + ."binding editor closes"); + + $BUTTONBAR->add (new CFClient::UI::Flopper + text => "Spells", + other => make_spell_list, + tooltip => "The spell list"); $BUTTONBAR->add (new CFClient::UI::Button text => "Quit", @@ -1554,6 +1567,16 @@ cfplus utilises OpenGL for all UI elements and the game. It is supposed to be used fullscreen and interactively. +=head1 DEBUGGING + + +CFPLUS_DEBUG - environment variable + + 1 draw borders around widgets + 2 add low-level widget info to tooltips + 4 show fps + 8 suppress tooltips + =head1 AUTHOR Marc Lehmann , Robin Redeker