ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/UI.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/UI.pm (file contents):
Revision 1.222 by root, Mon May 22 03:59:51 2006 UTC vs.
Revision 1.223 by elmex, Tue May 23 18:10:51 2006 UTC

209sub show { 209sub show {
210 my ($self) = @_; 210 my ($self) = @_;
211 return if $self->{parent}; 211 return if $self->{parent};
212 212
213 $CFClient::UI::ROOT->add ($self); 213 $CFClient::UI::ROOT->add ($self);
214}
215
216sub show_centered {
217 my ($self) = @_;
218 return if $self->{parent};
219
220 $self->show;
221
222 $CFClient::UI::ROOT->on_post_alloc (
223 "centered $self" => sub {
224 $self->move (($::WIDTH - $self->{w}) * 0.5, ($::HEIGHT - $self->{h}) * 0.5);
225 },
226 );
214} 227}
215 228
216sub hide { 229sub hide {
217 my ($self) = @_; 230 my ($self) = @_;
218 231

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines