--- deliantra/Deliantra-Client/DC.pm 2006/07/04 23:23:31 1.97 +++ deliantra/Deliantra-Client/DC.pm 2006/07/16 20:04:07 1.100 @@ -240,7 +240,7 @@ package CFClient::Layout; $CFClient::OpenGL::SHUTDOWN_HOOK{"CFClient::Layout"} = sub { - clear_font_cache; + reset_glyph_cache; }; package CFClient::Item; @@ -287,7 +287,11 @@ sub do_n_dialog { my ($cb) = @_; - my $w = new CFClient::UI::FancyFrame; + my $w = new CFClient::UI::FancyFrame + on_delete => sub { $_[0]->destroy; 1 }, + has_close_button => 1, + ; + $w->add (my $vb = new CFClient::UI::VBox x => "center", y => "center"); $vb->add (new CFClient::UI::Label text => "Enter item count:"); $vb->add (my $entry = new CFClient::UI::Entry @@ -297,12 +301,14 @@ $last_enter_count = $entry->get_text; $cb->($last_enter_count); $w->hide; - $w = undef; - } + $w->destroy; + + 0 + }, + on_escape => sub { $w->destroy; 1 }, ); $entry->grab_focus; $w->show; - } sub update_widgets { @@ -335,6 +341,12 @@ my @menu_items = ( ["examine", sub { $::CONN->send ("examine $self->{tag}") }], ["mark", sub { $::CONN->send ("mark ". pack "N", $self->{tag}) }], + ["ignite/thaw", # first try of an easier use of flint&steel + sub { + $::CONN->send ("mark ". pack "N", $self->{tag}); + $::CONN->send ("command apply flint and steel"); + } + ], ["apply", sub { $::CONN->send ("apply $self->{tag}") }], ( $self->{flags} & F_LOCKED