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.321 by root, Tue Jul 4 23:44:23 2006 UTC vs.
Revision 1.322 by root, Wed Jul 5 01:53:24 2006 UTC

3062 for my $item (@{ $self->{items} }) { 3062 for my $item (@{ $self->{items} }) {
3063 my ($widget, $cb, $tooltip) = @$item; 3063 my ($widget, $cb, $tooltip) = @$item;
3064 3064
3065 # handle various types of items, only text for now 3065 # handle various types of items, only text for now
3066 if (!ref $widget) { 3066 if (!ref $widget) {
3067 if ($widget =~ /\t/) {
3068 my ($left, $right) = split /\t/, $widget, 2;
3069
3070 $widget = new CFClient::UI::HBox
3071 can_hover => 1,
3072 can_events => 1,
3073 tooltip => $tooltip,
3074 children => [
3075 (new CFClient::UI::Label markup => $left, expand => 1),
3076 (new CFClient::UI::Label markup => $right, align => +1),
3077 ],
3078 ;
3079
3080 } else {
3067 $widget = new CFClient::UI::Label 3081 $widget = new CFClient::UI::Label
3068 can_hover => 1, 3082 can_hover => 1,
3069 can_events => 1, 3083 can_events => 1,
3070 markup => $widget, 3084 markup => $widget,
3071 tooltip => $tooltip 3085 tooltip => $tooltip;
3086 }
3072 } 3087 }
3073 3088
3074 $self->{item}{$widget} = $item; 3089 $self->{item}{$widget} = $item;
3075 3090
3076 $self->{vbox}->add ($widget); 3091 $self->{vbox}->add ($widget);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines