… | |
… | |
930 | x => "center", |
930 | x => "center", |
931 | y => "center", |
931 | y => "center", |
932 | force_w => $WIDTH * 9/10, |
932 | force_w => $WIDTH * 9/10, |
933 | force_h => $HEIGHT * 9/10, |
933 | force_h => $HEIGHT * 9/10, |
934 | title => "Inventory", |
934 | title => "Inventory", |
935 | name => "inventory_window", |
|
|
936 | ; |
935 | ; |
937 | |
936 | |
938 | $invwin->add (my $hb = new CFClient::UI::HBox homogeneous => 1); |
937 | $invwin->add (my $hb = new CFClient::UI::HBox homogeneous => 1); |
939 | |
938 | |
940 | $hb->add (my $vb1 = new CFClient::UI::VBox); |
939 | $hb->add (my $vb1 = new CFClient::UI::VBox); |
… | |
… | |
1189 | make_gauge_window->show; # XXX: this has to be set before make_stats_window as make_stats_window calls update_stats_window which updated the gauges also X-D |
1188 | make_gauge_window->show; # XXX: this has to be set before make_stats_window as make_stats_window calls update_stats_window which updated the gauges also X-D |
1190 | |
1189 | |
1191 | $BUTTONBAR->add (new CFClient::UI::Flopper text => "Stats Window", other => make_stats_window, |
1190 | $BUTTONBAR->add (new CFClient::UI::Flopper text => "Stats Window", other => make_stats_window, |
1192 | tooltip => "Toggles the statistics window, where all your Stats and Resistances are being displayed at all times."); |
1191 | tooltip => "Toggles the statistics window, where all your Stats and Resistances are being displayed at all times."); |
1193 | $BUTTONBAR->add (new CFClient::UI::Flopper text => "Inventory", other => make_inventory_window, |
1192 | $BUTTONBAR->add (new CFClient::UI::Flopper text => "Inventory", other => make_inventory_window, |
1194 | tooltip => "Toggles the inventory window, where you can manage your loot (or treaures :)."); |
1193 | tooltip => "Toggles the inventory window, where you can manage your loot (or treaures :)." |
|
|
1194 | ."You can also hit the Tab-key to show/hide the Inventory."); |
1195 | |
1195 | |
1196 | $BUTTONBAR->add (new CFClient::UI::Button |
1196 | $BUTTONBAR->add (new CFClient::UI::Button |
1197 | text => "Save Config", |
1197 | text => "Save Config", |
1198 | tooltip => "Saves the options chosen in the client setting, server settings and the window layout to be restored on later runs.", |
1198 | tooltip => "Saves the options chosen in the client setting, server settings and the window layout to be restored on later runs.", |
1199 | on_activate => sub { |
1199 | on_activate => sub { |