--- deliantra/Deliantra-Client/bin/cfplus 2006/05/25 16:24:45 1.1 +++ deliantra/Deliantra-Client/bin/cfplus 2006/05/25 16:54:29 1.3 @@ -385,7 +385,7 @@ (new CFClient::UI::HBox expand => 1), (new CFClient::UI::VBox children => [ (new CFClient::UI::Empty expand => 1), - (new CFClient::UI::Frame bg => [0, 0, 0, 0.4], child => ($FLOORBOX = new CFClient::UI::VBox)), + (new CFClient::UI::Frame bg => [0, 0, 0, 0.4], child => ($FLOORBOX = new CFClient::UI::Table)), ]), (my $vbox = new CFClient::UI::VBox), ], @@ -1745,12 +1745,17 @@ return unless $CONN; $FLOORBOX->clear; - $FLOORBOX->add (new CFClient::UI::Empty expand => 1); + $FLOORBOX->add (0, 1, new CFClient::UI::Empty expand => 1); - my $count = 7; + my $row; for (@{ $CONN->{container}{0} }) { - if (--$count) { - $FLOORBOX->add (new CFClient::UI::InventoryItem item => $_); + if (++$row < 7) { + local $_->{face_widget}; # hack to force recreation of widget + local $_->{desc_widget}; # hack to force recreation of widget + CFClient::Item::update_widgets $_; + + $FLOORBOX->add (0, $row, $_->{face_widget}); + $FLOORBOX->add (1, $row, $_->{desc_widget}); } else { $FLOORBOX->add (new CFClient::UI::Label text => "More..."); last;