… | |
… | |
585 | |
585 | |
586 | if ($tag == 0) { |
586 | if ($tag == 0) { |
587 | update_floorbox; |
587 | update_floorbox; |
588 | update_container (0); |
588 | update_container (0); |
589 | } elsif ($tag == $self->{player}{tag}) { |
589 | } elsif ($tag == $self->{player}{tag}) { |
|
|
590 | $::STATWIDS->{weight}->set_text (sprintf "Weight: %.1fkg", $self->{player}->{weight} / 1000); |
590 | $::INV->set_items ($self->{container}{$self->{player}{tag}}) |
591 | $::INV->set_items ($self->{container}{$self->{player}{tag}}) |
591 | } else { |
592 | } else { |
592 | update_container ($tag); |
593 | update_container ($tag); |
593 | } |
594 | } |
594 | |
595 | |
… | |
… | |
832 | |
833 | |
833 | push @link, new CFClient::UI::Label |
834 | push @link, new CFClient::UI::Label |
834 | markup => "<span foreground='#c0c0ff' underline='single'>$kw</span>", |
835 | markup => "<span foreground='#c0c0ff' underline='single'>$kw</span>", |
835 | can_hover => 1, |
836 | can_hover => 1, |
836 | can_events => 1, |
837 | can_events => 1, |
|
|
838 | padding_x => 0, |
|
|
839 | padding_y => 0, |
837 | on_button_up => sub { |
840 | on_button_up => sub { |
838 | $self->send ($kw); |
841 | $self->send ($kw); |
839 | }; |
842 | }; |
840 | |
843 | |
841 | chr 0xfffc |
844 | chr 0xfffc |