ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/widget.ext
(Generate patch)

Comparing deliantra/server/ext/widget.ext (file contents):
Revision 1.7 by root, Mon Jul 16 14:09:40 2007 UTC vs.
Revision 1.9 by root, Fri Jul 20 22:34:56 2007 UTC

94 [5, "Pow"], 94 [5, "Pow"],
95 [6, "Cha"], 95 [6, "Cha"],
96 ) { 96 ) {
97 my ($x, $label) = @$_; 97 my ($x, $label) = @$_;
98 98
99 $statstable->add ($x, 0, $ws->new (Label => 99 $statstable->add_at ($x, 0, $ws->new (Label =>
100 can_hover => 1, can_events => 1, 100 can_hover => 1, can_events => 1,
101 align => +1, text => $label, tooltip => "#stat_$label", 101 align => +1, text => $label, tooltip => "#stat_$label",
102 )); 102 ));
103 $statstable->add ($x, 1, $ws->{stat}{$label} = $ws->new (Label => 103 $statstable->add_at ($x, 1, $ws->{stat}{$label} = $ws->new (Label =>
104 can_hover => 1, can_events => 1, 104 can_hover => 1, can_events => 1,
105 align => +1, template => "88", tooltip => "#stat_$label", 105 align => +1, template => "88", tooltip => "#stat_$label",
106 )); 106 ));
107 } 107 }
108 108
113 113
114cf::player->attach ( 114cf::player->attach (
115 on_login => sub { 115 on_login => sub {
116 my ($pl) = @_; 116 my ($pl) = @_;
117 117
118 #return unless $cf::CFG{devel}; 118 return unless $cf::CFG{devel};
119 119
120 my $ns = $pl->ns; 120 my $ns = $pl->ns;
121 121
122 return unless $ns->{can_widget}; 122 return unless $ns->{can_widget};
123 123

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines