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

Comparing deliantra/Deliantra-Client/DC/Protocol.pm (file contents):
Revision 1.186 by root, Thu Dec 27 19:35:09 2007 UTC vs.
Revision 1.187 by root, Sat Dec 29 13:44:30 2007 UTC

525 $sktbl->clear; 525 $sktbl->clear;
526 526
527 my $sw = $self->{skillwid}{""} ||= [ 527 my $sw = $self->{skillwid}{""} ||= [
528 0, 0, (new DC::UI::Label text => "Experience", align => 1), 528 0, 0, (new DC::UI::Label text => "Experience", align => 1),
529 1, 0, (new DC::UI::Label text => "Lvl.", align => 1), 529 1, 0, (new DC::UI::Label text => "Lvl.", align => 1),
530 2, 0, (new DC::UI::Label text => "Progress", align => 0), 530 2, 0, (new DC::UI::Label text => "Progress"),
531 3, 0, (new DC::UI::Label text => "Skill", expand => 1), 531 3, 0, (new DC::UI::Label text => "Skill", expand => 1, align => 0),
532 4, 0, (new DC::UI::Label text => "Experience", align => 1), 532 4, 0, (new DC::UI::Label text => "Experience", align => 1),
533 5, 0, (new DC::UI::Label text => "Lvl.", align => 1), 533 5, 0, (new DC::UI::Label text => "Lvl.", align => 1),
534 6, 0, (new DC::UI::Label text => "Progress", align => 0), 534 6, 0, (new DC::UI::Label text => "Progress"),
535 7, 0, (new DC::UI::Label text => "Skill", expand => 1), 535 7, 0, (new DC::UI::Label text => "Skill", expand => 1, align => 0),
536 ]; 536 ];
537 537
538 my @add = @$sw; 538 my @add = @$sw;
539 539
540 my $TOOLTIP_ALL = "\n\n<small>Left click - ready skill\nMiddle click - use spell\nRight click - further options</small>"; 540 my $TOOLTIP_ALL = "\n\n<small>Left click - ready skill\nMiddle click - use spell\nRight click - further options</small>";
579 579
580 # progress 580 # progress
581 (new DC::UI::ExperienceProgress), 581 (new DC::UI::ExperienceProgress),
582 582
583 # label 583 # label
584 (new DC::UI::Label text => $name, on_button_down => $spell_cb, 584 (new DC::UI::Label text => $name, on_button_down => $spell_cb, align => 0,
585 can_events => 1, can_hover => 1, tooltip => (DC::Pod::section_label skill_description => $name) . $TOOLTIP_ALL), 585 can_events => 1, can_hover => 1, tooltip => (DC::Pod::section_label skill_description => $name) . $TOOLTIP_ALL),
586 ]; 586 ];
587 587
588 push @add, 588 push @add,
589 $x * 4 + 0, $y, $sw->[0], 589 $x * 4 + 0, $y, $sw->[0],
1207 my ($conn, $tag, $name) = @_; 1207 my ($conn, $tag, $name) = @_;
1208 $conn->{open_container} = $tag; 1208 $conn->{open_container} = $tag;
1209 update_floorbox; 1209 update_floorbox;
1210 1210
1211 $::INVR_HB->clear (); 1211 $::INVR_HB->clear ();
1212 $::INVR_HB->add (new DC::UI::Label align => 0, expand => 1, text => $name); 1212 $::INVR_HB->add (new DC::UI::Label expand => 1, text => $name);
1213 1213
1214 if ($tag != 0) { # Floor isn't closable, is it? 1214 if ($tag != 0) { # Floor isn't closable, is it?
1215 $::INVR_HB->add (new DC::UI::Button 1215 $::INVR_HB->add (new DC::UI::Button
1216 text => "Close container", 1216 text => "Close container",
1217 tooltip => "Close the currently open container (if one is open)", 1217 tooltip => "Close the currently open container (if one is open)",
1301 1301
1302 my $weight = .001 * $self->{player}{weight}; 1302 my $weight = .001 * $self->{player}{weight};
1303 my $limit = .001 * $self->{stat}{+CS_STAT_WEIGHT_LIM}; 1303 my $limit = .001 * $self->{stat}{+CS_STAT_WEIGHT_LIM};
1304 1304
1305 $::STATWIDS->{weight}->set_text (sprintf "Weight: %.1fkg", $weight); 1305 $::STATWIDS->{weight}->set_text (sprintf "Weight: %.1fkg", $weight);
1306 $::STATWIDS->{m_weight}->set_text (sprintf "%.1fkg", $limit); 1306 $::STATWIDS->{m_weight}->set_text (sprintf "Max Weight: %.1fkg", $limit);
1307 $::STATWIDS->{i_weight}->set_text (sprintf "%.1f/%.1fkg", $weight, $limit); 1307 $::STATWIDS->{i_weight}->set_text (sprintf "%.1f/%.1fkg", $weight, $limit);
1308} 1308}
1309 1309
1310sub update_server_info { 1310sub update_server_info {
1311 my ($self) = @_; 1311 my ($self) = @_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines